Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

feature-spec

FreeNo executable scriptsNot checked

Create spec.md docs covering API design, data models, frontend architecture, and integration points. Triggers on 'write a spec', 'technical spec', 'feature…

steveclarkeby steveclarke★ 37 GitHub stars

About 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:

  1. Review the vision and requirements documents to understand the feature scope
  2. Examine the codebase to identify existing patterns and architectural approaches
  3. Check implementation guides in backend/docs/guides/ and frontend/docs/guides/ for relevant patterns
  4. 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:

  1. Follow Existing Patterns: Use similar features in the codebase as templates
  2. Apply Established Conventions: Follow patterns found in implementation guides
  3. Leverage Existing Systems: Integrate with established RBAC, multi-tenancy, etc.
  4. 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
Full SKILL.md on GitHub

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
Sign up freeI already have an account

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

Compare feature-spec with