Requirements to spec
Skill dss-time/repo-doctor-skills/plugins/repo-doctor/skills/requirements-to-spec
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 或直接修改。From its SKILL.md
npx -y skills add dss-time/repo-doctor-skills --skill requirements-to-specAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.4 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
Requirements Specification(需求规格化)
Use the section matching the user's language. 使用与用户输入语言一致的章节。
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 tosafe-change-plan, and edits tosafe-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-itemsfor multi-step delivery orchange-impact-analysisfor 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.
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 的交接,不得声称规格已完成。不得包含逐文件实施计划或实际修改。
What ships with it: 1 file
328 B alongside SKILL.md
agents/
- openai.yaml328 B