Skip to content
Back to skills

Semantic Markdown Writer

ASecurity

Create and edit Semantic Markdown (.smd) documents (PRDs, ADRs, RFCs/design docs, runbooks, API references, status reports, meeting notes, postmortems, release notes, OKRs, onboarding guides, test plans, PR descriptions, specs and plans) with templates and a validator that fixes mistakes. Use it whenever the user asks to write, draft, create, convert, restructure or update a .smd file, asks for a spec/PRD/ADR/runbook/status report "in smd" or "semantic markdown", wants a Markdown doc converte...

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 5, 2026
ai-agentsgonodegitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add bislink360/semantic-markdown --skill semantic-markdown-writer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Semantic Markdown Writer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Semantic Markdown Writer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bislink360-semantic-markdown-writer/badge)](https://www.skillsdirectory.com/skills/bislink360-semantic-markdown-writer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: semantic-markdown-writer
description: Create and edit Semantic Markdown (.smd) documents (PRDs, ADRs, RFCs/design docs, runbooks, API references, status reports, meeting notes, postmortems, release notes, OKRs, onboarding guides, test plans, PR descriptions, specs and plans) with templates and a validator that fixes mistakes. Use it whenever the user asks to write, draft, create, convert, restructure or update a .smd file, asks for a spec/PRD/ADR/runbook/status report "in smd" or "semantic markdown", wants a Markdown doc converted to .smd, or wants a document that both people and AI agents will read.
---

# Writing Semantic Markdown (.smd)

`.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).

## Workflow

1. **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.

2. **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.

3. **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.**

4. **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.

## Spend tokens on meaning

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.

## Rules you must follow

1. **Front matter first:** `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`).
2. **Blocks** are `:::name{attrs} Title` … `:::`. Attributes go directly after the name, no space. A bare `:::` closes the innermost block. Write outer containers with more colons (`::::tabs`).
3. **Only known names.** Blocks: `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`.
4. **Values exactly as specified:** decision `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`).
5. **Named colors only** (red orange amber yellow green teal cyan blue indigo purple pink gray muted accent) unless a brand hex is required.
6. **Tasks:** `- [ ] Verb-first task :priority[P1] @owner :due[2026-10-15]`, one owner where possible.
7. **Code:** give fences a language; embed real source with `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`).
8. **Diagrams:** ```` ```mermaid ```` with a valid first line (`flowchart LR`, `sequenceDiagram`, `gantt`, …).
9. **Facts that repeat** (version, product name, date) go in the front matter once and appear as `{{version}}`. Quote versions (`version: "2.10"`; `syntax/inline.md`).
10. **Text shows as written:** straight quotes stay straight (type `—` 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`).

## Semantic metadata and completion checks

- **Use semantic directives consistently in prose, lists and table cells.** Encode structured priority, status, due-date and progress values with `: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.
- **Preserve meaning and legitimate literals.** Do not invent a priority, date, status or progress value. Keep quoted source text, code and syntax explanations literal; ordinary mentions of a date or the word "open" do not automatically need directives.
- **Check semantic completeness after validation.** Inspect structured fields, especially table columns, for plain labels that should be directives. Zero validation errors alone does not establish semantic completeness. When presentation matters, inspect a rendered preview or export (`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.

## Writing for both audiences

`references/style-guide.md` covers this in depth. In short:

- **Meaning over decoration.** Use `:::warning`, `:::danger` or `:::decision` for things that matter. Color must never be the only signal.
- **Hard constraints for implementers go in one `:::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.
- **Narrative, history and research go under `## 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.
- **Never let token savings hide an instruction agents need.** Keep operative instructions, applicable constraints, prerequisites and agent-relevant dangers outside `{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`).
- **Keep what you hide on purpose.** A diagnostic only points at a hidden rule; you decide whether agents need it. Don't promote every hidden rule, and don't move content the user didn't ask you to change.
- **Unresolved decisions go in `:::question`**, with who decides and by when; the interim fallback goes in the `:::agent` block.
- **Requirements, constraints and acceptance criteria get their own blocks with ids** (`:::requirement{#R1}`, `:::constraint{#C1 scope=document}`, `:::acceptance{#AC1 verifies=R1}`), not tables. See `references/syntax/requirements.md`.
- **When a document is under review, propose changes as suggestions** (`smd review suggest <file> <id> --text … --by …`) instead of editing reviewed text. See `references/syntax/review.md`.
- **Headings name the content** ("Requirements", "API", "Rollout") because agents select sections by heading.

Files in this skill

  • SKILL.md6.6 KB
  • assets/templates/adr.smd1.1 KB
  • assets/templates/api.smd1.6 KB
  • assets/templates/meeting-notes.smd481 B
  • assets/templates/okrs.smd2 KB
  • assets/templates/onboarding.smd2.2 KB
  • assets/templates/plan.smd1.8 KB
  • assets/templates/postmortem.smd2.1 KB
  • assets/templates/pr-description.smd1 KB
  • assets/templates/prd.smd1.6 KB
  • assets/templates/release-notes.smd1.4 KB
  • assets/templates/rfc.smd1.1 KB
  • assets/templates/runbook.smd1.3 KB
  • assets/templates/spec.smd2.1 KB
  • assets/templates/status-report.smd766 B
  • assets/templates/tasks.smd1.6 KB
  • assets/templates/test-plan.smd2.4 KB
  • references/style-guide.md4.5 KB
  • references/syntax.md1.4 KB
  • references/syntax/basics.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.