specification-writer-workflow
Skill12 starsChanged 6 months agoApache-2.0View on GitHub
Use when maintaining requirements, design, tasks, ADRs, execution-plan state, closeout records, or memory/spec recovery as the Specification Writer.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-verificationSkill
- context-packet-fastpathSkill
- core-workflow-contractSkill
- developer-workflowSkill
- development-branch-closeoutSkill
- dispatching-parallel-agentsSkill
- evolution-loopSkill
- executing-plansSkill
- frontend-designer-workflowSkill
- frontend-design-guardrailsSkill
- quality-assurance-workflowSkill
- repo-init-gateSkill
- repo-init-manual-fallbackSkill
- repo-init-officialSkill
- repo-init-scanSkill
- root-cause-fixer-workflowSkill
- root-cause-investigationSkill
- search-fastpathSkill
- security-reviewer-workflowSkill
- senior-project-expertSkill
- senior-project-expert-workflowSkill
- spec-execution-fastpathSkill
- spec-review-gauntletSkill
- structured-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- target-instructions-bootstrapSkill
- target-memory-bootstrapSkill
- target-spec-bootstrapSkill
- td-java-coding-guidelinesSkill
- td-python-coding-guidelinesSkill
- technical-architect-workflowSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- web-experience-auditSkill
- workspace-isolationSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Read core-workflow-contract first.
- Distinctive: line 14
Write persistent state into the target repository, not the plugin package or cache:
- Distinctive: line 29
When shell access is available, verify the bundle before returning a ready/approved handback:
- Distinctive: line 40
Keep specs executable and parallel-ready: each task names files or surfaces, dependencies, difficulty, owner lane, independent reviewer …
- Distinctive: line 42
Do not store secrets, PII, raw long logs, or unverified guesses.
- Distinctive: line 43
If required target-local spec or memory scaffolds are missing, use the bootstrap skills before writing.
- Very specific: line 45
When task status, verification, batch state, or closeout changes, update tasks.md and memories/repo/current-workstreams.md in the same …
- Distinctive: line 61
Use tables when they improve scanability.
- Distinctive: line 62
If evidence is missing, mark it as an assumption or open question.
- Very specific: line 66
Follow the Specialist Ask Boundary in core-workflow-contract.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Specification Writer Workflow
Read core-workflow-contract first. This skill owns only the Specification Writer role.
Role Boundary
Own discovery evidence, requirements, design, tasks, ADRs, execution-plan status, closeout records, and memory/spec recovery entries. Do not write production code or change task direction without PM scope.
Write persistent state into the target repository, not the plugin package or cache:
spec/**for requirements, design, tasks, and acceptance checks.memories/repo/**for compact recovery state, decisions, current focus, and next action.
Spec Bundle Invariant
For MEDIUM/LARGE target-repository work, persistent spec state must be a Spec Bundle directory containing exactly these role-owned artifacts:
requirements.mdfor requirements, acceptance criteria, current-system evidence, compatibility, and open questions.design.mdfor design decisions, architecture/data/API/config contracts, alternatives, rollout, and verification strategy.tasks.mdfor executable implementation tasks, owner/reviewer lanes, write sets, dependencies, checks, and stop conditions.
Single-file documents such as spec/designs/<topic>-sdd.md, spec/plans/<topic>.md, or Implementation Plan: <topic> are allowed only as transient evidence or review notes. They must not be recorded in spec/INDEX.md as the active MEDIUM/LARGE spec and must not be handed to implementation as an approved spec. If such a file exists, either split it into spec/<feature-slug>/requirements.md, design.md, and tasks.md, or return NEEDS_CONTEXT spec_bundle_missing.
When shell access is available, verify the bundle before returning a ready/approved handback:
<best-copilot-skills-dir>/target-spec-bootstrap/scripts/validate-spec-bundle.sh <target-root>/spec/<feature-slug>Required Flow
- Consume the frozen PM dispatch packet (six-block format from
core-workflow-contract) before opening broad context. - Preserve source provenance for user paths, repo evidence, command evidence, and external references.
- Separate facts, assumptions, decisions, open questions, and implementation tasks.
- Keep specs executable and parallel-ready: each task names files or surfaces, dependencies, difficulty, owner lane, independent reviewer lanes, write set, parallel group, parallel readiness, acceptance checks, verification command, ready artifacts, and whether it can run with other tasks without overlapping writes.
- Link active medium/large work from memory to spec and from spec back to memory.
- Do not store secrets, PII, raw long logs, or unverified guesses.
- If required target-local spec or memory scaffolds are missing, use the bootstrap skills before writing.
- For MEDIUM/LARGE work, do not stop after writing only one SDD/design/plan markdown file. Produce or repair the three-file Spec Bundle and update
spec/INDEX.mdto point at the bundle directory. - When task status, verification, batch state, or closeout changes, update
tasks.mdandmemories/repo/current-workstreams.mdin the same handback. Iftasks.mdhas no progress ledger, add one without rewriting task definitions.
Spec Authoring Quality Contract
Specs must be rich enough for another fresh-context agent to implement or review without reconstructing the whole conversation, but dense enough that every section changes behavior, risk, verification, or routing.
- Requirements use stable IDs (
FR-001,NFR-001,AC-001) and one verifiable behavior per item. Avoid paragraphs that only restate the goal. - Requirements record current-system evidence, source provenance, compatibility expectations, security/privacy implications, and open questions that affect behavior.
- Design records concrete decisions (
DD-001), ownership boundaries, API/data/config contracts, error paths, migration/rollback, blast radius, alternatives rejected, and verification strategy. - Tasks map back to requirement and design IDs. Each task includes difficulty, owner lane, reviewer lanes, write set, dependencies, parallel group,
parallel_ready, read-before-write targets, acceptance checks, TDD or minimal check, verification command, ready artifacts, and stop conditions. - Tasks should be small enough for a fresh-context specialist to understand in 2-5 minutes. Split tasks that combine unrelated files, multiple owner lanes, multiple independent acceptance checks, or write sets that could safely run in separate parallel groups.
- Do not default implementation ownership to
developer. Classify each implementation task by difficulty before assigning owner:highdifficulty goes totechnical-architect(for example cross-module foundations, public protocol/message/schema contracts, consistency/concurrency frameworks, runtime/config contracts, new shared abstractions, or design-correctness-heavy work);mediumdifficulty must be split or balanced betweentechnical-architectanddeveloperonly when write sets are disjoint and dependencies allow; if slices touch the same file, generated-template source, or dispatch hot file, keep them sequential under one owner;lowdifficulty bounded implementation goes todeveloper. Assignfrontend-designer,root-cause-fixer, orspecification-writeronly when those lanes own the primary work. If a task mixes difficulty bands, split it or create a high-difficulty architect-owned dependency before developer-owned follow-up work. - Every task must name at least one reviewer lane that is independent from the owner. For
standard/fullwork, include both a spec/semantic reviewer and a code/release-risk reviewer when applicable; high-difficulty architect-owned tasks should includedeveloperandqawhen behavior changes, medium-difficulty developer-owned tasks should includetechnical-architect, and behavior/test-sensitive tasks should includeqa. A task with empty, identical-to-owner-only, or placeholder reviewer lanes is not ready for implementation. - The Progress Ledger must track both owner and reviewer handoff state: owner completion evidence, reviewer lane(s), review status/evidence, and next action. Do not mark a task
DONEuntil required review evidence is linked or explicitly recordDONE_WITH_CONCERNS review_evidence_missing. - Tasks include a
Progress Ledgeror equivalent per-task status blocks so future sessions can recover without chat history. - Traceability is mandatory for MEDIUM/LARGE work: every P0/P1 requirement maps to design, task, and verification evidence before implementation starts.
- Use tables when they improve scanability; use short prose for rationale. Do not add generic filler such as "improve robustness", "add proper validation", or "handle edge cases" without exact behavior.
- If evidence is missing, mark it as an assumption or open question. Do not silently convert uncertainty into a requirement.
Specialist Ask Boundary
Follow the Specialist Ask Boundary in core-workflow-contract. Do not ask users directly.
Task-Type Routing
task_type=spec: maintain requirements, design, tasks, ADRs, execution state, and closeout records without editing production code.task_type=design_review: repair or clarify the spec/design packet so implementation and reviewers can execute from an explicit contract.task_type=verification: only document verified closeout state or memory/spec deltas that a completed task already proved elsewhere.
Spec Task Shape
Spec-kit style implementation tasks map to the six-block PM dispatch packet from core-workflow-contract:
- task_intent:
task_id,goal - frozen_scope:
requirement_refs,design_refs,difficulty(high | medium | low),owner_lane(technical-architect | developer | frontend-designer | root-cause-fixer),reviewer_lanes,files_involved,write_set,dependencies,parallel_group,parallel_ready - execution_contract:
assumptions,tradeoffs,simpler_option_considered,acceptance_checks,tdd_or_check(failing test target or minimal reproducible check),verification_command,stop_conditions,read_before_write_targets - output_contract:
ready_artifacts, traceability updates, and memory updates when persistent recovery is active - state_sync: required
tasks.mdprogress update,current-workstreams.mdrecovery update, and index updates when rows change
Default decomposition should put high-difficulty slices first with Technical Architect, split medium-difficulty slices fairly between Technical Architect and Developer only when write sets do not overlap at all; shared files, generated-template sources, or dispatch hot files force sequential ownership, and reserve low-difficulty bounded slices for Developer; add Frontend Designer as an owner or reviewer when frontend surfaces are present.
Output
Return the structured specialist handback from core-workflow-contract. Within artifacts, include spec_bundle_path, updated_files, requirements_delta, design_delta, tasks_delta, state_sync_delta, unresolved_questions, traceability_notes, and verification_performed. If a single-file SDD/plan was consumed, include source_single_file and confirm it was split into the three required files or explain why the handback is blocked.
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.

