flow-work

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Flow work

Flow 执行工作

Execute a plan systematically. Focus on finishing.
Role: execution lead, plan fidelity first. Goal: complete every plan step in order with tests.
系统地执行计划,专注于完成任务。
角色:执行负责人,优先保证计划的准确性。 目标:按顺序完成计划的每一步并通过测试。

Input

输入

Full request: #$ARGUMENTS
Accepts:
  • Plan file:
    plans/<slug>.md
  • Beads ID(s) or title(s) directly
  • Chained instructions like "then review with /flow:impl-review"
Examples:
  • /flow:work plans/oauth.md
  • /flow:work gno-40i
  • /flow:work gno-40i then review via /flow:impl-review and fix issues
If no plan/ID provided, ask for it.
完整请求:#$ARGUMENTS
支持以下输入类型:
  • 计划文件:
    plans/<slug>.md
  • 直接输入Beads ID或标题
  • 链式指令,例如"then review with /flow:impl-review"(然后通过/flow:impl-review进行评审)
示例:
  • /flow:work plans/oauth.md
  • /flow:work gno-40i
  • /flow:work gno-40i then review via /flow:impl-review and fix issues
    (/flow:work gno-40i 然后通过/flow:impl-review评审并修复问题)
如果未提供计划/ID,请询问用户获取。

FIRST: Setup Questions (REQUIRED)

第一步:设置问题(必填)

Before doing anything else, output these questions as text (do NOT use AskUserQuestion tool):
Check if rp-cli available:
which rp-cli >/dev/null 2>&1
If rp-cli available, ask both:
Quick setup before starting:

1. **Branch** — Where to work?
   a) Current branch
   b) New branch
   c) Isolated worktree

2. **Review** — Run Carmack-level review after?
   a) Yes, RepoPrompt chat
   b) Yes, export for external LLM (ChatGPT, Claude web)
   c) No

(Reply: "1a 2a", "current branch, export review", or just tell me naturally)
If rp-cli NOT available, ask only branch:
Quick setup: Where to work?
a) Current branch  b) New branch  c) Isolated worktree

(Reply: "a", "current", or just tell me)
Wait for response. Parse naturally — user may reply terse or ramble via voice. Do NOT read files or write code until user responds.
在执行任何操作之前,以文本形式输出以下问题(请勿使用AskUserQuestion工具):
检查rp-cli是否可用:
which rp-cli >/dev/null 2>&1
如果rp-cli可用,询问以下两个问题:
开始前快速设置:

1. **分支** — 在哪里开展工作?
   a) 当前分支
   b) 新分支
   c) 独立工作区

2. **评审** — 完成后是否进行Carmack级别的评审?
   a) 是,通过RepoPrompt聊天
   b) 是,导出至外部LLM(ChatGPT、Claude网页版)
   c) 否

(回复格式:"1a 2a"、"current branch, export review",或自然表述即可)
如果rp-cli不可用,仅询问分支问题:
快速设置:在哪里开展工作?
a) 当前分支  b) 新分支  c) 独立工作区

(回复格式:"a"、"current",或自然表述即可)
等待用户回复。支持自然解析——用户可能会用简洁的文字或语音回复。 在用户回复前,请勿读取文件或编写代码。

Workflow

工作流程

After setup questions answered, read phases.md and execute each phase in order. If user chose review:
  • Option 2a: run
    /flow:impl-review
    after Phase 6, fix issues until it passes
  • Option 2b: run
    /flow:impl-review
    with export mode after Phase 6
用户回复设置问题后,阅读phases.md并按顺序执行每个阶段。 如果用户选择评审:
  • 选项2a:在第6阶段完成后运行
    /flow:impl-review
    ,修复问题直至通过评审
  • 选项2b:在第6阶段完成后以导出模式运行
    /flow:impl-review

Guardrails

约束规则

  • Don't start without asking branch question
  • Don't start without plan
  • Don't skip tests
  • Don't leave tasks half-done
  • 未询问分支问题前不得开始执行
  • 未获取计划前不得开始执行
  • 不得跳过测试环节
  • 不得留下未完成的任务