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

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

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

Release Notes Generator

Generate release notes, changelogs, and announcement copy from diffs and PR summaries - with upgrade notes and test checklist.

5 minutes
Beginner
Developer Tools

Scientific Aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or ti...

10 minutes
Intermediate
Developer Tools

Scientific Astropy

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordina...

10 minutes
Intermediate
Developer Tools

Scientific Cirq

Google quantum computing framework. Use when targeting Google Quantum AI hardware, designing noise-aware circuits, or running quantum characterization experiments. Best for Google hardware, noise modeling, and low-level circuit design. For IBM har...

15 minutes
Advanced
Developer Tools

Scientific Fluidsim

Framework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shallow water equations, stratified flows, or when analyzing turbulence, vortex dynamics, o...

15 minutes
Advanced
Developer Tools

Scientific Get Available Resources

This skill should be used at the start of any computationally intensive scientific task to detect and report available system resources (CPU cores, GPUs, memory, disk space). It creates a JSON file with resource information and strategic recommend...

5 minutes
Beginner
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

Simplicity First Code Gate

A hard correctness gate against over-complex or oversized code — one ordering principle (human readability first, agent traceability second), five enforceable rules, and a pre-finish checklist that treats unnecessary complexity as a bug, not a style opinion.

2 minutes
Beginner
Developer Tools

Slidev Presentation Builder

Build developer-focused presentations with Slidev — Markdown-driven slides with live code, syntax highlighting, Monaco editor embeds, Mermaid/PlantUML diagrams, LaTeX math, click-based animations, and presenter notes, plus a quick-reference table for the exact syntax each feature needs.

5 minutes
Beginner
Developer Tools

Technical Writing Style Guide

Write docstrings, READMEs, commit messages, and PR descriptions that read like human technical documentation instead of LLM output — six concrete 'tells' with before/after rewrites, a smoothness diagnostic for prose that sounds authoritative while stating one fact three times, and industry-metaphor substitution tables ('surfaces' to 'raises/returns/logs', 'wired through' to 'passed as a parameter').

5 minutes
Intermediate
Developer Tools

Secret Scan and Rotation

Find committed credentials in a repository's working tree and full history, triage real secrets from test fixtures, and drive rotation-first remediation — with an absolute rule against ever printing a secret's actual value, even during the scan itself.

5 minutes
Intermediate
Developer Tools

Self-Improvement Loop Design

Design systems where the harness itself is the optimization target — an optimization ladder from prompt to context to workflow to harness code, a two-split empirical acceptance gate, an outside-the-loop invariant for the evaluator, and a catalog of documented reward-hacking and collapse failure modes.

10 minutes
Advanced

Browse all Developer Tools playbooks →