/doc-skills:authoring-design-specfrom doc-skills
Use when authoring or updating developer-facing design specs under docs/design for one or more canonical functional specs (many-to-many via tags), especially architecture decisions, technical tradeoffs, states, data flows, schemas, source-file references, and gaps between flow behavior and current design coverage
Ships in doc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when authoring or updating the design spec that sits one level below a canonical functional spec. The functional spec is the behavioral source of truth; the design spec explains how the repo intends to realize that behavior.
functional-specs tag list in its frontmatter enumerating every canonical flow ID it covers; each functional spec may carry a design-specs tag list listing the design docs that realize it.This skill is not for:
doc-skills:authoring-functional-spec first. A direct request to author a functional spec is not a design-spec trigger; do not select this skill as the primary authoring workflow for that request.superpowers:writing-plans.doc-skills:authoring-user-guide.doc-skills:writing-ai-prompts.For implementation-plan requests based on a functional spec or design spec, do not continue in design-spec authoring mode. Route to superpowers:writing-plans and hand over the canonical flow ID, functional-spec path, relevant design-spec paths, gap analysis, source-file anchors, open questions, and any implementation constraints the user provided.
If existing design docs already cover the flow and the user asks for an implementation plan next, stop design-spec authoring and hand that covered design context to superpowers:writing-plans.
docs/functional/<canonical-id>/README.md, or a child flow file under docs/functional/<parent-id>/NN-<child-slug>.md whose frontmatter id matches.gws, so the skill can verify the flow's Sheet repo before writing a design doc.If no canonical ID is supplied, ask:
Which canonical flow ID(s) should this design spec cover?
If the matching functional spec is not present, abort:
Functional spec
<canonical-id>was not found underdocs/functional/. Author the functional spec first withauthoring-functional-spec, then rerun this skill.
Before stopping, prepare a handoff for authoring-functional-spec containing the canonical flow ID, the requested design goal, relevant docs or source files already identified, and the reason the design spec is blocked. Ask the user to switch back to authoring-functional-spec with that handoff instead of silently continuing in design-spec mode.
Verify command -v gws resolves.
Run gws auth status. If non-zero, abort with:
Run
gws auth loginfirst, then retry.
Verify git rev-parse --is-inside-work-tree exits zero.
Parse git remote get-url origin to extract the repo name (everything after the last /, stripping .git).
Confirm superpowers:brainstorming is available through the active runtime's skill mechanism. In Codex, use the available skills list and follow the relevant SKILL.md; in Claude Code, use the Skill tool.
Confirm the repo has docs/functional/. If not, abort with the missing functional-spec message above and include the authoring-functional-spec handoff context.
Use the supplied canonical ID(s), or ask if none provided. Treat the first as primary; resolve each additional ID through the same steps below.
Fetch the User-Flows-Details Sheet row for the primary canonical ID using the command patterns from authoring-functional-spec/references/sheet-interop.md. Extract column C (repo) as the primary repo.
Verify the current repo from Phase 0 matches the Sheet repo. If they differ, abort:
You are in
<current-repo>but flow<id>targets<sheet-repo>. Re-run this skill from the correct repo so the design doc lands beside the functional spec.
For each canonical ID, check docs/functional/<canonical-id>/README.md.
If not found, search docs/functional/**/*.md for frontmatter id: <canonical-id>.
Read each matching functional spec. For each, extract:
If design discovery shows the functional spec itself is stale, incomplete, or contradicted by the intended design, present the proposed functional-spec change to the author and ask for explicit confirmation before editing it. When confirmed, modify the existing canonical functional spec in place in the same Sheet repo; do not create a second functional spec for the flow. If not confirmed, keep the design spec aligned to the current functional spec and record the unresolved product question instead of silently changing behavior.
Read docs/design/README.md when present, then search docs/design/ for:
functional-specs frontmatter tags)When a design doc already carries the canonical ID in its functional-specs tag, treat it as a direct candidate for update rather than a new file.
Read only related design specs. Build a short internal coverage map:
Before drafting, present the gap analysis to the author:
docs/design/functional-specs tag list for the design doc frontmatterIf no meaningful design gap exists, say so and stop without writing a new spec.
superpowers:brainstormingInvoke superpowers:brainstorming through the active runtime's skill mechanism with this context:
We are authoring a design spec under
docs/design/covering canonical flow(s)<canonical-id-list>. Functional spec(s):<functional-spec-paths>— behavioral source(s) of truth. Related design specs read:<paths>. Gap analysis:<covered/partial/missing/conflicting summary>. Keep the design spec one level below the functional spec and above the implementation plan. Pressure-test the proposed design coverage, ask one question at a time, and keep implementation task sequencing forsuperpowers:writing-plans.
Wait for brainstorming to produce an approved design direction before drafting.
Write to the approved target path under docs/design/ in the primary repo from the Sheet. Prefer docs/design/<topic>/README.md for durable topics; use a sub-document only when an existing design directory already owns the topic.
Use this structure unless the repo has a stricter local template:
---
functional-specs: [<canonical-id>, ...]
---
# <Design Topic>
> **Status:** Draft
> **Functional specs:** [`<canonical-id>`](../../functional/<canonical-id>/README.md), ...
## Overview
2-3 sentences explaining which part of the flow this design covers and why the
existing design coverage was insufficient.
## Design Scope
**Covers**
- ...
**Does not cover**
- ...
## Key Decisions
| Decision | Rationale |
|---|---|
| ... | ... |
## Architecture / How It Works
Design-level structure, data flow, APIs, schemas, state, lifecycle, or
integration behavior needed to realize the flow.
## States / Transitions
Include only state that matters to the design.
## Relationship to Existing Design Specs
| Spec | Relationship |
|---|---|
| `docs/design/...` | Covered / partial / superseded / dependency |
## Key Source Files
| File | Purpose |
|---|---|
| `src/path/file.ts` | One-line responsibility |
## Open Questions
1. `[design]` ...
functional-specs frontmatter list and link to each functional spec in the header. Link to related design specs in the relationship table.Before writing or claiming completion, check:
functional-specs frontmatter tag, and are linked in the header.docs/design/README.md is updated when it exists.doc-skills:writing-clearly-and-concisely is applied to tighten prose before showing the draft.superpowers:verification-before-completion is invoked before completion when available.After writing, summarize:
docs/design/README.md was updatedWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (accelerate-data/doc-skills) — no native marketplace selected
npx claudepluginhub p/accelerate-data-doc-skills5 skills in this plugin
/authoring-functional-specUse when creating or updating a functional spec for a user flow listed in column B of the User-Flows-Details Sheet/authoring-user-guideUse when creating or updating end-user help pages, user documentation, screen docs, feature help pages, or docs under `docs/user-guide/`.
Trigger on "author user guide", "create user guide", "new user guide", "update user guide", "document [screen]", "help page for [feature]", "rewrite the user guide in simplified technical English", "fix the terminology in the docs", or "/authoring-user-guide".
/writing-ai-promptsUse when the user wants to write or improve a prompt for Claude, ChatGPT, Gemini, Cursor, Claude Code, GitHub Copilot, Windsurf, Bolt, v0, Midjourney, DALL-E, Stable Diffusion, or another AI-powered tool./writing-clearly-and-conciselyUse when writing or tightening prose for functional specs, design documents, user guides, or implementation plans, especially when draft text is wordy, vague, passive, duplicative, or hard to scan. Do not use for AI prompt-writing, code comments, commit messages, general chat, or unrelated prose.