Skip to content
Skills Library
Documents & office · Writing

docs-author

/docs-author

Write Markdown documentation that picks the right Diátaxis type (tutorial, how-to, reference, background), derives matching title and summary fragments, and passes a global-English and anti-slop polish. Trigger when the user asks to "draft a doc", "write a how-to", "draft a reference", "write a background page", "rewrite this in the house voice", "summary for this page", "title for this page", "polish for non-native readers", "this reads like AI", "remove AI tells / slop", "what type of doc is this", or "polish the README or landing page". Skip this skill for content-rule fixes (line length, h

Repository
mdsmith ↗
Licence
MIT
Last repository change
04.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 04.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Write Markdown documentation that picks the right Diátaxis type (tutorial, how-to, reference, background), derives matching title and summary fragments, and passes a global-English and anti-slop polish. Trigger when the user asks to "draft a doc", "write a how-to", "draft a reference", "write a background page", "rewrite this in the house voice", "summary for this page", "title for this page", "polish for non-native readers", "this reads like AI", "remove AI tells / slop", "what type of doc is this", or "polish the README or landing page". Skip this skill for content-rule fixes (line length, h

Triggers from the description

draft a docwrite a how-todraft a referencewrite a background pagerewrite this in the house voicesummary for this pagetitle for this pagepolish for non-native readers

Arguments

/docs-author [draft | revise | fragments]
Original author description

Write Markdown documentation that picks the right Diátaxis type (tutorial, how-to, reference, background), derives matching title and summary fragments, and passes a global-English and anti-slop polish. Trigger when the user asks to "draft a doc", "write a how-to", "draft a reference", "write a background page", "rewrite this in the house voice", "summary for this page", "title for this page", "polish for non-native readers", "this reads like AI", "remove AI tells / slop", "what type of doc is this", or "polish the README or landing page". Skip this skill for content-rule fixes (line length, h

How it works

  1. When to run this skill
  2. Modes
  3. The compass — pick one of four types
  4. Marketing surfaces — README and landing page
  5. Workflow
  6. Fragment formulas
  7. Global-English pass
  8. Anti-slop pass
  9. Tensions to know up front
  10. Project conventions to respect
Original SKILL.md headings · 491 lines, 2,566 words
SKILL.md preview
---
name: docs-author
description: >-
  Write Markdown documentation that picks the right
  Diátaxis type (tutorial, how-to, reference,
  background), derives matching title and summary
  fragments, and passes a global-English and
  anti-slop polish. Trigger when the user asks to
  "draft a doc", "write a how-to", "draft a
  reference", "write a background page", "rewrite
  this in the house voice", "summary for this
  page", "title for this page", "polish for
  non-native readers", "this reads like AI",
  "remove AI tells / slop", "what type of doc is
  this", or "polish the README or landing page".
  Skip this skill for content-rule fixes
  (line length, heading hygiene, readability) —
  those are enforced by `mdsmith check`.
user-invocable: true
argument-hint: "[draft | revise | fragments]"
allowed-tools: >-
  Bash(mdsmith:*),
  Bash(go run ./cmd/mdsmith:*),
  Bash(ls:*),
  Bash(find:*),
  Bash(grep:*),
  Bash(git ls-files:*)
---

mdsmith's docs live in four homes that match the
[Diátaxis](https://diataxis.fr/) compass:
`docs/tutorials/` (tutorial),
`docs/guides/` (how-to),
`docs/reference/` (reference), and
`docs/background/` (explanation). Each type has a
different audience in a different mode — and a
different voice that follows from that. This skill
picks the type, writes to its rules, and emits the
fragments the catalog and LSP already consume.

Two filters run on every draft on top of the
type-specific rules:

- **Global English** — short sentences, active
  voice, controlled vocabulary, no idioms — so a
  non-native reader can parse the page on a first
  pass.
- **Anti-slop** — block the vocabulary, phrasing,
  and structure patterns that read as
  LLM-generated. The catalog lives in
  `slop-patterns.md` (sibling file).

## When to run this skill

- Drafting a new doc page from a brief or a stub.
- Revising an existing page that reads as
  promotional, padded, or AI-shaped.
- Generating fragments — `title`, `summary`, link
  text, hover blurb — for a page that lacks them
  or whose fragments do not match the page type.
- Auditing a page whose type is unclear (a
  reference that started explaining, a how-to that
  drifted into background).

Skip this skill for line-length, heading-style,
table alignment, or other surface fixes — run
`mdsmith fix` for those.

## Modes

Pass the mode as the skill argument.

- **`draft`**. Take a brief plus an optional
  target path, classify the type via the compass,
  and write a new file under the matching
  `docs/<area>/` subtree.
- **`revise`** (default). Take an existing file,
  re-classify it, rewrite to the type's voice and
  shape, then run the global-English and
  anti-slop passes.
- **`fragments`**. Read a file's body and emit
  `title:` and `summary:` front matter plus
  candidate link text and hover blurb. No body
  edits.

Default to `revise` when no argument is given.

## The compass — pick one of four types

Apply two questions to every page. The answers
fix the type and the voice.

|                            | **Action** (doing) | **Cognition** (thinking) |
| -------------------------- | ------------------ | ------------------------ |
| **Acquisition** (studying) | tutorial           | background               |
| **Application** (working)  | how-to             | reference                |

- *Action or cognition?* — is the reader trying
  to **do** a thing, or trying to **understand** a
  thing?
- *Acquisition or application?* — is the reader
  **studying** (no prior competence assumed) or
  **at work** (already competent, has a goal)?

If the page is mixing two quadrants, split it.
One page, one type.

A README, a landing page, or the feature overview
is not a compass type — it sells the tool rather
than documents it. Those surfaces have their own
rules in the Marketing surfaces section below.

### Tutorial — learning-oriented (acquisition × action)

- **Audience mode**: a learner with no prior
  encounter. The author drives.
- **Voice**: narrative, second person, present
  tense. Concrete steps with a single, verifiable
  outcome at the end.
- **Title pattern**: activity-framed —
  `Get started with mdsmith`, `Your first mdsmith
  rule`. Never a noun phrase.
- **Shape**: prerequisites → numbered steps →
  outcome → next steps.
- **Banned**: explanation of why; API
  exhaustiveness; alternative paths.
- **Home**: `docs/tutorials/`.

### How-to guide — task-oriented (application × action)

- **Audience mode**: a competent practitioner who
  arrived with a specific goal.
- **Voice**: imperative. Goal-named. Minimal
  scaffolding.
- **Title pattern**: bare-infinitive verb phrase —
  `Install mdsmith on macOS`, `Migrate from
  markdownlint`.
- **Shape**: one goal → ordered steps → a verified
  end state.
- **Banned**: teaching the reader; reference
  tables; explanations of design.
- **Home**: `docs/guides/`.

### Reference — information-oriented (application × cognition)

- **Audience mode**: a working practitioner who
  needs one fact, fast. Will scan, not read.
- **Voice**: neutral, declarative, exhaustive. No
  narrative. No opinions. No "you".
- **Title pattern**: canonical noun phrase or
  identifier — `` `mdsmith check` ``, `Glob
  patterns`, `Section schema`.
- **Shape**: identifier → one-line definition →
  parameters/fields table → exit codes / errors →
  examples → see also.
- **Banned**: rhetorical framing; tutorial steps;
  history; rationale.
- **Home**: `docs/reference/`.

### Background — understanding-oriented (acquisition × cognition)

- **Audience mode**: a reader at study, building
  a mental model. Willing to follow prose.
- **Voice**: discursive, may compare alternatives
  and discuss trade-offs. Still concrete.
- **Title pattern**: noun phrase explaining the
  thing — `How generated sections work`,
  `Placeholder grammar`.
- **Shape**: framing → concept → how it relates
  to other concepts → when it matters → links to
  reference and how-to.
- **Banned**: ordered steps; CLI flag tables;
  goal-naming.
- **Home**: `docs/background/`.

## Marketing surfaces — README and landing page

The four compass types describe docs pages. A
README hero, the website home page, and the shared
feature overview do a different job: they sell the
tool to someone still deciding whether to try it.
Different mode, different rules. These come from a
2026 read of the mise (`jdx/mise`) README and
landing page — the strongest peer example —
adapted to mdsmith.

- **Audience mode**: a skimmer who has not
  committed. One screen to earn the install.
- **Voice**: concrete and claim-first, but still
  global English and still anti-slop.
- **Home**: `README.md`, `website/content/`, and
  the shared overview `docs/features/index.md`.

### Rules

1. **Lead with the payoff, not the mechanism.**
   The first line names the outcome the reader
   gets, not how it works. mise opens with *"Your
   dev env, already prepped."*, not "a polyglot
   tool manager". mdsmith leads with `Mark*down*,
   smithed.` and the eyebrow *Markdown as a single
   source of truth*.
2. **One controlling metaphor, used everywhere.**
   mise rides *mise en place* through every
   section (The Idea, The Menu, The Recipe).
   mdsmith owns the smith — forge, anvil, hammer,
   temper. Pick one; never mix metaphors.
3. **Show, do not only tell.** A 60-second
   Quickstart with real command output beats a
   feature list. Paste what the tool actually
   prints; never fabricate output.
4. **One concrete number, not adjectives.** mise:
   "900+ tools, 1 toml file". mdsmith: "checks its
   Markdown in ~0.5 s, ~10x faster than Node
   markdownlint", linked to a reproducible benchmark.
5. **Short pitch, then detail.** Three to five
   benefit-named groups, one line each, before any
   long card list. Never open with the full
   feature dump.
6. **One blessed install, the rest behind a
   link** — unless install breadth is itself the
   pitch. mdsmith ships through many channels and
   treats that as a feature, so it keeps the full
   list.
7. **Earn trust with proof, not praise.** Badges,
   a sponsor, a star count, a contributor graph
   are real signals. Drop "blazingly fast" and
   "production-ready".
8. **Dogfood as proof.** When the tool maintains
   its own README — mdsmith generates the command
   table and feature list with `<?catalog?>` and
   `<?include?>` — say so once. The artifact is
   the demo.

### mdsmith specifics

- Hero copy is single-source. The slogan, eyebrow,
  lead, and tagline live in
  `docs/brand/messaging.md`. `mdsmith-release
  sync-messaging` propagates them to the generated
  fragments and every other surface, and CI fails
  on drift. Edit the source and run sync-messaging;
  never hand-edit a fragment or paste copy into the
  README.
- The README `<?include?>`s those fragments and
  `docs/features/index.md`, so changing the message
  once updates every surface that embeds it.
- Respect the README `max-file-length` cap. Trim
  secondary prose before proposing a higher cap —
  the cap is owner-owned config in `.mdsmith.yml`.

### Passes still apply

Marketing copy gets the global-English and
anti-slop passes too; it is the most slop-prone
writing in the repo. One allowance: a single
controlling metaphor and one strong, true claim
belong here, where reference prose would cut them.

## Workflow

### draft

1. Read the brief. If the type is not stated,
   apply the compass and name the type back to
   the user.
2. Pick the target path under
   `docs/<area>/<slug>.md`. The slug must satisfy
   the kind's `path-pattern:` if one is declared.
3. Write the front matter first — `title`,
   `summary` — using the per-type formulas in
   `## Fragment formulas` below.
4. Write the body to the type's shape. Lean on
   existing pages in the same area as voice
   templates.
5. Run the global-English pass, then the
   anti-slop pass (see below).
6. Run `mdsmith check <path>` and fix anything it
   surfaces.

### revise

1. Read the file. Classify the type via the
   compass.
2. If the file mixes types, ask the user before
   continuing. Splitting is a structural change,
   not a copy edit.
3. Rewrite to the type's voice and shape.
   Preserve the file's facts; replace the
   prose around them.
4. Refresh fragments (`title`, `summary`) if the
   re-classification changed the type.
5. Run the global-English pass, then the
   anti-slop pass.
6. Run `mdsmith check <path>`.

### fragments

1. Read the file. Classify the type.
2. Read the file's resolved kind via `mdsmith
   kinds resolve <path>` (or read the kind body)
   to learn which front-matter keys its schema
   declares.
3. Derive `summary:` for every page using the
   per-type formula. Derive a body H1 candidate
   using the per-type title formula. Emit
   `title:` only when the kind schema declares
   it; emit `command:` for the `cli-command`
   kind.
4. Print three link-text candidates and one
   hover blurb (≤120 chars).
5. Patch the front matter if the user accepts;
   set or rewrite the H1 separately if needed.

## Fragment formulas

A page's `summary` is read three places: the
catalog row that lists it, the LSP hover that
previews it, and the search snippet that
surfaces it. All three modes are scanning, not
reading. Same formula for all three.

The formulas below are per-type because the
fragment carries the page's promise — and that
promise is type-specific.

### `summary` — one sentence, ≤ 25 words, ≤ 160 chars

- **Tutorial**: state the outcome — "Build your
  first mdsmith rule end to end, from failing
  test to green check."
- **How-to**: name the goal — "Install mdsmith
  on macOS, Linux, and Windows via npm, mise, or
  the GitHub release."
- **Reference**: name the surface and its
  contract — "CLI commands, flags, exit codes,
  and output format."
- **Background**: name the concept and what it
  resolves — "How generated sections work —
  markers, directives, and fix behavior."

Rules that apply to every type:

- Declarative. Not "this page covers…", not "in
  this guide we will…".
- One sentence. If two ideas need joining, the
  page is two pages.
- Concrete subject. No floating "it".
- Active voice.
- No marketing adjectives (powerful, seamless,
  comprehensive, robust, …).

### Page title — the body H1

mdsmith docs carry the page title as the first
body H1 and keep only `summary` in front matter
(see `internal/release/syncdocs.go`, which lifts
the H1 into `title:` when syncing to Hugo). So
`title:` front matter is only emitted when a
kind's schema declares it (e.g. CLI reference
pages use `command:` instead; some legacy pages
carry `title:`). The body H1 is the default
surface for the title.

The H1 still follows a per-type formula:

- **Tutorial**: activity-framed verb phrase.
- **How-to**: bare-infinitive verb phrase.
- **Reference**: canonical noun phrase or
  identifier; code-fenced if it is one.
- **Background**: noun phrase explaining the
  thing.

### Link text and hover

- **Link text**: never "click here", never the
  raw filename. Verb-led for how-to/tutorial;
  noun-led for reference/background.
- **Hover blurb**: same content as `summary`,
  capped at 120 chars for editor surfaces.

## Global-English pass

Run on every draft after the type-specific shape
is in place. The rules come from Simplified
Technical English ([ASD-STE100][ste]) and the
Plain Language standard
([ISO 24495-1:2023][iso24495]); they are tuned so
a non-native reader can parse on a first read.

[ste]: https://en.wikipedia.org/wiki/Simplified_Technical_English
[iso24495]: https://www.iso.org/standard/78907.html

- **One concept, one word.** Pick one of
  *configure / set up / set* per page and stick.
  No synonym shuffle.
- **Sentence cap.** ≤ 20 words in procedural
  text (how-to, tutorial, reference). ≤ 25 in
  background. Split when over.
- **Active voice by default.** Passive only when
  the agent is unknown or irrelevant.
- **Concrete subject.** No floating *it* or
  *this*; name the thing.
- **No idioms, no phrasal-verb-where-a-verb-works.**
  *Set up → configure. Find out → learn. Figure
  out → determine. Look into → investigate.*
- **Define jargon at first use** or link to a
  reference page that does.
- **Positive constructions.** *Disconnect before
  X* beats *do not stay connected during X*.
- **Parallel structure.** Lists and headings
  share a grammatical shape — all verb phrases,
  or all noun phrases, never mixed.
- **One sentence per line in source.** mdsmith
  wraps; the source line break does not.

## Anti-slop pass

The banned-word and opener lists from
`slop-patterns.md` ship as the built-in
`no-llm-tells` convention. Set `convention:
no-llm-tells` in `.mdsmith.yml` and MDS056 and
MDS055 enforce them in CI with no model in the
loop. This skill still owns the structural, tone,
and formatting passes. Those need context that a
substring check cannot provide.

Run after the global-English pass. The catalog
lives in `slop-patterns.md`. Load it, then walk
the draft against each category. The catalog
covers:

- **Vocabulary tells** — overused LLM words.
- **Phrasal tells** — set phrases.
- **Sentence openers** — banned at sentence
  start.
- **Structural tells** — rule-of-three garnish,
  the hedging seesaw, meta-narration.
- **Tone tells** — promotional, obsequious,
  padded.
- **Formatting tells** — bulleted lists with
  bolded label-and-colon openers used as the
  default rhythm; em-dash overuse.

Rewriting rules:

- **Catch the pattern, not the word.** Replacing
  *delve* with *explore* yields different slop.
  Recast the sentence so the word is not needed.
- **Plain replaces clever.** Drop padded
  qualifiers (*essentially, fundamentally,
  ultimately*) without substitution.
- **Cut meta-commentary.** "This document
  explains…" → delete and start with the actual
  content.
- **Per-type allowances** — bulleted lists with
  bolded openers are *allowed in reference*
  (parameter tables in list form), *flagged
  elsewhere* when used as default rhythm. The
  rule of three is *allowed* when the three
  items are genuinely the contents (e.g.
  `check`, `fix`, `lsp`).

## Tensions to know up front

- **Em dashes.** Allowed; capped. ≤ 1 per
  paragraph, ≤ 2 per page.
- **Hedging language** (*may, in some cases*).
  Allowed in background; restricted in how-to
  and reference where the answer must be
  definite.
- **Bulleted lists with bolded labels.** Allowed
  in reference, flagged elsewhere as default
  rhythm.

## Project conventions to respect

- **Front matter.** Every page carries `summary`.
  The page title lives in the body H1 by default;
  the release pipeline lifts it into `title:` when
  syncing to Hugo (`internal/release/syncdocs.go`).
  A page emits `title:` in front matter only when
  its kind schema declares it. CLI reference
  pages use `command` + `summary` (the
  `cli-command` kind). Plan files also carry
  `status`. Do not invent new keys without a
  schema entry.
- **Voice from CLAUDE.md.** Descriptions name
  *what data must satisfy what condition*. Name
  the inputs (front matter fields, glob, heading
  level) — not just the mechanism. Avoid vague
  verbs (*match, sync, reflect*) without saying
  what is checked against what.
- **Linter configuration.** Do not edit
  `.mdsmith.yml` to make a draft pass. Rewrite
  the draft.
- **Generated sections.** Do not edit content
  between `<?…?>` and `<?/…?>` markers. Edit the
  directive parameters or the source file, then
  `mdsmith fix`.

## Notes

- This skill writes prose; `markdown-audit`
  audits structure (kinds, schemas, catalogs).
  They compose: run `markdown-audit` first if the
  page's home or kind is wrong, then this skill
  for the writing.
- The compass is a course-correction tool, not a
  cage. Some pages legitimately straddle types —
  a how-to with a one-paragraph background
  preface, a reference with a worked example.
  The test is: does the audience-mode stay the
  same throughout? If not, split.
- For every push-back from the user ("that's
  intentional"), prefer leaving the prose alone
  over adding a per-page exception. The skill is
  advisory.
Files in this package (2)
  • SKILL.md 18 KB
  • slop-patterns.md 7 KB

Versions

The database has no other skills named docs-author.

Database snapshot: 13.11.2026 · package version 949776458705 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 85diataxis
    Write or review documentation using the Diátaxis framework. Use when the user asks for a tutorial, how-to guide, technical reference, explanation/conceptual doc, README, a documentation plan, or a review/audit of existing docs. Classifies the request into the right quadrant and…
  • 100diataxis
    Structure, classify, and write documentation using the Diátaxis framework. Use when writing docs, README files, guides, tutorials, how-to guides, API references, or organizing documentation architecture. Also use when asked to improve documentation, restructure docs, decide what…
  • 90diataxis
    按 Diátaxis 框架判定文档类型并写作或重组文档:教程(tutorial)、操作指南(how-to)、参考(reference)、解释(explanation)。当用户要写文档、整理文档、规划 README 或 docs 目录、拆分混乱文档,或提到 Diátaxis、教程、操作指南、参考文档、解释性文档时使用。
  • 90write-documentation
    Write software documentation structured by Diátaxis. Use when the user wants a tutorial, how-to guide, reference page, explanation doc, or user guide — "write docs", "document this", "we need a guide for X". Not for READMEs (write-readme) or docstrings (update-docstrings).
  • 100diataxis
    Author and restructure technical documentation with the Diátaxis framework — tutorials, how-to guides, reference, and explanation. Use when writing or reorganising docs, when a page mixes instruction with description or discussion, when deciding where a piece of content belongs,…
  • 100user-docs
    Write user documentation for a project by scanning its codebase — its UI screens and its public API/CLI — inferring what someone can actually do with it, and drafting brief, task-oriented docs to the Diátaxis standard (tutorial / how-to / reference / explanation). Handles both…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.