Create design doc
Generate a structured engineering design doc from a refined PM feature spec. Use this skill when processing a design-doc queue item.From its SKILL.md
npx -y skills add tomharris/engineer-agent --skill create-design-docAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.5 KB, as published. Nobody here has run it
Create a Design Doc
Generate a comprehensive engineering design doc from a PM's feature spec, incorporating any prior spec refinement Q&A.
Tools Needed
mcp__slite__get-note— fetch the optional design doc template from Slite (the spec itself is already inlined into the queue item by the command, whatever its source)mcp__slite__create-note— create the design doc on approvalRead,Write— read/write queue items and source codeGrep,Glob— explore codebase architecture, find implementations and patternsmcp__atlassian__searchJiraIssuesUsingJql— find dependency ticketsmcp__atlassian__getJiraIssue— read ticket details
Input
A queue item file in ~/.local/share/engineer-agent/queue/incoming/ with type design-doc, containing the spec content in ## Context. The spec may have come from Slite or from a local file; the content is inlined either way, so the source makes no difference here. The frontmatter may include spec_refinement_id linking to a completed spec-refinement for additional Q&A context.
Steps
1. Gather Context
Read the queue item's ## Context section for the spec content. Extract the project field from frontmatter.
Read ~/.local/share/engineer-agent/engineer.yaml to find the project config at projects.<project> for codebase path and Slite settings.
If spec_refinement_id is present in the frontmatter, search ~/.local/share/engineer-agent/queue/completed/ for a matching spec-refinement item (by source_id). Extract the Q&A from its ## Draft Response — the filled-in _Answer:_ fields provide critical context from PM conversations.
2. Determine Template
Check the queue item frontmatter or config for a template:
- If
projects.<project>.slite.design_doc_templateis available and non-empty, fetch it viamcp__slite__get-noteand use its heading structure as the template - If empty, use the built-in default template (see below)
3. Research the Codebase
Before writing, understand the current architecture using the project path from config:
- Search for code related to the systems mentioned in the spec
- Identify existing patterns, abstractions, and conventions
- Note relevant data models and API contracts
- Find potential integration points
4. Write the Design Doc
Using either the fetched template structure or the built-in default, generate the full design doc content.
Built-in Default Template:
## Draft Response
### Overview
{Problem framing — what exists today and what's wrong. Solution summary — what we're building and why.}
### Goals
- {Measurable success criterion}
### Non-Goals
- {Explicit scope boundary — what we're NOT doing and why}
### Architecture
#### High-Level Approach
{System design narrative}
#### Components
{New or modified components with responsibilities}
#### Data Model Changes
{Schema changes, new tables/fields, migrations}
#### API Changes
{New or modified endpoints/interfaces}
### Design Decisions
| Decision | Options Considered | Choice | Rationale |
|----------|-------------------|--------|-----------|
| {decision} | {options} | {choice} | {why} |
### Dependencies
- **Internal teams:** {teams and what's needed from them}
- **External services:** {third-party dependencies}
- **Sequencing:** {what must happen first}
### Cross-Cutting Concerns
#### Observability
{Metrics, logging, alerting}
#### Security
{Auth, data protection, threat model considerations}
#### Performance
{Latency, throughput, resource requirements}
#### Migration
{Data migration, feature flags, rollback strategy}
### Open Questions
- {Unresolved item needing further discussion}
### Risks
| Risk | Likelihood | Impact | Mitigation |
|------|-----------|--------|------------|
| {risk} | {low/medium/high} | {low/medium/high} | {mitigation} |
### Implementation Phases
#### Phase 1: {name}
- {work item}
- {work item}
#### Phase 2: {name}
- {work item}
Fill in every section based on the spec, refinement Q&A, and codebase research. If a section genuinely doesn't apply, include it with "N/A — {brief reason}".
Update frontmatter status to drafted and move to ~/.local/share/engineer-agent/queue/drafts/.
5. Report
Report: "Design doc drafted for '{spec_title}'. Review with /engineer-agent review-queue before publishing to Slite."