npx skills add ...
npx skills add warpdotdev/common-skills --skill spec-driven-implementation
Drive a spec-first workflow for substantial features by writing PRODUCT.md before implementation, writing TECH.md when warranted, and keeping both specs updated as implementation evolves. Use when starting a significant feature, planning agent-driven implementation, or when the user wants product and tech specs checked into source control.
npx skills add warpdotdev/common-skills --skill spec-driven-implementation
Drive a spec-first workflow for substantial features in Warp.
Use this skill for significant features where a written spec will improve implementation quality, reduce ambiguity, or make review easier. Be pragmatic: not every change needs specs.
Specs should usually live in:
specs/<linear-ticket-number>/PRODUCT.mdspecs/<linear-ticket-number>/TECH.mdFor example:
specs/APP-1234/PRODUCT.mdspecs/APP-1234/TECH.mdspecs/ should contain only ticket-named directories as direct children. Do not create engineer-named subdirectories or feature-slug directories there.
If a relevant Linear issue does not already exist, create one before writing specs. Use the Linear MCP tools directly:
list_teams to find the appropriate teamlist_issue_labels to inspect the expected labels/tagssave_issue to create the issue with the appropriate team and labelsIf the correct team or labels are not obvious from the request and surrounding context, use ask_user_question to clarify rather than guessing.
These specs should largely be written by agents, not by hand, and should be checked into source control so they can be reviewed and kept current with the code.
Strongly prefer specs when the change is substantial, such as:
Specs are often unnecessary for:
For pure UI changes, the product spec is often useful while the tech spec may be unnecessary.
Evaluate the size, ambiguity, and risk of the feature. If specs will not meaningfully improve execution or review, skip them and focus on verification instead.
Before implementation, create PRODUCT.md describing the desired user-facing behavior.
Use the write-product-spec skill to produce it. The product spec should define:
If the feature has UI or interaction design, ask for a Figma mock if one exists. If there is no mock, continue but call that out explicitly in the product spec.
Reference the Linear issue in the spec when one exists. Because specs live under specs/<linear-ticket-number>/..., this should usually be straightforward.
Use the write-tech-spec skill for substantial or ambiguous implementation work.
Prefer a tech spec when:
It is acceptable to write the tech spec after an e2e prototype if that leads to a more accurate implementation plan. Do not force a premature tech spec when the implementation details are still too uncertain.
After the specs are approved, use the implement-specs skill to build from the approved PRODUCT.md and TECH.md.
The implementation can often be pushed in the same PR as the product and tech specs. As the engineer iterates, keep PRODUCT.md, TECH.md, code changes, and tests in that same PR so the review reflects the feature that will actually ship.
For large features, the implementer may optionally offer:
PROJECT_LOG.md to track explored paths, checkpoints, and current implementation stateDECISIONS.md to capture concrete product and technical decisions made during design and implementationThese are optional aids, not required outputs.
If implementation changes from the spec, update the spec rather than leaving it stale.
Update PRODUCT.md when:
Update TECH.md when:
The checked-in specs should describe the feature that actually ships, not just the initial intent. Keep those spec updates in the same PR as the related code changes whenever practical.
Before considering the work complete, make sure verification maps back to the specs. Prefer tests and artifacts that validate the product behavior directly:
blob/<sha>/...#Lx-Ly lines.implement-specswrite-product-specwrite-tech-spec