/semantic-markdown:semantic-markdown-writerfrom Semantic Markdown
Creates and edits Semantic Markdown (.smd) documents with templates for PRDs, ADRs, RFCs, runbooks, and more. Includes a validator that fixes formatting mistakes.
Ships in Semantic Markdown. 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.
.smd is Markdown plus a small, validated vocabulary: callouts, decisions, risks, API blocks, tasks with owners and due dates, KPIs, diagrams, and audience blocks. People read it in a styled preview, AI agents through a compact "agent view". Write for both.
Tool (Node 22+, no install): node <this-skill-dir>/scripts/smd.cjs <command> (or smd if it's on PATH).
Start from a template when one fits: smd init docs/name.smd --template prd --title "Saved searches" (today's date filled in; raw files in assets/templates/).
| Request | Template |
|---|---|
| Product requirements, feature spec | prd |
| Architecture/technical decision | adr |
| Design proposal, RFC, tech spec | rfc |
| On-call / operational procedure | runbook |
| Endpoint reference | api |
| Weekly/monthly update | status-report |
| Meeting summary with actions | meeting-notes |
| Incident review | postmortem |
| Release announcement, upgrade guide | release-notes |
| Objectives and key results | okrs |
| New team member guide | onboarding |
| Test scope, strategy and cases | test-plan |
| Pull request description | pr-description |
| Spec-driven work for an agent: spec → plan → tasks | spec, plan, tasks |
Otherwise start from front matter + headings. For a status report on work tracked in .smd docs, draft it with smd report docs/ --since 2026-09-01 -o docs/status.smd --title "Checkout squad" (or --since <git-ref>): tasks done and added, open and overdue tasks, decisions and high-impact risks, each linked. Then write the summary and cut what doesn't matter.
Fill it with real content. Delete sections that don't apply; never leave placeholders such as —, @owner or YYYY-MM-DD. If you don't know a value, ask, or leave a :::question that says what's missing.
Format, validate and fix: smd fmt docs/name.smd, then smd validate docs/name.smd --fix. fmt changes only layout. --fix repairs what has one clear repair (typos in names and values, colors, yes/no booleans, date formats, unclosed ::: or fences at the end). Fix the rest yourself from each error's line:column, message and rule code. A document is done only at 0 errors.
Check what agents will see: smd agent docs/name.smd --brief, then a partial view of the sections an agent would read (--section "Requirements"). Look at what each view leaves out, and at any Not satisfied … for people only line: a required dependency that agents can't see. If it's long, move narrative into {agent=skip} sections or :::human blocks, never an instruction agents need.
Output tokens cost about 5× input tokens. Write meaning: decisions, risks, tasks, :::agent rules, {agent=skip} on narrative. Semantic directives such as priority and status encode meaning; use them when applicable. Leave optional colors, decorative badges and layout (tabs, columns, cards) to people unless asked. The syntax reference is split by topic: read references/syntax.md (a short index), then only the topic file for the construct you're unsure of, and use smd validate --fix to catch syntax errors. Validation does not detect every missing semantic annotation.
smd: 2, title, a precise one- or two-sentence summary, status (draft · review · approved · deprecated · archived), owners, updated (YYYY-MM-DD). Don't repeat the title as a # H1; start at ##. Another language adds lang: (de, es, fr, ja, pt, zh, or a tag like pt-BR).:::name{attrs} Title … :::. Attributes go directly after the name, no space. A bare ::: closes the innermost block. Write outer containers with more colons (::::tabs).note info tip success warning danger question details card box tabs/tab columns/column steps timeline figure glossary quote decision risk risk-matrix changelog api agent human include requirement constraint acceptance assumption evidence non-goals example limitation deprecated comment suggestion trace-matrix dependency-graph doc-health alternatives/option compare/before/after metrics schema milestone gate incident. Inline: :badge :status :priority :due :metric :progress :kbd :mention :ref, and in spec v2 :depends :since :file :http :sparkline :flag :role.status proposed · accepted · rejected · superseded · deprecated; risk impact/likelihood low · medium · high · critical; api method GET, POST… and a required path; priority P0–P4; dates YYYY-MM-DD. Figures, glossary, quotes and changelogs have their own forms (syntax/figures-and-notes.md, syntax/project.md).- [ ] Verb-first task :priority[P1] @owner :due[2026-10-15], one owner where possible.file="../src/x.ts" lines="10-24" (empty body) instead of pasting it. Shared text goes in one file, pulled in with :::include (syntax/developer.md).```mermaid with a valid first line (flowchart LR, sequenceDiagram, gantt, …).{{version}}. Quote versions (version: "2.10"; syntax/inline.md).— or add typography: true), only https://…, www.… and e-mail addresses become links, and any :name[…] is a directive (\:name[…] is text; see syntax/spec-v2.md).:priority, :status, :due and :progress. A Priority column must contain :priority[P1], not plain P1; use :status[Open] for a status cell and :due[2026-10-15] for a due-date cell. Follow references/syntax/inline.md for progress syntax and its basis. Keep front-matter values and typed-block attributes in their own syntax.smd export FILE --to html -o PREVIEW.html) and confirm the intended semantic elements are rendered. State whether you checked generated markup or visually inspected the preview.references/style-guide.md covers this in depth. In short:
:::warning, :::danger or :::decision for things that matter. Color must never be the only signal.:::agent block near the end. Agents receive an agent-visible one even when they read a single section. One inside an {agent=skip} section or a :::human block is hidden with it.## Background {agent=skip} or in :::human. People still see it; agents never do, even when a read names that section, and no outline or task, risk or decision list mentions it. A :::danger, :::constraint, :::requirement or :::agent block inside it stays hidden too (audience/rule-in-skip and container/agent-in-skip warn), because the audience marker wins over the block kind.{agent=skip} and :::human. Split a short visible warning or rule from its long human-only rationale instead of exposing the whole background. Use the ids, scope, applies-to and depends-on the syntax already has; there is no severity syntax, and agent=skip has no other form (no agent=skip true).:::question, with who decides and by when; the interim fallback goes in the :::agent block.:::requirement{#R1}, :::constraint{#C1 scope=document}, :::acceptance{#AC1 verifies=R1}), not tables. See references/syntax/requirements.md.smd review suggest <file> <id> --text … --by …) instead of editing reviewed text. See references/syntax/review.md.assets/templates/adr.smd (opens in a new tab)assets/templates/api.smd (opens in a new tab)assets/templates/meeting-notes.smd (opens in a new tab)assets/templates/okrs.smd (opens in a new tab)assets/templates/onboarding.smd (opens in a new tab)assets/templates/plan.smd (opens in a new tab)assets/templates/postmortem.smd (opens in a new tab)assets/templates/pr-description.smd (opens in a new tab)assets/templates/prd.smd (opens in a new tab)assets/templates/release-notes.smd (opens in a new tab)assets/templates/rfc.smd (opens in a new tab)assets/templates/runbook.smd (opens in a new tab)assets/templates/spec.smd (opens in a new tab)assets/templates/status-report.smd (opens in a new tab)assets/templates/tasks.smd (opens in a new tab)assets/templates/test-plan.smd (opens in a new tab)references/style-guide.md (opens in a new tab)references/syntax.md (opens in a new tab)references/syntax/basics.md (opens in a new tab)references/syntax/callouts.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bislink360/semantic-markdown --plugin semantic-markdown2 skills in this plugin