team-question
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBefore each dispatch or retry, read host dispatch and supply its resolved installed paths.
Before artifact work, read artifact schema.
Before handling external values, read external-data rules.
每次 dispatch 或 retry 前,读取 host dispatch,并提供解析后的已安装路径。
开始处理 artifact 前,读取 artifact schema。
处理外部值之前,读取 external-data rules。
Team Question
团队问题
Before finalizing prose you author, read the writing standards.
Run the QUESTION phase only, then stop. The phase writes, in :
docs/plans/<id>/- — the human's full intent. Never read by
1-task.mdorresearcher.file-finder - — neutral research questions without intent; the only file
2-questions.mdandresearcherread.file-finder - — only under
3-prd.mdin## Conditional PRD.skills/team/playbooks/question.md - — only when the topic spans more than one repository: each involved repo's slug, absolute path, and role.
4-repos.md
在定稿由你撰写的文本前,读取 writing standards。
仅运行 QUESTION 阶段,然后停止。该阶段会在 中写入:
docs/plans/<id>/- — 用户的完整意图。绝不可由
1-task.md或researcher读取。file-finder - — 不带意图的中立研究问题;这是
2-questions.md和researcher唯一读取的文件。file-finder - — 仅位于
3-prd.md的skills/team/playbooks/question.md下。## Conditional PRD - — 仅当主题跨越多个仓库时写入:每个相关仓库的 slug、绝对路径和角色。
4-repos.md
Execution
执行
-
Resolveto a description:
$ARGUMENTS- Empty: discover, do not demand. Read recent activity and the repo's
git log/READMEto propose a likely topic; useCLAUDE.mdwith labeled options only for a genuine gap in intent. Never bare-stop with a "describe it" demand when context is available.AskUserQuestion - Ticket-only: ask the user for context, or fetch the issue body through a configured tracker integration.
- Issue URL: run (or equivalent) and use the title plus body as the description.
gh issue view <url> --json title,body - Free text: use directly.
A ticket identifier (e.g.) is recorded asENG-1234inticketIdfrontmatter. The orchestrator calls no ticketing system.1-task.md - Empty: discover, do not demand. Read recent
-
Choose: a 2–4 word kebab-case slug derived from the description. Resolve
<kebab-topic>to the absolute directory containing this<team-question-skill-dir>. From the repository root, runSKILL.md, passing"<team-question-skill-dir>/scripts/prepare-plan-dir.sh" [--ticket <TICKET>] <kebab-topic>only when a ticket identifier is present. Its--ticketline isdir=.docs/plans/<id>/ -
Handle its exit code. Exit 2: fix the topic or ticket its stderr names and rerun. Exit 1 or 3: stop and report its stderr.
-
Resume detection from itsline:
state=- : the questioner writes every artifact.
new - : re-read
questions-onlyinstead of overwriting it; the questioner only writes1-task.md.2-questions.md - : skip dispatch and go to the report.
complete
-
Dispatch theagent with the full description and the target directory
questioner. It writes the artifacts above.docs/plans/<id>/ -
Stop once the rerun reports: rerun the step 2 command with
state=completefrom its first--date <date>line. Do not continue to RESEARCH. Any other state means the questioner did not writedate=and1-task.md; report that and stop.2-questions.md
Report:
- Path to and
1-task.md(and2-questions.md/3-prd.mdwhen written)4-repos.md - Topic slug and
<id> - Mode: single-repo, or multi-repo with the involved repo slugs
- Tell the user: "Next: run "
/team-research docs/plans/<id>/
-
将解析为描述:
$ARGUMENTS- 为空:主动发现,不要索要描述。 读取近期 活动以及仓库的
git log/README,以提出可能的主题;只有在意图确实存在缺口时,才使用带标签选项的CLAUDE.md。当已有上下文时,绝不要只用一句“描述一下”就直接停止。AskUserQuestion - 仅有 ticket:向用户询问上下文,或通过已配置的 tracker 集成获取 issue 正文。
- Issue URL:运行 (或等效命令),并使用标题和正文作为描述。
gh issue view <url> --json title,body - 自由文本:直接使用。
工单标识符(例如)会作为ENG-1234记录在ticketId的 frontmatter 中。编排器不会调用任何工单系统。1-task.md - 为空:主动发现,不要索要描述。 读取近期
-
选择:根据描述生成一个 2–4 个单词的 kebab-case slug。将
<kebab-topic>解析为包含此<team-question-skill-dir>的绝对目录。从仓库根目录运行SKILL.md,仅在存在工单标识符时传入"<team-question-skill-dir>/scripts/prepare-plan-dir.sh" [--ticket <TICKET>] <kebab-topic>。其--ticket行所标示的是dir=。docs/plans/<id>/ -
处理其退出码。退出码为 2:修复 stderr 中指出的 topic 或 ticket,然后重新运行。退出码为 1 或 3:停止并报告 stderr 内容。
-
根据行进行恢复检测:
state=- :questioner 写入所有 artifact。
new - :重新读取
questions-only,而不是覆盖它;questioner 仅写入1-task.md。2-questions.md - :跳过 dispatch 并进入报告环节。
complete
-
使用完整描述和目标目录dispatch
docs/plans/<id>/Agent。它会写入上述 artifact。questioner -
重新运行后,一旦报告即停止:使用首个
state=complete行中的date=,通过<date>重新运行步骤 2 的命令。不要继续进入 RESEARCH 阶段。任何其他状态都表示--date <date>未写入questioner和1-task.md;报告该情况并停止。2-questions.md
报告:
- 和
1-task.md的路径(以及写入时的2-questions.md/3-prd.md)4-repos.md - Topic slug 和
<id> - 模式:single-repo,或列出相关仓库 slug 的 multi-repo
- 告诉用户:“下一步:运行 ”
/team-research docs/plans/<id>/