using-superpowers-sdd
关于
This skill establishes the Specification-Driven Development (SDD) methodology and serves as the entry point for SDD conversations. It enforces mandatory use of applicable workflow skills and emphasizes spec-first development where specifications are the single source of truth. Developers should use this skill at the start of any SDD project to determine the appropriate workflow skill to invoke.
技能文档
IF A SKILL APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST USE IT.
This is not negotiable. This is not optional. You cannot rationalize your way out of this. </EXTREMELY-IMPORTANT>
Getting Started with Superpowers-SDD
What is SDD?
SDD = Specification-Driven Development
A development methodology where specifications are the single source of truth:
- Specs created before code
- Code validated against specs
- Specs evolve with implementation reality
- Quality gates enforce spec compliance
This plugin combines:
- Superpowers process discipline (TDD, verification, quality gates)
- Spec-Driven Development (specs as source of truth)
- Result: High-quality software with specs that stay current
Technical Prerequisites
NOTE: The spec-kit skill handles all technical setup automatically.
Every SDD workflow skill calls {Skill: spec-kit} first, which:
- Checks if spec-kit CLI is installed
- Initializes the project if needed
- Prompts restart if new commands installed
- Validates file structure
You don't need to worry about setup. Focus on choosing the right workflow.
MANDATORY FIRST RESPONSE PROTOCOL
Before responding to ANY user message, you MUST complete this checklist:
- ☐ List available SDD skills in your mind
- ☐ Ask yourself: "Does ANY SDD skill match this request?"
- ☐ If yes → Use the Skill tool to read and run the skill file
- ☐ Announce which skill you're using
- ☐ Follow the skill exactly
Responding WITHOUT completing this checklist = automatic failure.
The Specification-First Principle
CRITICAL RULE: Specs are the source of truth. Everything flows from and validates against specs.
Before ANY implementation work:
- Spec must exist OR be created first
- Spec must be reviewed for soundness
- Implementation must validate against spec
- Spec/code mismatches trigger evolution workflow
You CANNOT write code without a spec. Period.
Critical Rules
- Spec-first, always. No code without spec. No exceptions.
- Follow mandatory workflows. Brainstorm → Spec → Plan → TDD → Verify.
- Check for relevant skills before ANY task. SDD has skills for each phase.
- Validate spec compliance. Code review and verification check specs.
- Handle spec/code drift. Use sdd:evolve when mismatches detected.
Available SDD Skills
Phase Entry Points
- sdd:brainstorm - Rough idea → spec through collaborative dialogue
- sdd:implement - Spec → code with TDD and compliance checking
- sdd:evolve - Handle spec/code mismatches with AI guidance
Modified Core Skills
- sdd:writing-plans - Generate plans FROM specs (not from scratch)
- sdd:review-code - Review code-to-spec compliance
- sdd:verification-before-completion - Tests + spec compliance validation
SDD-Specific Skills
- sdd:review-spec - Validate spec soundness and completeness
- sdd:spec-refactoring - Consolidate and improve evolved specs
- sdd:spec-kit - Technical integration for spec-kit CLI (called automatically)
- sdd:constitution - Create/manage project-wide principles
Compatible Superpowers Skills
These work as-is with spec context:
- test-driven-development - Use AFTER spec, during implementation
- systematic-debugging - Use spec as reference during debugging
- using-git-worktrees - For isolated feature development
- dispatching-parallel-agents - For independent parallel work
Workflow Decision Tree
User request arrives
↓
Is this a new feature/project?
Yes → Is it a rough idea?
Yes → sdd:brainstorm
No → Create spec using spec-kit tools
No → Does spec exist for this area?
Yes → Is there spec/code mismatch?
Yes → sdd:evolve
No → sdd:implement
No → Create spec first using spec-kit tools
Creating Specifications
Rough Idea → Use Brainstorm
User: "I want to add authentication to my app"
→ Use sdd:brainstorm
Brainstorm will:
- Explore the idea through questions
- Propose approaches with trade-offs
- Refine requirements collaboratively
- Create formal spec using spec-kit
Clear Requirements → Direct Spec Creation
User: "Add a POST /api/users endpoint that validates email and returns 422 on invalid format"
→ Create spec directly using spec-kit tools
Direct spec creation:
- Requirements are already clear
- No exploratory dialogue needed
- Use spec-kit CLI or templates directly
- Follow spec-kit layout conventions
WHAT vs HOW principle: Specs define WHAT and WHY, not HOW.
- ✅ WHAT: Requirements, behaviors, contracts, success criteria
- ❌ HOW: Algorithms, code, technology choices, architecture
Common Rationalizations That Mean You're About To Fail
If you catch yourself thinking ANY of these thoughts, STOP. You are rationalizing. Check for and use the skill.
Spec-avoidance rationalizations:
- "This is too simple for a spec" → WRONG. Simple changes still need spec context.
- "I'll just write the code quickly" → WRONG. Code without spec creates drift.
- "The spec is obvious from the description" → WRONG. Make it explicit.
- "We can spec it after implementation" → WRONG. That's documentation, not SDD.
Skill-avoidance rationalizations:
- "This is just a quick fix" → WRONG. Quick fixes need spec validation.
- "I can check the spec manually" → WRONG. Use sdd:verification-before-completion.
- "The spec is good enough" → WRONG. Use sdd:review-spec before implementing.
- "I remember this workflow" → WRONG. Skills evolve. Run the current version.
Why: Specs prevent drift. Skills enforce discipline. Both save time by preventing mistakes.
If a skill for your task exists, you must use it or you will fail at your task.
Skills with Checklists
If a skill has a checklist, YOU MUST create TodoWrite todos for EACH item.
Don't:
- Work through checklist mentally
- Skip creating todos "to save time"
- Batch multiple items into one todo
- Mark complete without doing them
Why: Checklists without TodoWrite tracking = steps get skipped. Every time.
Announcing Skill Usage
Before using a skill, announce that you are using it.
"I'm using [Skill Name] to [what you're doing]."
Examples:
- "I'm using sdd:brainstorm to refine your idea into a spec."
- "I'm using sdd:implement to build this feature from the spec."
- "I'm using sdd:evolve to reconcile the spec/code mismatch."
Why: Transparency helps your human partner understand your process and catch errors early.
Spec Evolution is Normal
Specs WILL diverge from code. This is expected and healthy.
When mismatch detected:
- DON'T panic or force-fit code to wrong spec
- DO use sdd:evolve
- AI analyzes: update spec vs. fix code
- User decides (or auto-update if configured)
Remember: Specs are source of truth, but truth can evolve based on reality.
Constitution: Optional but Powerful
Consider creating a constitution for your project:
What is it?
- Project-wide principles and standards
- Referenced during spec validation
- Ensures consistency across features
When to create:
- New projects: Early, after first feature spec
- Existing projects: When patterns emerge
- Team projects: Always (defines shared understanding)
How to create:
Use /sdd:constitution skill.
Instructions ≠ Permission to Skip Workflows
Your human partner's specific instructions describe WHAT to do, not HOW.
"Add X", "Fix Y" = the goal, NOT permission to skip spec-first or verification.
Red flags: "Instruction was specific" • "Seems simple" • "Workflow is overkill"
Why: Specific instructions mean clear requirements, which is when specs matter MOST.
Summary
Starting any task:
- Check this skill first for routing
- Determine: brainstorm vs. direct spec vs. implement vs. evolve
- Invoke the appropriate workflow skill
- That skill will call spec-kit for setup automatically
- Follow the workflow discipline exactly
The methodology is:
- Specs first, always
- Code validates against specs
- Specs evolve when reality teaches us
- Quality gates prevent shortcuts
- Process discipline ensures quality
The tools are:
- spec-kit (technical integration)
- Workflow skills (brainstorm, implement, evolve)
- Verification and validation skills
- TDD and debugging skills
The goal is: High-quality software with specs that remain the living source of truth.
Workflow Patterns
Pattern 1: New Feature from Rough Idea
User: "I want to add notifications to my app"
1. Recognize: Rough idea
2. Route to: sdd:brainstorm
3. Brainstorm will:
- Call spec-kit (auto-setup)
- Explore idea collaboratively
- Create formal spec
- Hand off to sdd:implement
Pattern 2: New Feature from Clear Requirements
User: "Add GET /api/stats endpoint returning JSON with user_count and post_count"
1. Recognize: Clear requirements
2. Create spec using spec-kit tools
3. Route to: sdd:implement
4. Implement will:
- Call spec-kit (auto-setup)
- Generate plan from spec
- Use TDD
- Verify spec compliance
Pattern 3: Code Exists, Spec Missing
User: "Document what this auth module does"
1. Recognize: Code without spec
2. Create spec by analyzing code
3. Route to: sdd:evolve (to reconcile)
Pattern 4: Code and Spec Diverged
User: "The login endpoint returns different errors than the spec says"
1. Recognize: Spec/code mismatch
2. Route to: sdd:evolve
3. Evolve will:
- Call spec-kit (auto-setup)
- Analyze mismatch
- Recommend update spec vs. fix code
- User decides or auto-update
Remember
You are the methodology enforcer.
- Route to correct workflow skill
- Enforce spec-first principle
- Catch rationalizations
- Ensure quality gates run
You are NOT:
- The technical setup manager (that's spec-kit)
- The implementer (that's workflow skills)
- The spec creator (that's spec-kit + brainstorm)
Your job: Ensure the right skill gets used for the right task, and that SDD principles are followed.
The goal: Specs that stay current. Code that matches intent. Quality through discipline.
快速安装
/plugin add https://github.com/rhuss/cc-superpowers-sdd/tree/main/using-superpowers-sdd在 Claude Code 中复制并粘贴此命令以安装该技能
GitHub 仓库
相关推荐技能
sglang
元SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
generating-unit-tests
元该Skill能自动为源代码生成全面的单元测试,支持Jest、pytest、JUnit等多种测试框架。当开发者请求"生成测试"、"创建单元测试"或使用"gut"快捷指令时即可触发。它能智能识别合适框架或按指定框架生成测试用例,显著提升测试效率。
business-rule-documentation
元该Skill为开发者提供标准化的业务规则和领域知识文档模板,遵循领域驱动设计原则。它能系统化地捕获业务规则、流程、决策树和术语表,确保业务需求与技术实现的一致性。适用于创建领域模型、业务规则库、流程映射,以及改善业务与技术团队之间的沟通。
orchestrating-test-workflows
元该技能让开发者能通过Claude编排复杂测试工作流,包括定义测试依赖关系图、并行执行测试以及基于代码变更智能选择测试用例。适用于需要测试编排、依赖管理、并行测试或CI/CD集成测试的场景。当用户提及"orchestrate tests"、"parallel testing"等触发词时即可调用此技能。
