scope
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOutput style (plain words, no dashes, no hyphens)
输出风格(直白表述,不使用破折号、连字符)
<!-- OUTPUT-STYLE:START -->
Write everything this skill produces, files and messages alike, in plain simple language. Keep technical terms that carry real meaning; explain each in plain words. Never use a dash or a hyphen as punctuation: no em dash, no en dash, and no hyphenated compounds. Write , not . Say it in simple words, or reword the sentence. Code, file paths, command flags, and values other skills match on keep their hyphens. Use short sentences, commas, or parentheses. Clear beats clever.
<!-- OUTPUT-STYLE:END -->read onlyread-only<!-- OUTPUT-STYLE:START -->
本技能生成的所有内容(包括文件和消息)均使用直白易懂的语言撰写。保留具有实际意义的专业术语,并以直白语言解释每个术语。切勿将破折号或连字符用作标点:不使用长破折号、短破折号,也不使用连字符构成复合词。应写 ,而非 。用简单的语言表述,或改写句子。代码、文件路径、命令标志以及其他技能需匹配的值可保留其连字符。使用短句、逗号或括号表述。清晰优于巧妙。
<!-- OUTPUT-STYLE:END -->read onlyread-onlyWhat this skill does
本技能的功能
Turns an idea into an ordered, coarse, living plan and keeps it honest as the product ships. Answers "what do I build, in what order, how heavy, which need a decision first?", not "how do I build this one thing?" (that is and ).
/architect/developScope shape, coarse and small: a slim At a glance table () + feature sections grouped by phase (see ). Each section: heading with short tags only when they matter (, an approach override, weight), a 1 to 2 line intent, one line (acceptance criteria seeds, the WHAT), checkbox steps.
# · Feature · Phase · Statusscope-template.md### N. Nameneeds a decisionfullDone when:Feature shape lifecycle: not yet designed → one box, its entry command. On spec capture, fills the built ready shape: ticked, spec linked, with 2 to 5 milestone sub items rolled up from the spec's , then and . Atomic build tasks stay in the spec's , never here; every box is a command or tracked milestone. Status: in the table and beside the heading; spec and code pointers once they exist. seeds the what; designs the how and defines milestones; builds; and close; reconciles conventions after.
/architectDesign it (spec)Build it: /develop <feature>## Build planVerify it: /check verify <feature>Test it: /test <feature>## Build plan/scope/architect/develop/check verify/test/syncOne command, inferred intent (, never a subcommand):
/scope [what]- plan (default): no scope yet + a product sized idea, or asking for the next slice. Full pass: ask → decompose into coarse feature sections → order + phase → write.
- replan: scope exists + no argument. Opens with a short where things stand readout (git branch and ahead/behind the remote, feature counts by status, and each in-progress feature's resume point) so a bare doubles as the "where was I, what is safe to pick up" orientation, then reconciles what shipped, surfaces plan vs reality drift (code or specs with no scope row), enrolls needs surfaced during the build, reorders, and queues the next slice. The normal living rhythm, not rare: run bare
/scopeagain./scope - add: scope exists + argument names a single feature. Enroll one coarse row (intent + order + weight + Needs spec) without planning again: .
/scope <a feature>
将构想转化为有序、粗略且动态更新的计划,并在产品交付过程中保持计划的真实性。回答“我要构建什么,按什么顺序构建,工作量如何,哪些需要先做决策?”这类问题,而非“我如何构建这一件事?”(后者属于 和 的职责)。
/architect/develop范围文档的结构:简洁的“概览”表格() + 按阶段分组的功能章节(参考 )。每个章节包含:标题 (仅在必要时添加简短标签,如 、方法覆盖、 工作量)、1-2行的目标说明、一行“完成标准:”(验收标准雏形,即要做的内容WHAT)、复选框步骤。
# · Feature · Phase · Statusscope-template.md### N. Nameneeds a decisionfull功能的生命周期:未设计 → 单个复选框及其启动命令。捕获规格时, 会填充就绪结构:勾选“设计(规格)”,链接规格文档,添加“构建:/develop <feature>”(包含从规格文档的 汇总而来的2-5个里程碑子项),然后是“验证:/check verify <feature>”和“测试:/test <feature>”。原子构建任务仅保留在规格文档的 中,绝不会出现在范围文档中;每个复选框都是一个命令或可追踪的里程碑。状态:显示在表格和标题旁;一旦存在规格和代码,需添加对应的链接。 确定要构建的内容; 设计实现方式并定义里程碑; 负责构建; 和 完成收尾; 在之后协调规范。
/architect## Build plan## Build plan/scope/architect/develop/check verify/test/sync单命令,自动推断意图(,无子命令):
/scope [what]- 规划(默认):尚无范围文档 + 产品级构想,或请求规划下一阶段内容。完整流程:询问 → 将构想分解为粗略的功能章节 → 排序 + 划分阶段 → 写入文档。
- 重新规划:已有范围文档 + 无参数。首先显示当前状态摘要(git分支、与远程仓库的超前/滞后情况、各状态的功能数量、每个进行中功能的恢复点),因此直接运行 可同时用作“我之前做到哪了,接下来可以安全开展什么工作”的定位工具,然后协调已交付的内容,找出计划与实际情况的偏差(无范围行对应的代码或规格),添加构建过程中发现的需求,重新排序,并规划下一阶段内容。这是日常动态维护的常规流程,而非罕见操作:只需再次直接运行
/scope即可。/scope - 添加:已有范围文档 + 参数指定单个功能。添加一行粗略的功能条目(目标说明 + 排序 + 工作量 + 需要规格),无需重新规划:。
/scope <a feature>
Asks vs acts
询问与执行
Senior product engineer, thorough across all dimensions. Same infer / ask / recommend discipline as : INFER what the idea states (category, obvious capabilities); ASK what cannot be inferred across business, product, go to market in batched rounds (up to 4 questions per round; see Decision panels); RECOMMEND build approach, build order, each feature's weight, which need a spec (expert calls: present them, let the engineer override).
/architectNever pick tools: no provider, library, ORM, host, or BaaS chosen or named; that is 's job per feature in the spec. A feature implying a tool choice is exactly . Keep the scope tool agnostic so it doesn't rot.
/architectNeeds spec: yes作为资深产品工程师,需全面覆盖所有维度。遵循与 相同的“推断/询问/建议”准则:推断构想所表达的内容(类别、明确的功能);分批次询问无法推断的业务、产品、上市相关问题(每轮最多4个问题;参考决策面板);建议构建方式、构建顺序、每个功能的工作量、哪些需要编写规格文档(给出专业判断:提出建议,允许工程师 override)。
/architect切勿选择工具:不指定或命名任何供应商、库、ORM、主机或BaaS;这是 在功能规格文档中的职责。若某个功能暗示需要选择工具,则标记为“需要规格:是”。保持范围文档与工具无关,避免文档失效。
/architectDecision panels (every user facing choice)
决策面板(所有面向用户的选择)
Every choice is an options panel, never a neutral menu: 2 to 4 concrete options real to this product; exactly one marked with a one line why (make the call, let them override). Never add your own Other option, the picker appends a free text Other automatically; offer free text yourself only in a plain text fallback with no picker. Capability first: use the agent's picker ( on Claude Code), else the same options as plain text; batched rounds same rule, up to 4 per round.
(recommended)AskUserQuestion每个选择都以选项面板呈现,而非中性菜单:针对当前产品提供2-4个具体可行的选项;其中恰好有一个标记为 ,并附带一行理由(做出判断,允许用户 override)。切勿自行添加“其他”选项,选择器会自动附加自由文本“其他”;仅在无选择器的纯文本回退场景中提供自由文本选项。优先使用能力选择:使用Agent的选择器(Claude Code上的 ),否则以纯文本形式提供相同选项;分批次询问时遵循相同规则,每轮最多4个问题。
(recommended)AskUserQuestionArtifact ownership
工件所有权
docs/scope//architectdocs/specs/docs/scope/planreplanaddAGENTS.mddocs/scope/rationale.md/architectFile shape:
- Small product: one file, (At a glance table + phase grouped sections + legend).
docs/scope/scope.md - Large product: epic split: (At a glance table across epics + one line status rollup per epic, each linking its epic file) + one file per epic named by area (
docs/scope/index.md, …).docs/scope/auth.md - Promote on demand: start single file; when outgrows a comfortable scan (roughly a dozen plus features across clearly distinct areas), rename to
scope.md(keep table + per epic rollup), move each area's sections into its ownindex.md. Never split it early. Names semantic (<epic>.md/scope.md/index.md), never numbered.<epic>.md - Keep every file coarse and small; a long epic file needs finer features and tighter intent, not a build task dump.
Status lifecycle ( sets initial status; the pipeline advances it):
/scope- New features start . Brownfield: also enroll features that are already there as
planned(complete) orexisting(partial), the only other statusesin-progresswrites./scope - advances pipeline built work (
/develop→planned→in-progress);donereconciles against the diff./sync - ≠
done:existing= this pipeline built and verified it;donepredates the workflow;existingand/developnever touch/syncrows.existing - may set a feature dropped from scope to
replan, never deletes rows;droppedkeeps history, excluded from active counts and work;droppedand/developskip it./sync
Process weight: every feature carries Weight · · , one column turning downstream process on or off. : trivial, low risk, well understood; skip the fresh model review; often . : moderate scope or a real decision; normal path. : high risk, large scope, or compliance sensitive; a fresh model warranted; almost always . sets the initial weight from the risk and size of the feature, the same signals and read; downstream skills read this column. Weight is a per feature judgment, not a fixed tier: there is no global playbook a feature is slotted into.
leanmediumfullleanNeeds spec: nomediumfull/check reviewNeeds spec: yes/scope/architect/developArtifact base: by default; if is a published docs site (, , , Astro Starlight, or Nextra detected), use (). Always follow whichever base already exists (paths here assume ).
docs/docs/docusaurus.config.*.vitepress/mkdocs.yml.workflow/.workflow/scope/…docs/Concurrency: shared across sessions and teammates. Read again immediately before writing; surgical edits only (append rows in order, reconcile changed cells, never rewrite the file); flag rather than clobber unexpected state; append with the next free numbers so adders don't collide.
docs/scope//architectdocs/specs/docs/scope/planreplanaddAGENTS.mddocs/scope/rationale.md/architect文件结构:
- 小型产品:单个文件 (概览表格 + 按阶段分组的章节 + 图例)。
docs/scope/scope.md - 大型产品:按史诗拆分:(跨史诗的概览表格 + 每个史诗的一行状态汇总,均链接至对应史诗文件) + 每个领域对应一个史诗文件(如
docs/scope/index.md等)。docs/scope/auth.md - 按需升级:初始使用单个文件;当 内容过多,难以快速浏览时(大致超过12个功能且分布在明显不同的领域),将其重命名为
scope.md(保留表格 + 史诗状态汇总),将各领域的章节移至对应的index.md文件中。切勿过早拆分。文件命名需语义化(<epic>.md/scope.md/index.md),绝不使用编号。<epic>.md - 保持每个文件简洁粗略;过长的史诗文件需要更细化的功能和更明确的目标,而非堆砌构建任务。
状态生命周期( 设置初始状态;流水线推进状态更新):
/scope- 新功能初始状态为 。遗留系统:需将已有的功能标记为
planned(已完成)或existing(进行中),这是in-progress会写入的仅有的其他状态。/scope - 推进已构建工作的状态(
/develop→planned→in-progress);done根据差异协调状态。/sync - ≠
done:existing表示本流水线已构建并验证该功能;done表示该功能早于当前工作流;existing和/develop绝不会修改/sync条目。existing - 可将从范围中移除的功能标记为
replan,绝不删除条目;dropped保留历史记录,不计入活跃功能数量和工作任务;dropped和/develop会跳过此类条目。/sync
流程权重:每个功能都带有 · · 三种权重之一,该列用于开启或关闭下游流程。:工作量小、风险低、需求明确;跳过新模型评审;通常标记为“需要规格:否”。:范围适中或需要实际决策;遵循常规流程。:高风险、大范围或合规敏感;需进行新模型 ;几乎总是标记为“需要规格:是”。 根据功能的风险和规模设置初始权重, 和 会读取相同的信号;下游技能会读取该列内容。权重是针对每个功能的判断,而非固定层级:不存在将功能强行归类的全局手册。
leanmediumfullleanmediumfull/check review/scope/architect/develop工件基础目录:默认使用 ;若检测到 是已发布的文档站点(存在 、、、Astro Starlight 或 Nextra),则使用 ()。始终遵循已存在的基础目录(本文档中的路径默认假设使用 )。
docs/docs/docusaurus.config.*.vitepress/mkdocs.yml.workflow/.workflow/scope/…docs/并发处理:支持跨会话和跨团队成员共享。写入前需立即重新读取文档;仅进行精准编辑(按顺序追加条目,协调变更的单元格,绝不重写整个文件);若遇到意外状态,需标记而非覆盖;追加时使用下一个可用编号,避免多人添加时冲突。
Reference files
参考文件
- : format rules, At a glance table, per feature sections (heading + intent + Done when + checkbox tasks + pointer line), brownfield enrollment and epic split shapes, the
scope-template.mdreport block. Read it when writing the scope and the report.## /scope complete
- :格式规则、概览表格、功能章节模板(标题 + 目标说明 + 完成标准 + 复选框步骤 + 链接行)、遗留系统条目和史诗拆分结构、
scope-template.md报告块。撰写范围文档和报告时需参考此文件。## /scope complete
Portability (any OS, any agent)
可移植性(支持任意操作系统、任意Agent)
Any Agent Skills client on macOS, Linux, Windows. Detection snippets are POSIX reference; use your agent's cross platform file tools. Planning runs inline; the two subagents below (Step 1 brownfield code scan, Step 6b sourcing) are optional and capability first, degrade to inline. No interactive picker: ask every panel as plain text, same options.
支持在macOS、Linux、Windows上运行任意Agent Skills客户端。检测代码片段以POSIX为参考;使用Agent的跨平台文件工具。规划流程在线运行;以下两个子Agent(步骤1:遗留系统代码扫描,步骤6b:资源获取)为可选组件,优先保障核心能力,降级时可在线运行。若无交互式选择器:以纯文本形式询问所有面板问题,提供相同选项。
Execution
执行流程
Step 0: Infer intent & idea check
步骤0:推断意图 & 构想检查
No subcommand. First check whether a scope exists under (or if that is the artifact base), then infer:
docs/scope/.workflow/scope/- Scope exists + no argument (or running again, described as "reconcile / what's next") → replan behavior ().
modes/replan.md - Scope exists + argument names a single feature → add behavior ().
modes/add.md - No scope yet + a product sized idea, or scoping the next slice (including brownfield) → plan behavior, below.
Ambiguous (a new slice vs a single feature): infer the most likely reading from scope, say which behavior you chose in the report; truly unclear → one line clarifying question.
Plan behavior, no idea given (no argument, no scope to extend): stop and ask before anything else:
"What are you building? Describe the product or the slice of it you want to plan (one or two sentences about what it does and who it's for)."
Wait for the answer; use it as the product idea.
无需子命令。首先检查 (或工件基础目录为 时)是否存在范围文档,然后推断:
docs/scope/.workflow/scope/- 存在范围文档 + 无参数(或描述为“协调/下一步工作”时再次运行)→ 执行重新规划行为(参考 )。
modes/replan.md - 存在范围文档 + 参数指定单个功能 → 执行添加行为(参考 )。
modes/add.md - 无范围文档 + 产品级构想,或规划下一阶段内容(包括遗留系统)→ 执行规划行为,如下所述。
若意图模糊(是规划新阶段还是添加单个功能):根据现有范围文档推断最可能的意图,并在报告中说明选择的行为;若确实无法明确 → 提出一行澄清问题。
执行规划行为但未提供构想(无参数,无范围文档可扩展):在执行任何操作前暂停并询问:
“你要构建什么?描述你要规划的产品或其阶段(用1-2句话说明功能和目标用户)。”
等待回复;将回复作为产品构想。
Step 1: Load the inferred behavior
步骤1:加载推断的行为
After Step 0 infers the behavior, read exactly one mode file and follow it:
- for plan behavior (new scope, product sized idea, or next slice planning).
modes/plan.md - for replan behavior (scope exists and no argument).
modes/replan.md - for add behavior (scope exists and the argument names one feature).
modes/add.md
Do not read the other mode files unless the inferred behavior changes. All common rules above still apply, and remains the format reference for any write/report.
scope-template.md步骤0推断行为后,仅读取一个模式文件并遵循其规则:
- 执行规划行为时读取 (新范围文档、产品级构想或下一阶段规划)。
modes/plan.md - 执行重新规划行为时读取 (存在范围文档且无参数)。
modes/replan.md - 执行添加行为时读取 (存在范围文档且参数指定单个功能)。
modes/add.md
除非推断的行为发生变化,否则请勿读取其他模式文件。上述所有通用规则仍然适用, 始终是撰写/报告时的格式参考。
scope-template.mdReference
参考
- : see Reference files above.
scope-template.md
- :参见上方参考文件部分。
scope-template.md