工作流命令
用于规划、讨论审议、审计、目标管理和并行团队编排的斜杠命令。这些命令驱动 CLI-JAW 中结构化的工作流生命周期——从最初的想法到执行和完成。
概述
工作流命令在聊天界面中以 / 开头调用。它们会触发专门的规划和编排流程,超越单次对话所能完成的范围。每个命令都会激活一个专用的工作流,拥有自己的上下文、提示词和输出结构。
你不需要记住精确的语法。自然语言同样有效——输入
"이 기능 계획 세워줘",CLI-JAW 会自动路由到 /plan。当你需要精确控制时,可以使用斜杠命令形式。| 命令 | 用途 | 快速示例 |
|---|---|---|
/plan | 生成实施计划 | /plan add OAuth2 login |
/interview | 通过针对性问题澄清需求 | /interview build a notification system |
/deliberate | 多角色讨论审议(规划者 + 架构师 + 批评者) | /deliberate database migration strategy |
/planaudit | 对现有计划进行只读审计 | /planaudit |
/goal | 持久化目标生命周期管理 | /goal set Implement auth module |
/team | 并行多智能体团队编排 | /team plan Refactor API layer |
/gd | 强制完成活跃 goal(/goal done --force 简写) | /gd evidence on disk |
/plan [request]
根据自然语言请求生成结构化的实施计划。计划包括阶段划分、文件级任务、验收标准、风险和预估工作量。输出格式为 markdown,可以直接输入到 /goal 中。
参数
| 参数 | 是否必需 | 说明 |
|---|---|---|
[request] | 可选 | 对要规划内容的自由描述。如果省略,CLI-JAW 将使用当前对话上下文。 |
生成内容
- 问题陈述——我们要解决什么问题以及为什么
- 范围和非目标——明确的边界以防止范围蔓延
- 实施阶段——带有依赖关系的有序步骤
- 文件计划——每个文件的创建/修改/删除标注
- 验收标准——定义"完成"的可测试条件
- 风险和缓解措施——已知的未知因素和备选策略
- 工作量预估——大致的时间/复杂度评级
使用示例
# Plan a new feature
/plan add SSE-first real-time notifications
# Plan a refactor
/plan refactor the authentication middleware to support multiple providers
# Plan from conversation context (no argument)
/plan
# Plan with constraints
/plan migrate from REST to GraphQL, keep backward compatibility for 2 releases
~해줘 tip:
"이 기능 계획 세워줘", "플랜 만들어줘", "구현 계획 짜줘"——都会路由到 /plan。你可以自由混合韩语和英语:"OAuth 로그인 plan 세워줘"。/interview <request>
在开始实施之前,/interview 会提出 1-3 个针对性的澄清问题,以明确模糊的需求。这可以避免因误解规格说明而浪费精力,并生成一份精炼的需求文档,供下游命令(/plan、/goal)使用。
参数
| 参数 | 是否必需 | 说明 |
|---|---|---|
<request> | 必需 | 需要澄清的功能或任务描述。可以很模糊——这正是该命令的意义所在。 |
工作原理
- 分析——解析请求以识别模糊之处、未声明的假设和缺失的约束条件
- 提问——生成 1-3 个按对实施决策影响程度排序的聚焦问题
- 精炼——将你的回答整合到精炼的需求摘要中
- 交接——精炼后的需求可供
/plan或/goal set使用
使用示例
# Clarify a vague request
/interview build a notification system
# Clarify with some context already provided
/interview add user roles -- we need admin and viewer at minimum
# Clarify a complex migration
/interview migrate the monolith to microservices
面试可能产生的典型问题:
1. Should notifications use the SSE-first event channel or polling?
This affects architecture, infrastructure, and client complexity.
2. What notification channels are in scope -- in-app only, or also
email/push/SMS?
3. Do notifications need to persist (read/unread state, history) or
are they ephemeral?
~해줘 tip:
"요구사항 정리해줘", "질문 좀 해줘", "뭐가 필요한지 인터뷰해줘"——都会路由到 /interview。当你有一个粗略的想法但还没有考虑清楚细节时,非常适合使用。/deliberate <topic>
对某个主题进行结构化的多角色讨论审议。三个内部角色——规划者、架构师 和 批评者——从不同角度就主题展开辩论,产生包含权衡分析、建议和不同意见的均衡分析结果。
参数
| 参数 | 是否必需 | 说明 |
|---|---|---|
<topic> | 必需 | 需要审议的设计决策、架构选择或技术权衡。 |
三个角色
| 角色 | 职责 | 关注点 |
|---|---|---|
| Planner | 项目负责人 | 可行性、时间线、资源分配、阶段划分、风险管理 |
| Architect | 系统设计师 | 技术合理性、可扩展性、可维护性、设计模式、数据流 |
| Critic | 魔鬼代言人 | 边界情况、故障模式、隐藏成本、过度工程、遗漏的替代方案 |
输出结构
- 摘要——一段话的共识(或分歧)
- 规划者视角——执行可行性和阶段划分建议
- 架构师视角——技术分析,如适用则包含图表
- 批评者视角——反对意见、风险和替代方案
- 建议——最终建议,包含置信度和注意事项
使用示例
# Deliberate an architecture decision
/deliberate should we use event sourcing or CRUD for the order service?
# Deliberate a technology choice
/deliberate database migration strategy: PostgreSQL vs CockroachDB for multi-region
# Deliberate a process decision
/deliberate monorepo vs polyrepo for our 5-service backend
# Deliberate with constraints
/deliberate real-time sync approach -- must work offline, team of 2, 3-week deadline
~해줘 tip:
"이것 좀 토론해줘", "장단점 분석해줘", "설계 논의해줘", "아키텍처 deliberate 해줘"——都会路由到 /deliberate。当你需要的不仅仅是一个快速意见时使用——当决策具有长期影响时。/planaudit [plan]
对现有计划进行只读审计。与生成计划的 /plan 不同,/planaudit 是审查计划——检查遗漏、不切实际的预估、缺失的边界情况、依赖问题和范围风险。它不会修改计划;它会生成一份审计报告。
参数
| 参数 | 是否必需 | 说明 |
|---|---|---|
[plan] | 可选 | 要审计的计划文本。如果省略,将审计当前对话中最近生成的计划。 |
审计维度
| 维度 | 检查内容 |
|---|---|
| 完整性 | 所有需求是否都已覆盖?是否有遗漏的阶段或任务? |
| 可行性 | 时间预估是否合理?依赖项是否可用? |
| 正确性 | 提出的方案在技术上是否合理? |
| 边界情况 | 计划是否考虑了错误处理、并发和故障模式? |
| 范围风险 | 是否存在范围蔓延?非目标是否已明确定义? |
| 可测试性 | 验收标准是否可衡量和可验证? |
使用示例
# Audit the current plan in conversation
/planaudit
# Audit a specific plan
/planaudit The plan is: Phase 1 - Set up database schema ...
# Audit after generating a plan
/plan add user authentication
/planaudit
审计输出示例:
Plan Audit Report
=================
Overall score: 7/10
[PASS] Completeness -- All stated requirements have corresponding tasks
[WARN] Feasibility -- Phase 2 estimates 2 days for OAuth integration;
typical implementations take 3-5 days
[FAIL] Edge cases -- No error handling for token refresh failures
[PASS] Scope risk -- Non-goals clearly stated
[WARN] Testability -- "Works correctly" is not a measurable criterion;
suggest specific test scenarios
~해줘 tip:
"플랜 검토해줘", "계획 감사해줘", "이 플랜 괜찮은지 봐줘"——都会路由到 /planaudit。在确认计划之前运行此命令,以尽早发现盲点。/goal set|status|done|cancel|update|history
管理跨对话会话持久化的目标。目标会追踪进度、积累上下文,并提供从创建到完成的结构化生命周期。目标状态会持久化到磁盘,并通过仪表板在实例间同步。
子命令
| 子命令 | 参数 | 说明 |
|---|---|---|
/goal set <description> | 目标描述(自由文本) | 使用给定描述创建新目标。返回目标 ID。 |
/goal status | 无 | 显示所有活跃目标及其当前进度、阶段和最后活动时间。 |
/goal done [id] | 可选目标 ID | 将目标标记为已完成。触发 API 调用以最终确认目标记录。如果未给出 ID,则完成最近的活跃目标。 |
/goal cancel [id] | 可选目标 ID | 取消目标。目标会被归档但不会删除,保留其历史记录。 |
/goal update <message> | 进度更新文本 | 向活跃目标追加进度更新。更新会附带时间戳并显示在目标时间线中。 |
/goal history | 无 | 显示所有目标的完整历史——包括活跃、已完成和已取消的目标——附带时间戳和进度条目。 |
目标生命周期
set ──> active ──> done
│
├──> update (repeatable, appends progress)
│
└──> cancel (archived)
使用示例
# Create a goal
/goal set Implement SSE-first notification system with read/unread tracking
# Check progress
/goal status
# Record incremental progress
/goal update Phase 1 complete -- schema and migrations are in place
/goal update Phase 2 in progress -- SSE event publisher done, client pending
# Complete the goal
/goal done
# Cancel a goal that is no longer relevant
/goal cancel 3
# Review all past goals
/goal history
/goal done 是一个 API 调用,而不是 CLI 命令。它会触发服务器端的最终确认操作,归档目标、保存最终上下文快照并更新仪表板。请确保服务器正在运行。与其他命令的集成
目标可以与其他工作流命令自然组合:
# Interview, plan, then set a goal from the refined output
/interview build user authentication
# (answer the clarifying questions)
/plan
/goal set Implement user authentication per refined requirements
# The goal tracks progress as you work
/goal update Auth middleware scaffolded, starting JWT integration
/goal update JWT working, adding refresh token rotation
/goal done
~해줘 tip:
"목표 설정해줘" 路由到 /goal set。"지금 상태 알려줘" 路由到 /goal status。"이거 다 했어" 路由到 /goal done。"목표 취소해줘" 路由到 /goal cancel。"진행 상황 업데이트해줘" 路由到 /goal update。"지금까지 한 거 보여줘" 路由到 /goal history。/team plan|audit|status|collect|stop
为大规模任务编排并行多智能体团队。/team 命令会生成多个子智能体,为它们分配独立的工作流,监控它们的进度,并将结果收集到统一的输出中。
子命令
| 子命令 | 参数 | 说明 |
|---|---|---|
/team plan <request> | 任务描述 | 将请求分解为并行工作流,分配智能体并开始执行。返回团队会话 ID。 |
/team audit | 无 | 运行跨智能体审计——检查所有活跃智能体之间的冲突、重复工作、不一致的假设和集成缺口。 |
/team status | 无 | 显示当前团队会话中所有智能体的状态:分配的任务、进度和任何阻塞项。 |
/team collect | 无 | 收集所有已完成智能体的结果,合并输出,解决冲突,生成统一的交付物。 |
/team stop | 无 | 优雅地停止当前团队会话中的所有智能体。进行中的工作会被保存但不会最终确认。 |
工作原理
- 分解——
/team plan分析请求并识别可以并行运行的独立工作流 - 分配——每个工作流被分配给一个拥有自己上下文和指令的子智能体
- 执行——智能体并行运行。每个智能体拥有文件系统访问权限,但不共享对话上下文
- 监控——
/team status轮询所有智能体以获取进度更新 - 审计——
/team audit在合并前检查跨智能体冲突 - 收集——
/team collect将所有智能体的输出合并为一个连贯的结果
使用示例
# Refactor 4 API modules in parallel
/team plan Refactor user, order, product, and payment modules to use new BaseService class
# Check how agents are doing
/team status
# Run an audit to catch conflicts
/team audit
# Collect all results when agents finish
/team collect
# Emergency stop
/team stop
实际工作流
# Full team workflow for a large migration
/interview migrate from Express to Hono
# (answer clarifying questions)
/plan
/planaudit
/goal set Migrate Express to Hono
# Execute in parallel
/team plan Migrate Express to Hono -- routes, middleware, tests, docs
# Monitor and audit
/team status
/team audit
# Collect and finalize
/team collect
/goal update Migration complete, all tests passing
/goal done
并行智能体共享文件系统但不共享对话上下文。避免分配需要修改相同文件的任务给智能体——这可能导致合并冲突。在
/team collect 之前使用 /team audit 来检测此类问题。~해줘 tip:
"팀으로 나눠서 작업해줘" 路由到 /team plan。"팀 상태 확인해줘" 路由到 /team status。"결과 모아줘" 路由到 /team collect。"팀 작업 중지해줘" 路由到 /team stop。"팀 감사해줘" 路由到 /team audit。命令串联
工作流命令被设计为可组合的。典型的功能开发生命周期会按顺序串联多个命令:
# 1. Clarify requirements
/interview 실시간 알림 시스템 만들어야 돼
# 2. Generate a plan from the refined requirements
/plan
# 3. Audit the plan for gaps
/planaudit
# 4. Deliberate on key design decisions
/deliberate SSE event channel vs polling for our notification delivery
# 5. Set a persistent goal
/goal set Implement real-time notification system (SSE-first)
# 6. Execute with a parallel team (for large tasks)
/team plan Implement notification system -- server, client, tests, docs
# 7. Monitor and collect
/team status
/team collect
# 8. Finalize
/goal update All modules integrated and tested
/goal done
快速参考
| 你想做什么 | 命令 | 韩语快捷方式 |
|---|---|---|
| 生成计划 | /plan [request] | "계획 세워줘" |
| 澄清需求 | /interview <request> | "요구사항 정리해줘" |
| 多角色讨论审议 | /deliberate <topic> | "장단점 분석해줘" |
| 审计计划 | /planaudit | "플랜 검토해줘" |
| 创建目标 | /goal set <desc> | "목표 설정해줘" |
| 检查目标进度 | /goal status | "상태 알려줘" |
| 完成目标 | /goal done | "다 했어" |
| 取消目标 | /goal cancel | "목표 취소" |
| 更新目标进度 | /goal update <msg> | "진행 상황 업데이트" |
| 查看目标历史 | /goal history | "목표 히스토리" |
| 启动并行团队 | /team plan <request> | "팀으로 나눠서 해줘" |
| 检查团队状态 | /team status | "팀 상태 확인" |
| 审计团队工作 | /team audit | "팀 감사" |
| 收集团队结果 | /team collect | "결과 모아줘" |
| 停止所有智能体 | /team stop | "팀 중지" |