technical-spec
Skill8 starsChanged 8 months agoMITView on GitHub
Translates product requirements (PRDs, user stories) into engineering-ready technical specifications. Covers system architecture decisions, API contracts, data models, non-functional requirements, and migration plans. Bridges the gap between \"what to build\" (PM) and \"how to build it\" (engineering).
6 other projects use a version of this.
Adopted by
Most recently taken up by
- shinpr/ai-coding-project-boilerplatetheir own version, first seen Nov 29, 2026
- snowfluke/tech-lead-skillstheir own version, first seen Nov 8, 2026
- SkillMedev/product-manager-stacktheir own version, first seen Oct 20, 2026
- snowfluke/my-tech-lead-flowtheir own version, first seen Sep 30, 2026
- Douglasst102/AgentSkillstheir own version, first seen Sep 28, 2026
- nandanosql/all_in_one_pm_skillstheir own version, first seen Feb 28, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- shinpr/ai-coding-project-boilerplate★ 239same name
- snowfluke/my-tech-lead-flow★ 8same name
- snowfluke/tech-lead-skills★ 8same name
- Douglasst102/AgentSkills★ 4same name
- nandanosql/all_in_one_pm_skills★ 1same name
- SkillMedev/product-manager-stack★ 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 repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- benchmarks/AGENTS.mdAGENTS.md
- executive-briefingSkill
- meeting-notesSkill
- product-narrativeSkill
- churn-analysisSkill
- customer-advisory-boardSkill
- customer-journey-mappingSkill
- feedback-triageSkill
- competitive-landscapeSkill
- discovery-interview-prepSkill
- jobs-to-be-doneSkill
- market-sizingSkill
- opportunity-solution-treeSkill
- user-research-synthesisSkill
- workflow-questionnaireSkill
- epic-breakdownSkill
- prd-developmentSkill
- pre-mortemSkill
- release-notesSkill
- sprint-planningSkill
- user-story-writingSkill
- competitive-battlecardSkill
- go-to-market-strategySkill
- growth-loopsSkill
- ab-test-analysisSkill
- artifact-quality-auditSkill
- metrics-dashboardSkill
- retrospective-facilitatorSkill
- stakeholder-communicationSkill
- decision-logSkill
- okr-authoringSkill
- stakeholder-mappingSkill
- monetization-experimentsSkill
- pricing-strategySkill
- build-vs-buy-analysisSkill
- business-model-canvasSkill
- lean-canvasSkill
- pestel-analysisSkill
- positioning-statementSkill
- prioritization-advisorSkill
- product-strategy-sessionSkill
- roadmap-planningSkill
- swot-analysisSkill
- adversarial-reviewSkill
- api-product-designSkill
- design-reviewSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read docs/workflow-contract.md once per session before applying this skill.
- Distinctive: line 18
After a PRD is approved and before engineering estimation begins
- Distinctive: line 19
When a feature requires significant architectural decisions
- Distinctive: line 20
When multiple engineering teams need to coordinate on an implementation
- Distinctive: line 295
No alternatives considered, no trade-off analysis, no consequences stated, this is a statement, not a decision record.
“Common” is measured: kept by at least 6 in 10 of the 5 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
Technical Spec Writing
Read docs/workflow-contract.md once per session before applying this skill. Resolve it from the nearest ancestor of this file containing manifest.json; all Shipwright paths are relative to that root.
Description
Translates product requirements (PRDs, user stories) into engineering-ready technical specifications. Covers system architecture decisions, API contracts, data models, non-functional requirements, and migration plans. Bridges the gap between "what to build" (PM) and "how to build it" (engineering).
When to Use
- After a PRD is approved and before engineering estimation begins
- When a feature requires significant architectural decisions
- When multiple engineering teams need to coordinate on an implementation
- As a PM who wants to speak engineering's language and earn technical credibility
Depth
| Scope | Use When | Sections to Include |
| Light | Small feature or isolated backend change | Context & Motivation + System Architecture + API Contract |
| Standard | Typical feature spanning multiple components | All sections |
| Deep | Platform migration, new system, or multi-team coordination | All sections + load test plan, detailed ADRs per component, cross-service sequence diagrams, rollback rehearsal script |
Omit rules: At Light depth, condense non-functional requirements and rollout detail. Retain material security, migration and rollback considerations alongside context, architecture and API contract. Mark irrelevant items N/A with rationale.
Framework
Step 1: Context & Motivation (Engineering Perspective)
# Technical Specification: [Feature Name]
## Metadata
- PRD Reference: [link to PRD]
- Author: [PM + Tech Lead]
- Reviewers: [engineering, security, infra]
- Status: [Draft / In Review / Approved]
- Last updated: [date]
## Context
**What we're building:** [1-2 sentences, from the PRD]
**Why (business):** [Key metric we're moving and by how much]
**Why (technical):** [Technical motivation, e.g., "Current system can't support X"]
## Scope
**In scope:** [Specific capabilities this spec covers]
**Out of scope:** [What's explicitly NOT covered, defer to future specs]
**Assumptions:** [Technical assumptions we're making]
## Codebase Notes
**Codebase available:** [Yes: path or repo / No]
**Files and modules inspected:** [list, or "none, no codebase access"]
**Patterns in use:** [framework, persistence layer, auth model, error handling, naming conventions]
**Reusable components:** [what already exists that this feature should build on]
**Conflicts with the PRD:** [anything the PRD assumes that the system does not do today]Read before you design. If a codebase is available, read the modules this feature touches before drafting Steps 2 through 4, and fill in Codebase Notes from what you actually read. If no codebase is available, write Codebase available: No and label the Architecture, API Contract and Data Model sections Hypothesis: written without codebase access. A spec written blind is a set of questions for the tech lead, not a plan.
Step 2: System Architecture
## Architecture
### High-Level Design
[Describe the architecture at a block-diagram level]
[Client] → [API Gateway] → [Service A] → [Database] → [Service B] → [Message Queue] → [Worker]
### Components Affected
| Component | Change Type | Description |
|---|---|---|
| [Service A] | Modify | [What changes and why] |
| [Service B] | New | [New service needed for X] |
| [Database] | Schema change | [New tables/columns] |
| [Client] | UI update | [New screens/flows] |
### Architecture Decision Records (ADRs)
For each significant choice:
#### ADR 1: [Decision Title, e.g., "Use event-driven architecture for notifications"]
- **Context:** [Why this decision was needed]
- **Options considered:**
- Option A: [Description], Pros: [x] / Cons: [y]
- Option B: [Description], Pros: [x] / Cons: [y]
- **Decision:** [What we chose]
- **Rationale:** [Why, trade-off analysis]
- **Consequences:** [What this commits us to]Step 3: API Contract
## API Design
### New Endpoints
#### POST /api/v2/[resource]
**Purpose:** [What this endpoint does]
**Authentication:** [Required, Bearer token / API key / etc.]
**Rate limit:** [N requests per minute]
**Request:**
```json
{
"field_1": "string (required), description",
"field_2": 123, // integer (optional), description
"field_3": { // object (required)
"nested_field": "string"
}
}Response (200 OK):
{
"id": "uuid",
"field_1": "string",
"created_at": "2026-01-15T10:30:00Z",
"status": "active"
}Error Responses:
| Code | Condition | Response Body |
| 400 | Invalid input | { "error": "validation_error", "details": [...] } |
| 401 | Not authenticated | { "error": "unauthorized" } |
| 403 | Not authorized | { "error": "forbidden" } |
| 404 | Resource not found | { "error": "not_found" } |
| 429 | Rate limited | { "error": "rate_limited", "retry_after": 60 } |
Modified Endpoints
| Endpoint | Change | Backward Compatible? |
| [existing endpoint] | [what changes] | [Yes / No, if no, migration plan required] |
### Step 4: Data Model
```markdown
## Data Model
### New Tables / Collections
#### [table_name]
| Column | Type | Nullable | Default | Description |
|---|---|---|---|---|
| id | UUID | No | gen_random_uuid() | Primary key |
| [field] | VARCHAR(255) | No | | [description] |
| [field] | INTEGER | Yes | 0 | [description] |
| created_at | TIMESTAMP | No | NOW() | Record creation time |
| updated_at | TIMESTAMP | No | NOW() | Last modification time |
**Indexes:**
- `idx_[table]_[column]` on [column], for [query pattern]
- `idx_[table]_[col1]_[col2]` on ([col1], [col2]), for [query pattern]
**Relationships:**
- [table_name].[field] → [other_table].id (foreign key)
### Schema Migrations
| Migration | Description | Reversible? | Estimated Duration |
|---|---|---|---|
| [001_add_table_x] | Creates [table] | Yes | [seconds/minutes] |
| [002_add_column_y] | Adds [column] to [table] | Yes | [time, data volume] |
### Data Volume Estimates
| Table | Expected Rows (Year 1) | Growth Rate | Storage Estimate |
|---|---|---|---|
| [table] | [N] | [X]/month | [GB] |Step 5: Non-Functional Requirements
## Non-Functional Requirements
### Performance
| Metric | Requirement | Measurement Method |
|---|---|---|
| API response time (p95) | < [N]ms | [APM tool] |
| Page load time (p95) | < [N]s | [RUM / Lighthouse] |
| Throughput | [N] requests/second | [Load testing] |
| Database query time (p95) | < [N]ms | [Query monitoring] |
### Scalability
- Must support [N] concurrent users
- Must handle [N] [operations] per [time period]
- Horizontal scaling strategy: [approach]
### Security
- [ ] Authentication: [method]
- [ ] Authorization: [RBAC / ABAC, describe permission model]
- [ ] Data encryption: At rest [method] / In transit [TLS version]
- [ ] PII handling: [what PII is involved, how it's protected]
- [ ] Audit logging: [what actions are logged]
### Reliability
- Availability target: [99.9% / 99.95% / etc.]
- Failover strategy: [approach]
- Data backup: [frequency, retention]
- Disaster recovery: [RTO and RPO targets]
### Observability
- Logging: [What's logged, at what level]
- Metrics: [Key metrics to instrument]
- Alerting: [Conditions that trigger alerts]
- Dashboards: [What dashboards need updating]Step 6: Rollout & Migration
## Rollout Plan
### Feature Flags
| Flag | Description | Default | Rollout Plan |
|---|---|---|---|
| [flag_name] | [what it controls] | Off | Internal → 10% → 50% → 100% |
### Migration Steps
1. [ ] Deploy database migrations (backward-compatible)
2. [ ] Deploy service changes behind feature flag (off)
3. [ ] Enable for internal users / dogfood
4. [ ] Enable for [X]% of users, monitor for [N] days
5. [ ] Ramp to 100%
6. [ ] Remove feature flag and old code paths
### Rollback Plan
- **Trigger:** [What metric or alert triggers rollback]
- **Steps:** [How to roll back safely]
- **Data implications:** [What happens to data created during the rollout]
### Testing Requirements
- [ ] Unit tests for [components]
- [ ] Integration tests for [API contracts]
- [ ] Load test to [N] concurrent users
- [ ] Security review for [auth, PII handling]
- [ ] Accessibility auditMinimum Evidence Bar
Required inputs: An approved PRD or equivalent product brief with defined scope, target users, and success metrics. Access to the current system architecture (or confirmation this is greenfield).
Acceptable evidence: PRD, system architecture diagrams, existing API documentation, performance benchmarks, engineering team input on feasibility, and schema or data model context.
Insufficient evidence: If no PRD or product brief exists, stop and recommend running the PRD skill before attempting this skill. If no engineering input is available, state "Architecture decisions are PM hypotheses only" and flag for tech lead review. If a codebase is available and was not read, the spec is not ready; read it first.
Hypotheses vs. findings:
- Findings: Components affected, API contract schemas, data model structure (must reflect current system state or confirmed engineering decisions)
- Hypotheses: Performance targets, data volume estimates, rollout ramp percentages (must be labeled as projections pending load testing or production validation)
Output Format
Produce a Technical Specification with:
- Context & Scope, what, why, boundaries
- Architecture, system design with ADRs for key decisions
- API Contract, endpoints, request/response schemas, errors
- Data Model, tables, relationships, migrations
- Non-Functional Requirements, performance, security, reliability
- Rollout Plan, feature flags, migration, rollback
Shipwright Signature (required closing): 7. Decision Frame, recommended architecture approach, trade-off, confidence with evidence quality, owner, decision date, revisit trigger 8. Unknowns & Evidence Gaps, unvalidated performance targets, missing data volume estimates, untested migration paths 9. Pass/Fail Readiness, PASS for engineering approval if the tech lead has reviewed the architecture, the API contract matches PRD requirements, and material security/rollback issues are resolved. FAIL for approval if review is missing, alternatives are unexamined, or material rollback needs are unanswered. A useful draft may be delivered with explicit blockers at any depth. 10. Recommended Next Artifact, Which Shipwright skill to run next and why
Common Mistakes to Avoid
- Writing implementation details in the PRD, The PRD says "what"; the tech spec says "how"
- No ADRs, If you chose approach A over B, document why; future engineers will thank you
- Forgetting non-functionals, Performance, security, and observability are requirements, not nice-to-haves
- No rollback plan, Every deployment should be reversible
- PM writes tech spec alone, Co-author with the tech lead; the PM ensures requirements fidelity, the engineer ensures technical feasibility
- Writing the spec blind, Architecture, data model and API sections written without reading the codebase describe an imagined system; read the relevant modules first, or label the sections as hypotheses
Weak vs. Strong Output
Weak:
"ADR: We will use a message queue for async processing."
No alternatives considered, no trade-off analysis, no consequences stated, this is a statement, not a decision record.
Strong:
"ADR: Use RabbitMQ over SQS for notification processing. SQS is simpler but lacks routing key support needed for per-tenant delivery rules. RabbitMQ adds operational overhead (cluster management) but supports the fan-out pattern required by 3 of 4 notification types. Consequence: team must maintain RabbitMQ infrastructure or migrate to managed CloudAMQP ($200/mo at projected volume)."
Names alternatives, explains the deciding factor, and quantifies the operational consequence.
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.

