product-tech-spec
1
总安装量
1
周安装量
#49702
全站排名
安装命令
npx skills add https://github.com/elliottrjacobs/bench-skills --skill product-tech-spec
Agent 安装分布
mcpjam
1
claude-code
1
junie
1
windsurf
1
zencoder
1
crush
1
Skill 文档
/product-tech-spec â Technical Specification
Write technical specs that bridge product requirements and implementation plans. Covers architecture, APIs, data models, and component hierarchy.
When to Use
- User says “tech spec”, “technical spec”, “architecture doc”
- After writing a PRD and before planning implementation
- When architecture decisions need to be documented
Process
Step 1: Gather Context
Check for existing artifacts:
docs/prds/â Read the PRD this spec implementsdocs/brainstorms/â Additional context if available- User-provided description or
$ARGUMENTS
Step 2: Research (Parallel Agents)
Spawn 2 agents IN PARALLEL using the Task tool:
Agent 1 â Codebase Analyst
Task(subagent_type: "general-purpose", description: "Analyze codebase for tech spec")
prompt: Analyze this project's architecture to inform a tech spec for [FEATURE].
Focus on: tech stack and versions, existing data models, API patterns,
component structure, auth patterns, state management approach.
Return findings relevant to architectural decisions.
Agent 2 â Practices Researcher
Task(subagent_type: "general-purpose", description: "Research architecture patterns")
prompt: Research architecture best practices for [FEATURE TYPE] given [TECH STACK].
Focus on: recommended patterns, data model design, API design,
component architecture, security considerations.
Return practical architectural guidance.
Step 3: Write Tech Spec
Write to docs/tech-specs/YYYY-MM-DD-<name>.md using the template in references/tech-spec-template.md.
Key sections:
- Overview â What this spec covers and its relationship to the PRD
- Architecture â System design, component hierarchy, data flow
- Data Models â Database tables, types, relationships
- API Design â Endpoints, server actions, or edge functions
- Component Hierarchy â UI structure and state ownership
- Security â Auth, RLS policies, input validation
- Migration Plan â How to get from current state to target state
Writing rules:
- Reference specific existing patterns from the codebase analysis
- Make decisions, don’t list options (that’s what the brainstorm was for)
- Include concrete examples (schema SQL, TypeScript types, component trees)
- Call out risks and unknowns
Step 4: Review with User
Present key architectural decisions and use AskUserQuestion to confirm approach before finalizing.
Output
Save to: docs/tech-specs/YYYY-MM-DD-<name>.md
Next Steps
- Ready to plan tasks? â
/engineer-plan - Need to start building? â
/engineer-work