/luismc-docs:spec-newfrom luismc-docs
Interview the user and write a normative spec before implementation, for standards, services, migrations, components or refactors; feature specs go to feature-spec-new. Use when the user wants to plan, design or spec out work, says "I want to build X" or "write a spec for", or a spec needs revising.
Ships in luismc-docs. 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.
Read when SKILL.md points to them.
Produce a specification that is precise enough to make implementation mechanical. Make it verifiable enough that "done" is a command, not an opinion.
The template lives at assets/spec-template.md. Read it before interviewing.
Its section tiers and authoring rules decide which questions matter.
luismc-docs:feature-spec-new, never here.docs/docs.json follows DOCSPEC (luismc-docs; its layout is not restated here). A spec of one
feature belongs in docs/features/<feature>/spec.md: say first that you are handing over to
luismc-docs:feature-spec-new, then use it, and bring this interview's answers to it. A binding rule that spans features goes to docs/architecture/<name>.md, with
front matter type: reference.specs/<name>.md, for any kind of spec, features included.Open with what you already know from reading the code, so the user corrects you instead of dictating. Then dig, in roughly this order:
Ask about tradeoffs the user hasn't raised. The questions that feel annoying in the interview are usually the ones that would have surfaced as a defect.
Stop interviewing when you can write every section without guessing. Say so explicitly. Do not drift into more questions.
Follow the authoring rules in the template's header comment. Three of them carry most of the weight:
R<section>.<n>. No ID means no test can
cite it, so it will be dropped.MUST NOT without a reason
gets deleted by the next person who optimises something.Numbering is not cosmetic. Every §/R reference in the spec, in tests, in
review comments, and in audit findings resolves through it. Rule 11 in the
template states it in full. These parts are the easiest to get wrong:
§ and R are different namespaces. §4.2 is a heading. R4.2 is a
requirement. There is no §4.2 just because R4.2 exists. Never write one
meaning the other, and never write R6.6.1 — three components means you meant
a section.## 4. → ### 4.2 → #### 4.2.1. A
### 4.2.1 is wrong even though it reads fine.R4.x lives in §4,
always. Moving a requirement between sections means renumbering it.§5 to §4
invalidates every R5.x and every citation of them. Insert with a letter
suffix (R4.9a) instead.When you delete the template's inapplicable sections, leave the resulting gaps. A spec that jumps §1 → §3 → §7 is correct. A spec renumbered to close those gaps has silently broken every reference written against it.
Cite another document by name. A bare §4.2 means this spec's §4.2.
When you mean a section of another document, write OTHERSPEC §4.2. The prefix
keeps the two apart. Without it, a reference to their §4.2 either fails to
resolve or, worse, silently resolves to yours if the numbers happen to collide.
Verify before you hand the spec over, with the spec-check skill. It is the
partner skill in this same plugin, at ../spec-check/ relative to this file. It takes any spec path and checks all of the above:
duplicate numbers, depth mismatches, orphan subsections, out-of-order or
mis-sectioned identifiers, and dangling §/R references. Register any
document you cite, so those references are checked against it and not skipped.
If you do not register it, OTHERSPEC §4.2 falls through to internal resolution
and silently matches your own §4.2 if you have one:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/spec-check/assets/spec_check.py" <path-to-your-spec>.md \
--external OTHERSPEC=path/to/other.md
Delete every section that does not apply. A 200-line spec that covers one component well beats a 900-line one with empty scaffolding. The template's tier table says what is core and what is conditional.
Keep the spec self-contained: name the files and interfaces involved, state what is out of scope, and end with a verification command.
Tell the user:
When implementation shows the spec was wrong — and it will — update the spec first, then continue. Never let the code and the spec disagree silently. That is ordinary prompt-driven development with extra files.
Revision is where numbering gets wrecked, so:
R4.9a between R4.9 and R4.10 — so every
existing citation stays valid.Re-run spec-check after revising. The checks for identifier order,
section alignment, and dangling references exist because revision is exactly
when those break.
What SKILL.md sets; muted values are Claude Code's defaults
opusmediumnpx claudepluginhub luis-mc/dev-standards --plugin luismc-docs13 skills in this plugin
/design-system-setupSet up and version a project's design system in docs/design-system (DOCSPEC section 15): UX rules, tokens, components, the review gallery and guard tests. Use to start, version, approve or promote a design system, add UX rules or tokens, or build the review gallery./docs-checkCheck a project's docs against DOCSPEC and the code: layout, front matter, links, Source lines, the code-to-doc map, generated files, docs/work, the design system and freshness. Use before finishing a task that changed behaviour, before a pull request, or when asked whether the docs are true./docs-indexBuild the browsable docs: docs/index.html with search, the site in docs/_site, features/index.md, decisions.md, docs-map.json and llms.txt. Use when docs changed, when a docs check says a generated file is stale, or to vendor Mermaid for offline diagrams.Other plugins' skills for the same job