feature-spec
FreeNo executable scriptsNot checkedCreate spec.md docs covering API design, data models, frontend architecture, and integration points. Triggers on 'write a spec', 'technical spec', 'feature…
by steveclarke★ 37 GitHub starsAbout this skill
Technical Specification
Overview
Structured command to help create concise technical specification documents by guiding through architectural decisions, system contracts, and technical design without getting bogged down in implementation details.
Create a technical specification document following the established feature development process. Comprehensive context available:
Required Reading:
- Feature development guide: @~/.local/share/dotfiles/ai/guides/feature-development-process.md
- Vision document: @vision.md
- Requirements document: @requirements.md
Note: If the project has a local copy of the guide at @project/guides/feature-development-process.md, you may reference that instead for project-specific modifications.
Additional Context Available:
- Full Codebase: Examine existing patterns in backend/ and frontend/ directories
- Implementation Guides: Review backend/docs/guides/ and frontend/docs/guides/ for established patterns
- Design Context: Use available MCP connections for design system access where relevant
Approach: Use all available context to inform your technical decisions. Most implementation patterns and architectural decisions should be derived from existing codebase analysis rather than asking basic questions.
IMPORTANT: Start by creating a TODO list to track phases of specification creation (typically 3 phases; add optional Phase 4 for design brief if feature has UI/UX complexity). Mark the first phase as "in_progress" and others as "pending".
Technical Specification Structure
CRITICAL: Specs define architecture and system contracts, NOT implementation details. Keep specs concise (5-10 pages) focused on WHAT and WHY, not HOW to code.
Specs Include:
- Architecture Overview: Core decisions and system structure
- System Components: What pieces exist and their roles/contracts
- Data Contracts: Type definitions (frontend/backend appropriate to your language), database schemas, API contracts
- Configuration Architecture: How the system is configured (not detailed examples)
- Integration Patterns: How it fits with existing systems
- Quality Attributes: Performance, reliability, maintainability requirements
Specs DO NOT Include:
- ❌ Implementation code examples (those go in plans)
- ❌ Step-by-step implementation details
- ❌ Repetitive explanations of the same concepts
Process: Work Through These 3 Phases Sequentially
Phase 1: Context Analysis & Scope Confirmation
First, analyze the available context to understand the feature scope:
Context Analysis:
- Review the vision and requirements documents to understand the feature scope
- Examine the codebase to identify existing patterns and architectural approaches
- Check implementation guides in backend/docs/guides/ and frontend/docs/guides/ for relevant patterns
- Identify similar existing features to follow established patterns
Scope Confirmation - Ask clarifying questions only as needed:
- Based on the requirements, this appears to be [full-stack/backend-only/frontend-only/background processing] - is this correct?
- Are there any specific implementation constraints or preferences not covered in the requirements?
- Is this a complete feature implementation or a specific phase (e.g., "Phase 1: Backend foundation")?
- Any existing systems integration requirements beyond what's documented?
Goal: Confirm technical scope and identify relevant existing patterns to follow.
ONE QUESTION AT A TIME - Wait for answers before proceeding.
Phase 2: Implementation Design Using Existing Patterns
Based on codebase analysis and scope confirmation, design implementation following established patterns:
Design Approach:
- Follow Existing Patterns: Use similar features in the codebase as templates
- Apply Established Conventions: Follow patterns found in implementation guides
- Leverage Existing Systems: Integrate with established RBAC, multi-tenancy, etc.
- Ask Specific Questions: Only ask about unique aspects not covered by existing patterns
For Backend/Database work:
- Model data following existing entity patterns and relationships
- Define service contracts using appropriate type definitions for your language
- Design API endpoints following established REST conventions and response formats
- Use type definitions to document API request/response contracts and data structures
- Apply standard authorization permissions and validation patterns
- Search Integration: Determine search scope and indexing strategy
- Does search need own entity fields only, or related entity data?
- Document search configuration approach
- Sort Parameters: Document sortable columns and default sort behavior
- List specific sortable columns
- Specify default sort order
- Multi-Context Considerations: For features spanning multiple application contexts (internal/external, admin/user, etc.)
- Create separate response st
Install feature-spec in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the feature-spec skill do?
Create spec.md docs covering API design, data models, frontend architecture, and integration points. Triggers on 'write a spec', 'technical spec', 'feature spec', 'spec.md'.
How do I install the feature-spec skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the feature-spec skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic