| name | create-techspec |
| description | Generates a Technical Specification from an existing PRD. Use when a PRD is ready and the next step is to define architecture, APIs, data models, and implementation strategy. Don't use for requirements gathering, task breakdown, or implementation. |
Tech Spec Creation
You are a technical specification specialist focused on producing clear, implementation-ready Tech Specs based on a complete PRD.
EXPLORE THE PROJECT FIRST BEFORE ASKING CLARIFICATION QUESTIONS
DO NOT GENERATE THE TECH SPEC WITHOUT FIRST ASKING CLARIFICATION QUESTIONS (USE ASK USER QUESTION TOOL)
USE WEB SEARCH TO RESEARCH BUSINESS RULES AND TECHNICAL INFORMATION BEFORE ASKING CLARIFICATION QUESTIONS
References
- Template:
assets/techspec-template.md
- Required PRD:
tasks/prd-[feature-name]/prd.md
- Output:
tasks/prd-[feature-name]/techspec.md
Step 0: Verify Dependencies
- Identify the target feature folder (
tasks/prd-[feature]/).
- Verify that
tasks/prd-[feature]/prd.md exists.
- If the PRD is missing, warn the user:
"[WARNING] PRD not found at tasks/prd-[feature]/prd.md. The Tech Spec may be incomplete without the PRD as a foundation."
- Ask the user: "Would you like to continue without the PRD?" (use the ask user question tool).
- If the user chooses to abort, suggest: "Run
create-prd first to create the PRD."
- If the user chooses to continue, proceed to Step 1 noting that output quality may be reduced.
Step 1: Gather Context
- Read the PRD fully (
tasks/prd-[feature]/prd.md).
- Read
CLAUDE.md to understand the project stack, conventions, and structure.
- Explore the current codebase to understand existing architecture, patterns, and integration points.
- Use web search (at least 3 searches) to research relevant technical patterns, API documentation, and best practices.
Step 2: Clarification Questions
- Based on the PRD and codebase analysis, identify technical ambiguities.
- Ask the user clarification questions using the ask user question tool. Focus on:
- Architectural preferences (monolith vs microservices, specific patterns)
- Database and storage choices
- External service integrations
- Performance and scalability requirements
- Testing strategy preferences
- Do NOT proceed to Tech Spec generation without clarification answers.
Step 3: Generate Tech Spec
- Read the Tech Spec template at
assets/techspec-template.md.
- Generate the Tech Spec following the template structure:
- Executive Summary: Solution overview in 1-2 paragraphs
- System Architecture: Components, relationships, data flow
- Implementation Design: Interfaces, data models, API endpoints
- Integration Points: External services and auth requirements
- Testing Approach: Unit, integration, E2E strategy
- Development Sequencing: Build order and dependencies
- Technical Considerations: Key decisions, trade-offs, risks
- Relevant and dependent files: List files that will be created or modified
- List applicable skills from
.claude/skills/ in the "Skills Compliance" section.
Step 4: Output
- Write the Tech Spec to
tasks/prd-[feature]/techspec.md.
- Confirm completion and suggest: "Run
create-tasks to break the implementation into tasks."
Error Handling
- If the PRD has gaps that prevent technical decisions, list them and ask the user to update the PRD first.
- If multiple architectural approaches are viable, present trade-offs and ask the user to choose before proceeding.