Home
cd ../playbooks
Developer ToolsIntermediate

Technical Specification Writing

Write detailed technical specifications with requirements, architecture decisions, interface definitions, and implementation plans.

10 minutes
By communitySource
#technical-specs#specifications#design-documents#architecture#engineering

The team started coding before the spec was written — again. Now two engineers built conflicting implementations, the API contract doesn't match what the frontend expected, and the database schema can't handle the edge cases nobody discussed. A good technical spec prevents weeks of rework by forcing clarity before code.

Who it's for: senior engineers writing design documents for complex features, technical leads defining architecture for new systems, staff engineers creating specs that align multiple teams, engineering managers establishing spec-writing culture, platform engineers documenting API contracts and interface definitions

Example

"Write a technical spec for our new notification system" → Complete spec: problem statement and goals, architecture decision with alternatives considered, API interface definitions with request/response schemas, database schema design, sequence diagrams for key flows, edge case analysis, rollout plan, and success metrics

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Technical Specification Writing

## Your Role
You are an expert software architect. Your job is to write clear technical specifications that reduce ambiguity, document decisions, and guide implementation with enough detail to avoid rework.

## Core Principles
- Problem statement makes the solution feel inevitable
- Show alternatives considered with honest pros/cons
- Be explicit about trade-offs and costs
- Include rollback plan for every significant change
- Core spec fits 2-3 pages; details go in appendices

## Instructions
Produce: problem statement with business context, proposed solution with architecture, alternatives considered with rejection rationale, detailed technical design (data models, APIs, sequences), security and privacy implications, phased rollout plan with rollback, and open questions categorized by urgency.

## Output Format
- **TL;DR**: Key decision, recommendation, top 3 trade-offs
- **Problem**: What's wrong, who's affected, what happens if we don't fix it
- **Solution**: Architecture diagram, component descriptions, data flow
- **Alternatives**: Option, pros, cons, reason for rejection

## Commands
- "Technical spec" - Full specification document
- "Architecture design" - System design with diagrams
- "Alternatives analysis" - Options comparison
- "Rollout plan" - Phased deployment approach
README.md

What This Does

Creates detailed technical specifications that define the problem, propose solutions, document architecture decisions, specify interfaces, and outline implementation plans — reducing ambiguity before engineering begins.


Quick Start

Step 1: Download the Template

Click Download above to get the CLAUDE.md file.

Step 2: Define the Problem

Describe the feature, system change, or technical challenge that needs a specification.

Step 3: Start Using It

claude

Say: "Write a technical spec for migrating our authentication from session-based to JWT. Include alternatives considered, security implications, and rollback plan."


Spec Structure

Section Content
Problem Statement What problem this solves and why it matters
Proposed Solution Recommended approach with architecture
Alternatives Considered Other options and why they were rejected
Technical Design Data models, APIs, sequences, components
Security & Privacy Implications and mitigations
Rollout Plan Phases, feature flags, rollback procedures
Open Questions Unresolved decisions for team discussion

Tips

  • Start with "why": The problem statement should make the solution feel inevitable
  • Show your work: Alternatives considered with pros/cons builds trust in the recommendation
  • Be specific about trade-offs: Every architectural choice has costs — document them
  • Include rollback plan: How to undo this change if something goes wrong

Commands

"Write a technical spec for [feature/change]"
"Document the architecture for [system component]"
"Compare approaches for [technical decision]"
"Create a rollout plan with feature flags and rollback"

Troubleshooting

Spec too long Say: "Keep the core spec to 2-3 pages. Move detailed designs to appendices."

Too many open questions Ask: "Categorize: blocking (must resolve before starting) vs. deferrable (can decide during implementation)."

Spec not being reviewed Specify: "Add a TL;DR at the top with the key decision and 3 most important trade-offs."

$Related Playbooks

Developer Tools

PR Reviewer

Senior engineer PR review system - structured feedback on correctness, security, tests, and maintainability with actionable diffs.

5 minutes
Intermediate
Developer Tools

Ralph Wiggum Autonomous Loop

Self-referential development loop that keeps Claude iterating on the same task until it hits a completion promise or an iteration cap — a Stop hook that blocks exit and re-feeds the same prompt.

5 minutes
Advanced
Developer Tools

Prompt Optimizer (EARS)

Transform vague prompts into precise, well-structured specifications using EARS (Easy Approach to Requirements Syntax) — ideal for AI-generated code, products, and docs.

10 minutes
Intermediate
Developer Tools

Promptfoo Evaluation

Configure and run LLM evaluations with Promptfoo — build promptfooconfig.yaml, write Python custom assertions, implement llm-rubric judges, and compare models systematically.

15 minutes
Intermediate
Developer Tools

QA Expert

Establish a comprehensive QA process — test strategies, Google-standard test cases, P0–P4 bug tracking, quality metrics, OWASP security testing, and 90% coverage targets.

20 minutes
Advanced
Developer Tools

API & Integration Documentation

Generate comprehensive API documentation with endpoint references, authentication guides, code examples, and integration tutorials.

10 minutes
Intermediate
Developer Tools

Security Guidance Review

Three-layer continuous security review for AI-generated code — instant regex warnings on edit, an LLM diff review at end of turn, and an agentic commit-time reviewer that traces data flow across files.

10 minutes
Advanced
Developer Tools

Shannon: Autonomous Pentesting for Your Own Apps

An operating guide for driving Keygraph's Shannon CLI: scope a white-box pentest against an app you own, run it, and turn the proven findings into fix tasks

15 minutes
Advanced
Developer Tools

Task Observer: One Skill to Rule Them All

A meta-skill that watches every work session, logs corrections and workflow patterns as skill candidates, and runs a review cycle that turns the log into new or improved skills

15 minutes
Advanced
Developer Tools

Soft UI Design Skill: Premium, Awwwards-Tier Interfaces

A design system that makes Claude build $150k-agency-feeling UI — double-bezel cards, spring-physics motion, magnetic buttons, and a banned list that blocks every cheap AI-design tell

5 minutes
Intermediate
Developer Tools

Stitch Design Taste: Semantic DESIGN.md Generator for Google Stitch

Generates a DESIGN.md that encodes premium, anti-generic design rules in Google Stitch's natural-language format — color, type, layout, motion intent, and a full banned-pattern list

5 minutes
Intermediate
Developer Tools

Taste Skill v1: Legacy Anti-Slop Frontend Design

The original numeric-dial version of the Taste Skill frontend framework, preserved for projects already built on v1 conventions

10 minutes
Intermediate

Browse all Developer Tools playbooks →