English
Execution Contract
Default to fast; bounded natural-language invocation is allowed.
Complete one primary task by default. Continue an authorized end-to-end workflow within each Skill's permissions; Router remains recommendation-only. Pause for new material decisions or scope, not authorization already given.
Validate according to actual risk; security, production, migrations, releases and other high-risk work use audit. Read references/execution-modes.en.md only when mode selection is unclear.
Requirements to Spec
Convert requirements whose material decisions are already closed into an implementable and testable specification. Do not reopen settled choices, modify files, or produce a file-by-file implementation plan.
Boundary
- Require a clarification summary, settled discussion, or other evidence that material product, behavior, data, security, permission, compatibility, migration, and acceptance decisions are closed.
- Use repository evidence before labeling any current behavior or constraint.
- Continue with explicit assumptions only for non-blocking details that cannot materially change the specification.
- If a material decision remains open or reopens, stop specification work and hand the decision ledger to
requirements-clarification; do not hide it under an assumption.
- Do not use this skill when the user supplied a complete formal specification, only wants existing code explained, wants a bug fixed, requests direct edits, or needs work-item decomposition.
- Route impact discovery to
change-impact-analysis, implementation planning to safe-change-plan, and edits to safe-fix-implementation.
- Match the user's language. Preserve code identifiers, paths, API names, commands, and error messages.
Workflow
- Cite the clarification summary or settled source and confirm that no material decision remains open.
- Restate the requirement and identify target users, business goal, current state, desired behavior, and measurable success.
- Inspect relevant repository docs, code, configuration, APIs, tests, and conventions. Cite paths or commands for every repository-derived claim.
- Separate in-scope behavior, out-of-scope behavior, constraints, dependencies, non-blocking assumptions, deferred items, and unknown evidence.
- Describe normal flows, failure flows, boundary cases, permissions, compatibility, and migration expectations.
- Mark unsupported details as unknown. Give each non-blocking assumption a confidence level and verification method.
- Write testable acceptance criteria in Given/When/Then or an equivalent observable form.
- Recheck the specification for material decisions. If one remains, stop and route it to
requirements-clarification.
- Recommend
spec-to-work-items for multi-step delivery or change-impact-analysis for a concrete code change; do not prescribe edits.
Output Contract
- Requirements summary
- Users and goals
- Current behavior, with evidence or
Unknown
- Target behavior
- In scope
- Out of scope
- Constraints and dependencies
- Assumptions, confidence, and verification
- Non-blocking assumptions, deferred items, and unknown evidence
- Acceptance criteria covering normal, failure, boundary, and compatibility behavior
- Risks
- Recommended next step
If a blocking decision exists, stop and return a handoff to requirements-clarification instead of presenting a completed specification. Do not include a file-by-file implementation plan or edits.
简体中文
执行契约
默认使用 fast;允许边界明确的自然语言隐式调用。
默认完成一个主任务。用户已授权完整流程时,在各 Skill 权限内连续完成;Router 仍只推荐。新重大决策或超出授权时暂停,不重复索取已有授权。
按实际风险选择验证;安全、生产、迁移、发布等高风险工作使用 audit。模式不明确时才读取 references/execution-modes.zh-CN.md。
Requirements Specification(需求规格化)
将重大决策已经闭合的需求转换成可实施、可测试的规格。不要重新打开已确认选择、修改文件或输出逐文件实施计划。
职责边界
- 必须已有澄清摘要、已定稿讨论或其他证据,证明产品、行为、数据、安全、权限、兼容、迁移和验收等重大决策已闭合。
- 先使用仓库证据,再描述当前行为或约束。
- 只有不会实质改变规格的细节才能作为显式假设继续。
- 发现重大决策仍未闭合或重新出现时,停止规格化并把决策台账交给
requirements-clarification,不得把它伪装成假设。
- 用户已提供完整正式规格、只要求解释代码、要求修 Bug、直接修改或需要拆工作项时,不使用本 Skill。
- 影响发现交给
change-impact-analysis,实施规划交给 safe-change-plan,实际修改交给 safe-fix-implementation。
- 输出语言跟随用户输入;代码标识符、路径、API 名称、命令和错误信息保持原样。
工作流程
- 引用澄清摘要或已定稿来源,确认不存在重大开放决策。
- 复述需求,识别目标用户、业务目标、当前状态、期望行为和可衡量成功标准。
- 检查相关文档、代码、配置、API、测试和约定,每条仓库结论引用路径或命令。
- 区分范围内、范围外、约束、依赖、非阻塞假设、延期事项和未知证据。
- 描述正常流程、异常流程、边界条件、权限、兼容和迁移要求。
- 无证据细节标为未知;每个非阻塞假设附置信度和验证方式。
- 使用 Given/When/Then 或等价可观察结构编写可测试验收标准。
- 再次检查重大决策;仍有开放项时停止并转交
requirements-clarification。
- 多步骤交付推荐
spec-to-work-items,具体代码变更推荐 change-impact-analysis;不要规定实际修改。
输出契约
- 需求摘要
- 用户与目标
- 当前行为,附证据或标记“未知”
- 目标行为
- 范围内
- 范围外
- 约束与依赖
- 假设、置信度与验证方式
- 非阻塞假设、延期事项和未知证据
- 验收标准,覆盖正常、异常、边界和兼容性行为
- 风险
- 建议下一步
存在阻塞决策时,必须停止并输出给 requirements-clarification 的交接,不得声称规格已完成。不得包含逐文件实施计划或实际修改。
1---2name: requirements-to-spec3description: Convert requirements whose material product, data, security, permission, compatibility, and acceptance decisions are already closed into a structured, implementable, testable specification. Use when a clarification summary or settled discussion is ready for specification and only non-blocking assumptions remain; stop and route material open decisions to requirements-clarification. Do not use for task decomposition, implementation planning, code explanation, bug fixing, or direct edits. 将产品、数据、安全、权限、兼容性和验收等重大决策已经闭合的需求整理为结构化、可实施、可验证的规格。用于已有澄清摘要或讨论已定稿、只剩非阻塞假设时;发现重大未决决策必须停止并转交 requirements-clarification。不用于拆工作项、制定实施计划、解释代码、修 Bug 或直接修改。4---56# English78## Execution Contract910Default to `fast`; bounded natural-language invocation is allowed.11Complete one primary task by default. Continue an authorized end-to-end workflow within each Skill's permissions; Router remains recommendation-only. Pause for new material decisions or scope, not authorization already given.12Validate according to actual risk; security, production, migrations, releases and other high-risk work use `audit`. Read `references/execution-modes.en.md` only when mode selection is unclear.1314# Requirements to Spec1516Convert requirements whose material decisions are already closed into an implementable and testable specification. Do not reopen settled choices, modify files, or produce a file-by-file implementation plan.1718## Boundary1920- Require a clarification summary, settled discussion, or other evidence that material product, behavior, data, security, permission, compatibility, migration, and acceptance decisions are closed.21- Use repository evidence before labeling any current behavior or constraint.22- Continue with explicit assumptions only for non-blocking details that cannot materially change the specification.23- If a material decision remains open or reopens, stop specification work and hand the decision ledger to `requirements-clarification`; do not hide it under an assumption.24- Do not use this skill when the user supplied a complete formal specification, only wants existing code explained, wants a bug fixed, requests direct edits, or needs work-item decomposition.25- Route impact discovery to `change-impact-analysis`, implementation planning to `safe-change-plan`, and edits to `safe-fix-implementation`.26- Match the user's language. Preserve code identifiers, paths, API names, commands, and error messages.2728## Workflow29301. Cite the clarification summary or settled source and confirm that no material decision remains open.312. Restate the requirement and identify target users, business goal, current state, desired behavior, and measurable success.323. Inspect relevant repository docs, code, configuration, APIs, tests, and conventions. Cite paths or commands for every repository-derived claim.334. Separate in-scope behavior, out-of-scope behavior, constraints, dependencies, non-blocking assumptions, deferred items, and unknown evidence.345. Describe normal flows, failure flows, boundary cases, permissions, compatibility, and migration expectations.356. Mark unsupported details as unknown. Give each non-blocking assumption a confidence level and verification method.367. Write testable acceptance criteria in Given/When/Then or an equivalent observable form.378. Recheck the specification for material decisions. If one remains, stop and route it to `requirements-clarification`.389. Recommend `spec-to-work-items` for multi-step delivery or `change-impact-analysis` for a concrete code change; do not prescribe edits.3940# Output Contract41421. Requirements summary432. Users and goals443. Current behavior, with evidence or `Unknown`454. Target behavior465. In scope476. Out of scope487. Constraints and dependencies498. Assumptions, confidence, and verification509. Non-blocking assumptions, deferred items, and unknown evidence5110. Acceptance criteria covering normal, failure, boundary, and compatibility behavior5211. Risks5312. Recommended next step5455If a blocking decision exists, stop and return a handoff to `requirements-clarification` instead of presenting a completed specification. Do not include a file-by-file implementation plan or edits.5657# 简体中文5859## 执行契约6061默认使用 `fast`;允许边界明确的自然语言隐式调用。62默认完成一个主任务。用户已授权完整流程时,在各 Skill 权限内连续完成;Router 仍只推荐。新重大决策或超出授权时暂停,不重复索取已有授权。63按实际风险选择验证;安全、生产、迁移、发布等高风险工作使用 `audit`。模式不明确时才读取 `references/execution-modes.zh-CN.md`。6465# Requirements Specification(需求规格化)6667将重大决策已经闭合的需求转换成可实施、可测试的规格。不要重新打开已确认选择、修改文件或输出逐文件实施计划。6869## 职责边界7071- 必须已有澄清摘要、已定稿讨论或其他证据,证明产品、行为、数据、安全、权限、兼容、迁移和验收等重大决策已闭合。72- 先使用仓库证据,再描述当前行为或约束。73- 只有不会实质改变规格的细节才能作为显式假设继续。74- 发现重大决策仍未闭合或重新出现时,停止规格化并把决策台账交给 `requirements-clarification`,不得把它伪装成假设。75- 用户已提供完整正式规格、只要求解释代码、要求修 Bug、直接修改或需要拆工作项时,不使用本 Skill。76- 影响发现交给 `change-impact-analysis`,实施规划交给 `safe-change-plan`,实际修改交给 `safe-fix-implementation`。77- 输出语言跟随用户输入;代码标识符、路径、API 名称、命令和错误信息保持原样。7879## 工作流程80811. 引用澄清摘要或已定稿来源,确认不存在重大开放决策。822. 复述需求,识别目标用户、业务目标、当前状态、期望行为和可衡量成功标准。833. 检查相关文档、代码、配置、API、测试和约定,每条仓库结论引用路径或命令。844. 区分范围内、范围外、约束、依赖、非阻塞假设、延期事项和未知证据。855. 描述正常流程、异常流程、边界条件、权限、兼容和迁移要求。866. 无证据细节标为未知;每个非阻塞假设附置信度和验证方式。877. 使用 Given/When/Then 或等价可观察结构编写可测试验收标准。888. 再次检查重大决策;仍有开放项时停止并转交 `requirements-clarification`。899. 多步骤交付推荐 `spec-to-work-items`,具体代码变更推荐 `change-impact-analysis`;不要规定实际修改。9091# 输出契约92931. 需求摘要942. 用户与目标953. 当前行为,附证据或标记“未知”964. 目标行为975. 范围内986. 范围外997. 约束与依赖1008. 假设、置信度与验证方式1019. 非阻塞假设、延期事项和未知证据10210. 验收标准,覆盖正常、异常、边界和兼容性行为10311. 风险10412. 建议下一步105106存在阻塞决策时,必须停止并输出给 `requirements-clarification` 的交接,不得声称规格已完成。不得包含逐文件实施计划或实际修改。