technical-blueprint skill produces a Technical Design Document (TDD) — a detailed specification of how a specific feature or component will be built. Unlike a system architecture document (which describes what the system is), a blueprint specifies how a specific piece will be built with enough detail that any qualified engineer on the team can implement it correctly. This skill is invoked ad-hoc, once per non-trivial feature, during implementation planning — not as a scheduled pipeline step.
Blueprint vs spec vs architecture document
Best for
Non-trivial feature design
Team alignment
Trade-off documentation
Pre-implementation review
What it produces
The skill generates a 5–10 page TDD with these major artifacts:- Problem statement with evidence — error rates, support tickets, business impact; not just a feature description
- Goals and non-goals — specific, measurable outcomes and explicit out-of-scope items to prevent scope creep
- Background and context — what a reviewer needs to know about the current state to evaluate the design
- Proposed design — high-level approach, detailed component interaction (sequence diagram with error paths), key algorithms in pseudocode, data model changes (SQL DDL + migration strategy), API contract changes (request/response schemas + error codes)
- Alternatives considered — at least two alternatives with specific, evidence-based rejection reasons
- Security considerations — STRIDE threat analysis for new attack surface introduced
- Performance and scalability estimation — latency delta, query count, memory impact, load test plan
- Observability specification — structured log events, metrics (counters, histograms), alerting conditions
- Feature flag strategy — flag name, type, default state, rollout phases, cleanup plan
- Data migration plan — migration type, steps, backward compatibility checklist, rollback SQL
- Rollout plan — deployment strategy, phases, success criteria, proceed triggers
- Rollback plan — explicit trigger conditions and numbered steps an on-call engineer can follow
- Test plan — unit, integration, E2E, load, and security tests with pass criteria and edge cases
- Documentation requirements — OpenAPI spec updates, runbook, user guide, ADR if needed
- Dependencies and blockers — upstream dependencies, downstream dependents, decision dependencies
- Open questions and milestones — unresolved questions with owners and resolution deadlines
How to invoke it
Example scenarios
- “Write a technical design document for implementing a token-based webhook signing system”
- “Design how we will add two-factor authentication (TOTP) to our admin portal”
- “Create a TDD for migrating our synchronous payment processing to an async queue-based system”
Key concepts
Design doc philosophy (Google/Stripe standard)
A technical blueprint is:- Short as possible, long as necessary. If it takes more than 45 minutes to read, it is too long.
- Trade-off focused. The Alternatives Considered section is mandatory. It proves you evaluated options, not just implemented the first idea.
- A conversation starter, not a contract. Share early and revise often. The process of writing it surfaces gaps before they become production bugs.
- Living. Update it as implementation evolves. A stale design doc is worse than no design doc.
The three mandatory sections
These sections separate a senior engineer’s design doc from a junior one:Alternatives Considered
Security Considerations
Rollback Plan
Error path coverage
Sequence diagrams must show error paths, not just the happy path. For every critical external call, the design documents:- What happens when the call times out
- What happens when the call returns a 5xx error
- Retry behavior (count, backoff strategy, circuit breaker)
- Fallback behavior when the dependency is unavailable (cached response, degraded mode, queue for later)
- What the user sees for each error scenario
Observability by design
Every new feature must be observable before it ships. The blueprint specifies:Feature flag strategy
When a feature is rolled out incrementally or may need to be disabled quickly:Data migration strategy
When the feature requires schema changes:- Migration type: Additive only (new tables/columns) vs destructive (renames, type changes requiring downtime)
- Backward compatibility: Can old code run against new schema? Can new code run against old schema during rollback window?
- Data backfill: Is existing data migrated? Via background job, on-read migration, or one-time script?
- Rollback SQL: Every migration must have a corresponding rollback script
Performance estimation
Before implementation, the blueprint estimates:Anti-patterns (what this prevents)
- Jumping to implementation without a problem statement. Agents that skip the “why” and go straight to code design solve the wrong problem thoroughly.
- Alternatives Considered as an afterthought. Vague rejections like “too complex” without evidence undermine the document’s credibility.
- No rollback plan. Every design touching production needs a rollback plan with trigger conditions and steps.
- Designing in isolation. A blueprint is a conversation starter — listing open questions and assumptions is how you get the feedback that prevents costly bugs.
- Ignoring security for “non-security” features. Reporting dashboards, notification systems, and admin UI features all introduce IDOR, data exposure, and authorization bypass risks.
Interview process
Context loading
.engineering-docs/ files — extracts tech stack, data model, API contracts, security requirements, and permission model from prior documents without re-asking.Socratic clarification (max 2–3 questions)
Problem and context (40–60 min)
Proposed design (2–3 hrs)
Alternatives considered (40–60 min)
Security and risk (40–60 min)
Test plan and rollback (40–60 min)
Output structure
Problem Statement
Problem Statement
Goals and Non-Goals
Goals and Non-Goals
Background and Context
Background and Context
Proposed Design
Proposed Design
- Component interaction: Mermaid sequence diagram including error paths
- Key algorithms: pseudocode for non-trivial logic
- Data model changes: SQL DDL for new/modified tables, migration strategy, data volume estimate
- API contract changes: new/modified endpoints with full request/response schema and error code table
- Configuration: environment variables and config keys
Alternatives Considered
Alternatives Considered
Security Considerations
Security Considerations
Performance and Scalability
Performance and Scalability
Observability
Observability
Feature Flag Strategy
Feature Flag Strategy
Data Migration
Data Migration
Documentation Updates
Documentation Updates
Dependencies and Blockers
Dependencies and Blockers
Test Plan
Test Plan
Rollout Plan
Rollout Plan
Rollback Plan
Rollback Plan
Open Questions and Milestones
Open Questions and Milestones
Handoff
Reads from:4-technical-specification.md— functional and non-functional requirements7-system-architecture.md— architectural patterns and technology decisions8-database-design-document.md— existing data model and table definitions9-api-design-document.md— existing API contracts and endpoint specifications11-admin-access-control-specification.md— permission requirements12-security-threat-model.md— threat mitigations to incorporate
15-implementation-plan.md— feature designs sequenced into build phasesarchitecture-decision-record— decisions made during design that warrant a permanent ADR
Quality gate
Before marking the documentfinal, verify:
- The problem statement includes concrete evidence (metrics, tickets, benchmarks) justifying why this needs to be built now
- At least two alternatives are documented with specific, evidence-based rejection reasoning — not “too complex” without supporting evidence
- A rollback plan exists with explicit trigger conditions and numbered steps an on-call engineer can follow without asking anyone
- Security considerations address new attack surface introduced by this design (STRIDE analysis completed)
- The test plan covers unit, integration, and at least one end-to-end scenario with defined pass criteria
