cmd-speckit-plan
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/speckit.plan
/speckit.plan
Agent skill wrapper for the Claude command .
/speckit.planWhen the original command text references , , or named arguments, map them from the user's current request.
{{INPUT}}$1Claude命令的Agent技能封装。
/speckit.plan当原始命令文本引用、或命名参数时,从用户当前请求中映射对应内容。
{{INPUT}}$1Command Instructions
命令说明
Produce a complete technical implementation plan from a feature specification.
根据功能规格文档生成完整的技术实施方案。
Steps
步骤
-
Locate the spec:
- If input names a feature or file path, use it.
- Otherwise check ; if multiple, ask which to plan.
.specify/specs/*/spec.md - Fall back to in the project root.
spec.md - Set to the spec's parent directory.
FEATURE_DIR
-
Load context: Readand
spec.md. Detect tech stack from.specify/memory/constitution.md,package.json,mix.exs,Cargo.toml,pyproject.toml, etc.go.mod -
Phase 0 — Research: For eachmarker and technical unknown:
[NEEDS CLARIFICATION]- Search the codebase for existing patterns and abstractions.
- Identify required external dependencies.
- Write findings to :
FEATURE_DIR/research.mdmarkdown# Research: <Feature Name> ## Unknowns Investigated ## Existing Patterns Found ## External Dependencies - Resolve all open questions before proceeding.
-
Phase 1 — Design artifacts:Write:
FEATURE_DIR/plan.mdmarkdown# Technical Plan: <Feature Name> ## Architecture Overview ## Technology Choices (with rationale) ## Component Design ## Implementation Phases ## Risk Assessment ## Open Technical QuestionsWrite(only if the feature involves persistent data):FEATURE_DIR/data-model.mdmarkdown# Data Model: <Feature Name> ## Entities (fields, types, constraints, relationships) ## Migrations (in dependency order) ## Indexes (with justification)Createfor each external interface:FEATURE_DIR/contracts/<interface-name>.mdmarkdown# Contract: <Interface Name> ## Signature / Endpoint ## Request / Input Schema ## Response / Output Schema ## Error Conditions ## Constraints -
Constitution check: Verify the plan does not violate any MUST or SHOULD NOT principle. If violations found, flagand pause for user review before continuing.
[CONSTITUTION CONFLICT] -
Report: List all files created with paths and one-line summaries.
Next step: Run to validate consistency, or to generate the task breakdown.
/speckit.analyze/speckit.tasks{{INPUT}}
-
定位规格文档:
- 如果输入指定了功能名称或文件路径,则使用该路径。
- 否则检查;如果存在多个,询问用户要为哪个生成方案。
.specify/specs/*/spec.md - 若以上都不存在,则使用项目根目录下的。
spec.md - 将设置为规格文档的父目录。
FEATURE_DIR
-
加载上下文:读取和
spec.md。从.specify/memory/constitution.md、package.json、mix.exs、Cargo.toml、pyproject.toml等文件中检测技术栈。go.mod -
阶段0 — 调研:针对每个标记和技术疑点:
[NEEDS CLARIFICATION]- 在代码库中搜索现有模式和抽象实现。
- 确定所需的外部依赖。
- 将调研结果写入:
FEATURE_DIR/research.mdmarkdown# Research: <Feature Name> ## Unknowns Investigated ## Existing Patterns Found ## External Dependencies - 在进入下一阶段前解决所有未明确的问题。
-
阶段1 — 设计产出物:编写:
FEATURE_DIR/plan.mdmarkdown# Technical Plan: <Feature Name> ## Architecture Overview ## Technology Choices (with rationale) ## Component Design ## Implementation Phases ## Risk Assessment ## Open Technical Questions编写(仅当功能涉及持久化数据时):FEATURE_DIR/data-model.mdmarkdown# Data Model: <Feature Name> ## Entities (fields, types, constraints, relationships) ## Migrations (in dependency order) ## Indexes (with justification)为每个外部接口创建:FEATURE_DIR/contracts/<interface-name>.mdmarkdown# Contract: <Interface Name> ## Signature / Endpoint ## Request / Input Schema ## Response / Output Schema ## Error Conditions ## Constraints -
合规性检查:验证方案是否违反任何MUST或SHOULD NOT原则。若发现违规,标记并暂停流程,等待用户审核后再继续。
[CONSTITUTION CONFLICT] -
生成报告:列出所有创建的文件,包含路径和单行摘要。
下一步:运行验证一致性,或运行生成任务分解。
/speckit.analyze/speckit.tasks{{INPUT}}