bootstrap
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- markdownlint-disable MD013 -->
<!-- markdownlint-disable MD013 -->
Setup Workflow
工作流初始化
Run once per repo, before the first use of any other workflow skill. It
teaches this repo where issues live, what the triage labels are called, and
where the domain docs sit — and records those answers as the
files the rest of the pipeline reads.
docs/agents/This is prompt-driven, not a deterministic script: explore, present what you
found, confirm with the user, then write. Never guess where guessing can be
replaced by looking.
每个代码仓库仅需运行一次,在使用任何其他工作流skill之前执行。它会告知代码仓库问题的存放位置、分类标签的命名以及领域文档的位置,并将这些答案记录为目录下的文件,供后续流程读取。
docs/agents/这是由提示驱动的流程,而非确定性脚本:先探索,展示发现的内容,与用户确认后再进行编写。凡可通过查看获取信息的,绝不猜测。
Process
流程
1. Explore
1. 探索
Read what already exists; don't assume:
- — is this a GitHub repo? Which owner/repo?
git remote -v - /
AGENTS.mdat root — does either exist? Is there already anCLAUDE.mdsection?## Agent skills - ,
CONTEXT.mdat root.CONTEXT-MAP.md - — did a prior run already write these?
docs/agents/ - Existing issue labels (, or the GitHub MCP) — so triage maps onto real labels instead of creating duplicates.
gh label list - Monorepo signals (,
pnpm-workspace.yamlinworkspaces, populatedpackage.json) — decides single- vs multi-context docs.packages/*
查看已有的内容,不要主观假设:
- — 这是GitHub仓库吗?所属的所有者/仓库名称是什么?
git remote -v - 根目录下的/
AGENTS.md— 是否存在其中任意一个?是否已有CLAUDE.md章节?## Agent skills - 根目录下的、
CONTEXT.md。CONTEXT-MAP.md - — 是否之前运行过该流程并已生成这些文件?
docs/agents/ - 已有的问题标签(,或GitHub MCP)— 确保分类标签映射到真实存在的标签,避免重复创建。
gh label list - 单体仓库标识(、
pnpm-workspace.yaml中的package.json、已填充的workspaces目录)— 决定使用单上下文还是多上下文文档。packages/*
2. Present findings and ask
2. 展示发现并确认
Summarise what's present and missing. Take the three decisions in order, each
led by a recommended answer the user can accept in a word. Skip any the
exploration already settled.
A — Issue tracker. Where work is tracked. Default: GitHub Issues on
. Alternatives: GitLab, local markdown under , or a workflow
the user describes. Propose the one matching the git remote.
origin.scratch/B — Triage labels. Read the repo's real labels first ( or the
GitHub MCP). If the canonical set already exists (, ,
, , , , ),
keep them. If the repo already uses different strings for the same roles, map
onto those — never invent labels that already exist under another name. Record
the final mapping in .
gh label listbugenhancementneeds-triageneeds-infoready-for-agentready-for-humanwontfixdocs/agents/issue-tracker.mdC — Domain docs layout. Assume single-context (one + ADRs in
) unless monorepo signals appeared, in which
case propose a .
CONTEXT.mddocs/adr/CONTEXT-MAP.md总结已有的内容和缺失的部分。按顺序做出三项决策,每项决策给出推荐答案,用户只需用一个词即可确认。跳过那些已通过探索确定的内容。
A — 问题追踪器:工作任务的追踪位置。默认:对应的GitHub Issues。备选方案:GitLab、目录下的本地markdown文件,或用户描述的其他工作流。建议选择与git远程仓库匹配的方案。
origin.scratch/B — 分类标签:先读取仓库的真实标签(或GitHub MCP)。如果标准标签集已存在(、、、、、、),则保留它们。如果仓库已使用其他名称指代相同作用的标签,则映射到这些现有标签上——绝不创建已以其他名称存在的标签。将最终的映射关系记录在中。
gh label listbugenhancementneeds-triageneeds-infoready-for-agentready-for-humanwontfixdocs/agents/issue-tracker.mdC — 领域文档布局:默认假设为单上下文(一个加上目录下的ADR文档),除非发现单体仓库标识,此时建议使用。
CONTEXT.mddocs/adr/CONTEXT-MAP.md3. Write
3. 编写
Write , , and
from the confirmed answers, and add an
block pointing at them in whichever of /
the repo already uses.
docs/agents/issue-tracker.mddocs/agents/domain.mddocs/agents/workflow.md## Agent skillsCLAUDE.mdAGENTS.md根据确认后的答案编写、和,并在仓库已有的或中添加指向这些文件的区块。
docs/agents/issue-tracker.mddocs/agents/domain.mddocs/agents/workflow.mdCLAUDE.mdAGENTS.md## Agent skillsIt's working if
验证成功的标志
docs/agents/issue-tracker.mddomain.mdworkflow.md## Agent skillsCLAUDE.mdAGENTS.mdto-specto-ticketstriageRe-run only to switch trackers or start over — day-to-day tweaks are just edits
to .
docs/agents/*.mddocs/agents/issue-tracker.mddomain.mdworkflow.mdCLAUDE.mdAGENTS.md## Agent skillsto-specto-ticketstriage仅在切换追踪器或重新开始时重新运行该流程——日常调整只需编辑文件即可。
docs/agents/*.md