Command Palette

Search for a command to run...

Назад к скиллам
скилл № 51766

create-tech-spec

Use when the user asks for a tech spec, technical design doc, design document, ADR, solution architecture, high-level design or how should we implement a…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить create-tech-spec в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Create Tech Spec

Purpose

Produce a detailed, actionable technical specification that a developer can implement without ambiguity. Covers system context, API contracts, data models, error handling, performance targets, and testing plan.

The tech spec is the engineering team's contract. It translates "what the product needs" into "how the system delivers it." A great tech spec is precise enough that a developer can implement without asking clarifying questions, and thorough enough that a reviewer can catch design issues before code is written.

Architecture/Decision Trees

Spec Depth Decision Tree

Is this a new feature or a change to existing functionality?
  |-- NEW FEATURE --> Full spec: context, API, data model, error handling, performance, testing, migration
  |-- CHANGE TO EXISTING --> Change spec: what changes, what stays the same, migration

Does this feature involve data model changes?
  |-- YES --> Include: new tables/fields, migration plan with rollback, data backfill strategy
  |-- NO --> Focus on: API contracts, business logic

Is this a frontend or backend feature?
  |-- FRONTEND --> Component spec: props, state, events, API integration, loading/error/empty states
  |-- BACKEND --> API spec: endpoints, data models, validation, auth, error handling
  |-- FULL STACK --> Both: API spec + component spec + integration contract

Does this feature involve external integrations?
  |-- YES --> Include: integration contract, retry strategy, circuit breaker, data mapping
  |-- NO --> Focus on: internal API contracts and data flow

Is this a performance-sensitive feature?
  |-- YES --> Include: performance targets, query plans, caching strategy, load test scenarios
  |-- NO --> Standard performance section with baseline targets

API Style Decision Tree

What is the primary consumer?
  |-- BROWSER (SPA) --> REST API with JSON responses
  |-- MOBILE APP --> GraphQL or REST with field selection
  |-- THIRD-PARTY DEVELOPERS --> REST API with API keys, rate limiting, documentation
  |-- INTERNAL SERVICE --> gRPC or message queue for high throughput
  |-- REALTIME CLIENT --> WebSocket or SSE for push-based communication

Is the API public-facing?
  |-- YES --> Versioned (v1, v2), documented (OpenAPI), rate-limited, deprecated with notice
  |-- NO --> Internal versioning, minimal documentation, team agreements

Agent Protocol

Trigger

Exact user phrases: "tech spec", "technical specification", "implementation plan", "how should we implement", "design document", "spec for feature", "write a spec", "details for feature".

Input Context

Before activating, verify:

  • docs/prd-{YYYY-MM-DD}.md exists. Read the relevant section.
  • docs/decisions/ exists. Read all ADRs.
  • docs/specs/ directory exists. If not, create it.
  • User specifies which feature or epic to spec. If not specified, use the highest-priority epic.

Output Artifact

Writes to docs/specs/{feature-name}-spec.md.

Response Format

After saving, output exactly:

Spec saved to docs/specs/{feature-name}-spec.md
API endpoints: {n}
Data models: {n}
Performance targets: {n}
Next skill: {stack}-architecture (or {framework}-architecture)

No preamble. No postamble. No explanations. No filler.

Completion Criteria

  • System context diagram included (text-based).
  • All API endpoints documented with request/response schemas.
  • All data models documented with field types and constraints.
  • Error handling strategy defined for every endpoint.
  • Performance targets specified numerically.
  • Testing plan with unit, integration, and E2E scope.
  • Migration plan included if schema changes are needed.
  • File saved to docs/specs/{feature-name}-spec.md.

Max Response Length

Confirmation: 4 lines. Do not echo spec content unless asked.

Workflow

Step 1: Gather Inputs

Read docs/prd.md for requirements. Read docs/decisions/ for architecture context.

Input checklist:

  • PRD requirements for the feature
  • All relevant ADRs (architecture decisions that constrain implementation)
  • Existing data models and API contracts
  • Existing specs for related features
  • User stories for the feature (if written)
  • Design mockups or wireframes (if available)

Step 2: System Context

## System Context

{Describe how this feature fits into the existing system}

[Client] --HTTP--> [API Gateway] --HTTP--> [Service] --SQL--> [Database]
                                                |
                                           [Message Queue] --events--> [Worker]

Context diagram elements:

  • External systems (third-party APIs, client applications)
  • Internal services (monolith modules, microservices)
  • Data stores (databases, caches, file storage)
  • Communication protocols (HTTP, gRPC, message queues, WebSocket)
  • Data flow direction (request/response, push/pull)

Step 3: API Contract

For each endpoint, document:

### POST /api/v1/{resources}
Create a
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/create-tech-spec-advanced.md
  • references/create-tech-spec-fundamentals.md
  • references/tech-spec-examples.md
  • references/tech-spec-review-checklist.md
  • references/tech-spec-template.md
  • references/tech-spec-templates.md

FAQ

Что делает скилл create-tech-spec?

Use when the user asks for a tech spec, technical design doc, design document, ADR, solution architecture, high-level design or how should we implement a feature. Produces a specification with context, decisions (ADRs), API contracts, data models, failure handling and test plan. Not for product requirements (use create-prd) or file-level agent plans (use write-implementation-plan).

Как установить скилл create-tech-spec?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл create-tech-spec запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить create-tech-spec с