askill
tech-spec

tech-specSafety 82Repository

Tech spec generation and review. Use when: designing features, writing specs, requirement analysis. Not for: implementation (use feature-dev), architecture advice (use codex-architect). Output: numbered tech spec document.

90 stars
1.8k downloads
Updated 3/22/2026

Package Files

Loading files...
SKILL.md

Tech Spec Skill

Trigger

  • Keywords: tech spec, technical specification, spec review, review spec, requirement analysis, feature design

When NOT to Use

  • Creating request documents (use /create-request)
  • Code implementation (use feature-dev)
  • Architecture consulting (use /codex-architect)

Commands

CommandPurposeWhen
/tech-specCreate or update tech specAuto-detects create/update from filesystem state
/deep-analyzeDeepen spec + roadmapAfter initial concept
/review-specReview tech specSpec confirmation

Context-Aware Mode (Upsert)

When invoked without a full requirement description, the skill auto-detects the target feature using the 5-level cascade from references/feature-context-resolution.md.

Filesystem StateAction
docs/features/<key>/2-tech-spec.md existsUpdate mode: read existing spec, research code changes since last update, incrementally update changed sections
docs/features/<key>/2-tech-spec.md absentCreate mode: generate new spec from template
Feature not resolvedGate: Need Human

In update mode, focus on sections affected by recent code changes (use git diff to identify). Preserve unchanged sections.

Workflow

sequenceDiagram
    participant A as Analyst
    participant C as Codebase
    participant D as Document

    A->>A: 1. Requirement clarification
    A->>C: 2. Code research
    C-->>A: Related modules
    A->>A: 3. Solution design
    A->>A: 4. Risk assessment
    A->>A: 5. Work breakdown
    A->>D: 6. Output document

Spec Structure

  1. Requirement summary (problem + goals + scope)
  2. Existing code analysis
  3. Technical solution (architecture + data model + API + core logic)
  4. Risks and dependencies
  5. Work breakdown
  6. Testing strategy
  7. Open questions

Output

Numbered tech spec document with sections: Overview, Requirements, Architecture, Implementation plan, Work breakdown, Testing strategy, Open questions.

Verification

  • Solution covers all requirement points
  • Architecture diagrams use Mermaid
  • Risks have mitigation strategies
  • Work can be broken into trackable items

References

  • references/template.md - Spec template + review dimensions

File Location

docs/features/{feature}/
├── 2-tech-spec.md    # Technical spec (numbered per docs-numbering rule)
├── requests/         # Request documents
└── README.md         # Feature description

Examples

Input: /tech-spec "Implement user asset snapshot feature"
Action: Requirement clarification -> Code research -> Solution design -> Output document
Input: /review-spec docs/features/xxx/2-tech-spec.md
Action: Read -> Research -> Review -> Output report + Gate

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

82/100Analyzed 3/22/2026

High-quality technical reference skill with clear trigger conditions, structured commands, detailed upsert logic, and Mermaid workflow visualization. Includes comprehensive spec structure, verification criteria, and practical examples. Slightly penalized for internal-only path references and repo-specific context resolution, but content itself is well-organized and highly actionable.

82
90
78
85
88

Metadata

Licenseunknown
Version-
Updated3/22/2026
Publishersd0xdev

Tags

apigithub-actions