
Write Tech Spec
- 16.2k installs
- 148 repo stars
- Updated July 24, 2026
- warpdotdev/common-skills
A structured TECH.md document that translates product intent into an executable implementation plan with grounded architectural choices, module boundaries, testing strategy, and parallelization guidance.
About
write-tech-spec guides developers and AI agents in authoring TECH.md specifications that translate product requirements into detailed implementation plans grounded in actual codebase structure. It covers context (current code, relevant files with commit-pinned links), proposed changes (modules, types, data flow, tradeoffs), testing/validation strategies mapped to product behaviors, and parallelization guidance for multi-agent execution. The spec framework emphasizes concrete architectural decisions, commit-linked code references, and right-sizing documentation to feature complexity (40-150+ lines depending on scope). Developers use it when implementations span multiple modules, involve tradeoffs, or need pre-review planning; it eliminates guessing by requiring direct codebase inspection and keeps specs current as implementation details change.
- Write specs to specs/<id>/TECH.md with id from Linear ticket, GitHub issue, or kebab-case feature name, matched to sibli
- Ground context section in actual code with commit-pinned GitHub blob links (line ranges) instead of guessing architectur
- Map testing/validation directly to numbered behavior invariants from PRODUCT.md rather than restating requirements
- Propose parallelization strategies using sub-agents with clear ownership boundaries, execution modes, branch strategy, a
- Right-size spec length to feature complexity: single-file ~40 lines, multi-module ~80-150 lines, large cross-cutting as
Write Tech Spec by the numbers
- 16,204 all-time installs (skills.sh)
- +1,948 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #27 of 1,901 Documentation skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
write-tech-spec capabilities & compatibility
- Capabilities
- structure implementation plans with context, pro · pin code references to specific commits and link · map validation steps to numbered product behavio · design parallelization strategies with owned sub · create mermaid diagrams for data flow and state
- Use cases
- code review · documentation · planning · api development
- Platforms
- macOS · Windows · Linux
- Runs
- Runs locally
- Pricing
- Free
What write-tech-spec says it does
Before drafting, read the product spec (if any), inspect the relevant code, and identify the main files, types, data flow, and ownership boundaries. Do not guess about current architecture when the co
npx skills add https://github.com/warpdotdev/common-skills --skill write-tech-specAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 16.2k |
|---|---|
| repo stars | ★ 148 |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 24, 2026 |
| Repository | warpdotdev/common-skills ↗ |
What it does
Create technical architecture and implementation plans for significant product features before or alongside code development.
Who is it for?
Multi-module features with architectural choices, cross-cutting changes, work spanning multiple agents, implementations where pre-review planning prevents rework.
Skip if: Single-file changes with clear approaches, pure UI fixes, straightforward bug fixes, when product behavior is still too uncertain (build prototype first).
When should I use this skill?
User asks for technical spec, implementation plan, or architecture doc; implementation spans multiple modules; parallelization of agent work could reduce wall-clock time; reviewers need to evaluate the plan before code.
What you get
A commit-pinned, code-grounded technical spec that reduces implementation ambiguity, enables parallel agent execution, and provides reviewers a clear plan to evaluate against.
- TECH.md file in specs/<id>/ directory
- Commit-pinned code references with GitHub links
- Testing/validation plan mapped to product behaviors
By the numbers
- Target spec length: 40 lines (single-file), 80-150 lines (multi-module), longer for cross-cutting changes
- Required sections: Context, Proposed changes, Testing and validation, Parallelization (when applicable)
- Optional sections: End-to-end flow, Diagram, Risks and mitigations, Follow-ups
Files
write-tech-spec
Write a TECH.md spec for a significant feature in Warp.
Overview
The tech spec should translate product intent into an implementation plan that fits the existing codebase, documents architectural choices, and makes the work easier for agents to execute and reviewers to evaluate.
Write specs to specs/<id>/TECH.md, where <id> is one of:
- a Linear ticket number (e.g.
specs/APP-1234/TECH.md) - a GitHub issue id, prefixed with
gh-(e.g.specs/gh-4567/TECH.md) - a short kebab-case feature name (e.g.
specs/vertical-tabs-hover-sidecar/TECH.md)
Match the id used by the sibling PRODUCT.md when one exists. specs/ should contain only id-named directories as direct children.
Ticket / issue references are optional. If the user has a Linear ticket or GitHub issue, use its id. If they don't, ask them for a feature name to use as the directory. Only create a new Linear ticket or GitHub issue when the user explicitly asks for one; in that case use the Linear MCP tools or gh CLI respectively (and ask_user_question if team, labels, or repo are unclear).
When to use
Use this skill when the implementation spans multiple modules, has meaningful architectural tradeoffs, or when reviewers will benefit from seeing the plan before or alongside the code. For pure UI changes or straightforward fixes, a tech spec is often unnecessary.
Prefer to have a PRODUCT.md first so the technical plan is anchored to agreed behavior. If the implementation is still too uncertain, build an e2e prototype first and then write the tech spec from what was learned.
Research before writing
Before drafting, read the product spec (if any), inspect the relevant code, and identify the main files, types, data flow, and ownership boundaries. Do not guess about current architecture when the code can be inspected directly. When referencing relevant code chunks in the spec, prefer commit-pinned references so future readers can inspect the exact code you researched. Capture the current commit SHA for each repository you inspected (for example, git rev-parse HEAD) and, when possible, make file references Markdown links to the corresponding GitHub blob/<sha>/...#Lx-Ly URL. Use the linked text to keep the path readable in the spec.
Structure
Required sections:
1. Context — What's being built, how the current system works in the area being changed, and the most relevant files with line references. Combine the "problem," "current state," and "relevant code" into one grounded section. Example references:
- `app/src/workspace/mod.rs:42 @ <commit-sha>` — entry point for the user flow
- `app/src/workspace/workspace.rs (120-220) @ <commit-sha>` — state and event handling that will likely change
Reference PRODUCT.md for user-visible behavior rather than restating it. 2. Proposed changes — The implementation plan: which modules change, new types/APIs/state being introduced, data flow, ownership boundaries, and how the design follows existing patterns. Call out tradeoffs when there is more than one reasonable path. 3. Testing and validation — How the implementation will be verified against the product behavior. Owns everything about proving the feature works: unit tests, integration tests, manual steps, screenshots, videos, and any other verification. Reference the numbered Behavior invariants from PRODUCT.md directly rather than restating them; each important invariant should map to a concrete test or verification step. This section is where validation lives — PRODUCT.md intentionally does not have a Validation section. 4. Parallelization — Actively evaluate whether parallel sub-agents (launched via run_agents) would meaningfully reduce wall-clock time or isolate work. Skip this section if run_agents is not available. When the spec proposes using sub-agents, include for each proposed agent:
- A short name/role and the subtask it owns.
- Execution mode (
localorremote) with a one-line rationale. - For local agents: the working directory or git worktree it should use, so parallel agents do not collide on the same checkout or files.
- For remote agents: which environment to use or an explicit note that the agent will run in an empty environment.
- Branch and PR strategy: which branch each agent works on, the worktree path each agent will use, and how their work lands (one PR per agent, a single combined PR, etc.).
- Coordination boundaries: which files/services each agent owns and how it syncs with sibling agents (messaging, merge points, validation ownership).
Distinguish which steps can run in parallel and which must run sequentially. When the dependency graph is non-trivial, consider a short Mermaid diagram (graph TD or flowchart LR) so the reader can see fan-out and merge points at a glance.
When parallelization is NOT proposed, briefly note why it isn't beneficial (e.g. the task is small, or subtasks are tightly coupled) so reviewers can challenge that judgment.
Propose concrete defaults for worktrees, branch names, and execution mode rather than leaving them open-ended.
Optional sections — include only when they add signal. Omit the heading entirely if empty; do not write "None" as a placeholder.
- End-to-end flow — Include only when tracing the path through the system tells you something the Proposed changes list doesn't.
- Diagram — Include a Mermaid diagram only when a visual will explain the design faster than prose (data flow, state transitions, sequence across layers). Prefer one or two focused diagrams over decorative ones.
- Risks and mitigations — Include when there are real failure modes, regressions, migration concerns, or rollout hazards worth calling out.
- Follow-ups — Include when there is deferred cleanup or future work worth naming.
Length heuristic
Right-size the spec to the feature:
- Single-file change with clear approach: skip the tech spec or keep it under ~40 lines.
- Multi-module change with some ambiguity: target ~80–150 lines.
- Large cross-cutting or architecturally novel change: longer is fine when every section earns its place.
If Context and Proposed changes end up describing the same files and state from different angles, collapse them.
Writing guidance
- Ground the plan in actual codebase structure and patterns.
- Pin important code references to a commit SHA and link them to the corresponding GitHub lines when the repository has an accessible remote.
- Prefer concrete implementation guidance over generic architecture language.
- Explain why the proposed design fits this repo.
- Reference
PRODUCT.mdfor behavior instead of restating it. - Each section should earn its place — if a section would repeat another or contain only boilerplate, omit it.
Keep the spec current
Approved specs may ship in the same PR as the implementation. Update TECH.md in the same PR when module boundaries, implementation sequencing, risks, validation strategy, or rollout assumptions change. The checked-in spec should describe the implementation that actually ships.
For large features, the implementer may optionally keep a DECISIONS.md file summarizing concrete decisions. Offer it when it would help future agents; otherwise skip it.
Related Skills
implement-specswrite-product-specspec-driven-implementation
Related skills
How it compares
Use write-tech-spec for implementation architecture after behavior is defined; use write-product-spec when user-facing requirements are still unclear.
FAQ
When should I write a tech spec vs. just implement?
Write a spec when the implementation spans multiple modules, involves meaningful tradeoffs, or when reviewers benefit from seeing the plan first. Skip for single-file changes, UI-only updates, or when product behavior is still uncertain (prototype first).
How do I reference code in a tech spec?
Use commit-pinned GitHub blob links: [`path/to/file.rs:42 @ <commit-sha>`](https://github.com/...) for single lines or [`path/file.rs (120-220) @ <commit-sha>`](https://github.com/...) for ranges. Run `git rev-parse HEAD` to capture the exact commit.
How do I handle testing and validation?
Map each important behavior invariant from PRODUCT.md directly to a concrete test or verification step (unit tests, integration tests, manual steps, screenshots). This section owns proof that the feature works against product spec.
Is Write Tech Spec safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.