write-tech-spec
Skill15 starsChanged 6 days agoMITView on GitHub
This skill should be used when the user asks to "write a tech spec", "create a technical specification", "document the architecture", "write an ADR", or mentions "tech spec", "technical spec", "architecture decision record", "design document", or "component spec". Produces technical specifications and ADRs.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- warpdotdev/common-skillstheir own version, first seen Oct 20, 2026
- bholmesdev/hubble.mdtheir own version, first seen Oct 8, 2026
- zerx-lab/zaptheir own version, first seen Oct 8, 2026
- zerx-lab/warptheir own version, first seen Oct 8, 2026
- dirumahrafif/my-opencode-skillstheir own version, first seen Sep 8, 2026
- thesammykins/skillstheir own version, first seen Aug 14, 2026
Used with
Projects with it also use write-product-spec, diagnose-ci-failures and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
zerx-labSkillwrite-product-spec
Write a PRODUCT.md spec for a significant user-facing feature in Zap, focused on detailed behavior and validation. Use when the user asks for a product spec, desired behavior doc, or PRD, wants to define feature behavior before implementation, or when the feature is substantial or behaviorally ambiguous enough that a written spec would improve implementation or review.
Also in 5 projects that use this
zerx-labSkilldiagnose-ci-failures
Diagnose CI failures for a PR using the GitHub CLI, extract error logs, and generate a plan to fix them. Use when the user asks to check CI status, pull CI issues, triage test failures, or investigate PR build failures.
Also in 3 projects that use this
GitHubSkillresolve-merge-conflicts
Merge a base ref and safely regenerate compiled workflow lock-file conflicts.
Also in 3 projects that use this
gitpod-ioSkillfix-errors
Guidelines for fixing unhandled errors from the VS Code error telemetry dashboard. Use when investigating error-telemetry issues with stack traces, error messages, and hit/user counts. Covers tracing data flow through call stacks, identifying producers of invalid data vs. consumers that crash, enriching error messages for telemetry diagnosis, and avoiding common anti-patterns like silently swallowing errors.
Also in 3 projects that use this
busybutlazySkillupdate-skill
Use this skill when the user wants to modify an existing public skill in this repository's canonical-skills, revise its workflow, or update its package metadata and version.
Also in 3 projects that use this
DockerSkillreview-pr
Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.
Also in 3 projects that use this
- +2 more from zerx-lab
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- zerx-lab/warp★ 2.1ksame name
- zerx-lab/zap★ 2.1ksame name
- bholmesdev/hubble.md★ 1.5ksame name
- warpdotdev/common-skills★ 630same name
- dirumahrafif/my-opencode-skills★ 37same name
- charlesmatte/claude_code_skills★ 1same name
- thesammykins/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- add-commandSkill
- implement-sliceSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Create a technical specification for a component, feature, or architecture decision.
- Very specific: line 14
Read .claude/rules/architecture.md for active decisions and constraints
- Very specific: line 15
Read .claude/rules/documentation.md for documentation standards
- Distinctive: line 277
Write the spec to the appropriate location:
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Generated by dev-standards plugin. Customize as needed. -->Write Technical Specification
Create a technical specification for a component, feature, or architecture decision. Tech specs are the bridge between requirements (user stories) and implementation (code). They answer "how" and "why" before code is written.
Pre-Flight Checks
- Confirm what needs to be specified with the user
- Read
.claude/rules/architecture.mdfor active decisions and constraints - Read
.claude/rules/documentation.mdfor documentation standards - Identify related user stories or requirements
- Determine spec type: Component Spec, Feature Spec, or ADR
Spec Type Selection
Component Spec
For new components or significant changes to existing components:
- A new service, module, or subsystem
- A significant refactoring of an existing component
- A new integration with an external system
Feature Spec
For features that span multiple components:
- A new user-facing capability
- A cross-cutting concern (auth, logging, caching)
- A feature that changes multiple existing components
ADR (Architecture Decision Record)
For significant architectural decisions:
- Technology choices (framework, database, library)
- Pattern adoption (event sourcing, CQRS, microservices)
- Infrastructure decisions (hosting, deployment, scaling)
- Migration decisions (old pattern to new pattern)
Component Spec
Format
# Component: [Name]
## Status: [Draft | Review | Approved | Implemented]
## Purpose
[One sentence: what does this component do and why does it exist?]
## Context
[What problem does this solve? What existing code does it replace or extend?]
## Interface
### Public API
| Method/Function | Input | Output | Description |
|----------------|-------|--------|-------------|
| [name] | [params with types] | [return type] | [what it does] |
### Events Emitted
| Event | Payload | When |
|-------|---------|------|
| [name] | [data shape] | [trigger condition] |
### Events Consumed
| Event | Source | Action |
|-------|--------|--------|
| [name] | [context] | [what this component does] |
## Dependencies
### Required
| Dependency | Purpose | Interface |
|-----------|---------|-----------|
| [name] | [why needed] | [how accessed] |
### Optional
| Dependency | Purpose | Fallback |
|-----------|---------|----------|
| [name] | [why useful] | [behavior when absent] |
## Data Model
### State Shape
[Key data structures, schemas, types]
### Persistence
[How and where state is stored — database table, cache, file, memory]
### Migrations
[If this changes existing data, what migration is needed?]
## Behavior
### Core Algorithm / Logic
[How the component works — decision logic, transformations, state transitions]
### Side Effects
[What I/O does this component perform? Isolated at boundaries per architecture rules.]
### Concurrency
[Thread safety, race conditions, ordering guarantees]
## Error Handling
| Error Condition | Detection | Recovery | User Impact |
|----------------|-----------|----------|-------------|
| [what fails] | [how detected] | [how handled] | [what user sees] |
## Performance
- Expected throughput: [requests/sec, items/sec]
- Latency target: [p50, p95, p99]
- Resource limits: [memory, connections, file handles]
- Scaling approach: [horizontal, vertical, none]
## Security
- Authentication: [how callers are authenticated]
- Authorization: [what permissions are required]
- Data sensitivity: [PII, secrets, financial data]
- Attack surface: [input validation, injection prevention]
## Testing Strategy
| Tier | What to Test | Approach |
|------|-------------|----------|
| Unit | Pure logic, validation, transformations | Direct function calls, no mocks |
| Integration | Data access, external service calls | Real database, replay proxies |
| E2E | User-facing behavior | Full stack, highest fidelity |
## Open Questions
[Anything unresolved that needs input before implementation]
## Related
- User Stories: [US-NNN]
- User Flows: [flow links]
- ADRs: [ADR-NNN]
- Bounded Context: [context name]Feature Spec
Format
# Feature: [Name]
## Status: [Draft | Review | Approved | Implemented]
## Summary
[One paragraph: what does this feature do for the user?]
## User Stories
[List of user stories this feature implements]
## Components Affected
| Component | Change Type | Description |
|-----------|------------|-------------|
| [name] | New / Modified / Removed | [what changes] |
## Data Flow
[How data moves through the system for this feature — entry to exit]
User Input -> API Handler -> Service -> Repository -> Database -> Event Bus -> Handler -> Notification
## Implementation Plan
### Vertical Slices
[Break the feature into vertical slices — each delivers working functionality]
| Slice | Scope | Dependencies |
|-------|-------|-------------|
| 1. [name] | [what it delivers] | None |
| 2. [name] | [what it delivers] | Slice 1 |
| 3. [name] | [what it delivers] | Slice 1 |
### TDD Approach
For each slice, follow RED/GREEN/REFACTOR:
1. Write smoke test (RED)
2. Implement slice behaviors (RED -> GREEN -> REFACTOR per behavior)
3. Verify smoke test (GREEN)
## API Changes
[New or modified endpoints, request/response shapes, status codes]
## Database Changes
[New tables, columns, indexes, migrations]
## Configuration Changes
[New environment variables, feature flags, settings]
## Rollback Plan
[How to revert this feature if something goes wrong after deployment]
## Related
- User Flows: [flow links]
- ADRs: [ADR-NNN]
- Component Specs: [links]Architecture Decision Record (ADR)
Format
# ADR-NNN: [Title — the decision in imperative form]
## Status
[Proposed | Accepted | Deprecated | Superseded by ADR-NNN]
## Date
[YYYY-MM-DD]
## Context
[What is the situation that requires a decision?
What forces are at play? What constraints exist?
What is the current state and why is it insufficient?]
## Decision
[What was decided? Be specific about what will be done.
Include the chosen approach AND the key reason it was chosen.]
## Consequences
### Positive
- [Benefit 1]
- [Benefit 2]
### Negative
- [Trade-off 1]
- [Trade-off 2]
### Neutral
- [Side effect that's neither good nor bad]
## Alternatives Considered
### [Alternative 1]
- Description: [what this approach would look like]
- Rejected because: [specific reason]
### [Alternative 2]
- Description: [what this approach would look like]
- Rejected because: [specific reason]
## Implementation Notes
[Anything the implementing developer needs to know]
## Related
- Previous ADR: [if superseding]
- User Stories: [US-NNN]
- Components Affected: [list]ADR Rules
- ADRs are immutable once accepted — supersede with a new ADR, don't edit
- Number sequentially (ADR-001, ADR-002, etc.)
- Record the decision in
.claude/rules/architecture.mdwith the ADR reference - One ADR per decision — don't bundle multiple decisions
Output
Write the spec to the appropriate location:
docs/specs/<component-or-feature-name>.md — Component or Feature spec
docs/decisions/ADR-NNN-<slug>.md — Architecture Decision RecordCompletion Checklist
Component Spec
- Purpose is one clear sentence
- Public API fully documented with types
- Dependencies listed with purpose and interface
- Data model defined with persistence approach
- Error handling covers all failure modes
- Performance targets stated
- Security considerations addressed
- Testing strategy defined per tier
- Open questions listed (none remaining for implementation)
Feature Spec
- User stories referenced
- Components affected identified
- Data flow documented end-to-end
- Vertical slices planned (not horizontal layers)
- TDD approach defined per slice
- API and database changes specified
- Rollback plan defined
ADR
- Context explains the problem clearly
- Decision is specific and actionable
- Consequences include positives AND negatives
- Alternatives documented with rejection reasons
- Architecture rule updated with decision reference
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

