/agent-skills:plain-writingfrom agent-skills
Writing rules for prose that ships with the code or that other agents read. Use when writing or editing code comments and doc blocks, commit messages, pull request titles and descriptions, review comments, issues, changesets, release notes, documentation, ADRs, interface text (labels, captions, hints, empty states), or roadmap briefs and outcomes. Keeps text short, plain, dense with facts, free of metaphors, stock phrases and em-dashes, and easy for both people and agents to scan. Includes a checker script and an optional hook that blocks commits and PRs with violations.
Ships in agent-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.
Read when SKILL.md points to them; scripts run unread.
Write text that a person can read in one pass and an agent can act on without guessing. Both readers want the same thing: the fact they need, early, in exact words, with nothing to skip over.
Apply this to any prose that ships with the code or that another agent will read:
seamless, robust, leverage, powerful, under the hood). They take space and say nothing specific.bench:render suite", not "significantly faster". Say how it was measured.JavaScript. Leave it out, or name the specific thing instead, such as the file type (.js) or the code block language (js).Before writing, look at how the repo already writes:
git log -20 --format=%s for the commit subject style..changeset/, CHANGELOG.md or release notes for the changelog style.Match those conventions. When a convention conflicts with a rule above:
Briefs, outcomes, review comments and PR descriptions are often read by another agent with none of your context. The rules above still apply, with these additions:
as discussed, the issue above or see conversation. Restate the fact or link to the file that holds it.Code comments. See "Code comments" below.
Interface text. See "Interface text" below.
Commit messages. Use the repo's convention, such as type(scope): summary. Keep the summary in the imperative and under 72 characters. Put extra detail in the body as a list of sentences.
Pull request descriptions. Use these sections, and drop any that do not apply:
<One or two sentences: what changes and why.>
## Changes
- <one sentence per change>
## Proof
- Fails on `<base>`: `<command>` (<result>)
- Passes on this branch: `<command>` (<result>)
## Roadmap
- <node id and roadmap path, or "none">
## Cost
- <bundle size, runtime, dependencies, migrations; numbers where measured>
## Risk
- <what could break, and how it is covered>
Review comments. One problem per comment. State the problem, the evidence (file and line, a failing command, a number), and what would resolve it. Mark nits as nits.
Issues. Start with what happens and what should happen. Then the steps to reproduce, as a numbered list with exact commands. Then the environment.
Changesets and release notes. Write one or two sentences a user of the package understands. Describe the visible effect, not the internal refactor. The changesets skill has the bump rules.
Documentation. Lead with the sentence the reader needs most. Use lists for steps and options. Show a short example instead of describing one.
Decision records. Context, decision, consequences, alternatives. Each as short lists. Put the decision in the first sentence of its section.
A comment earns its place by saying something the code cannot. Write it short, write the reason, and stop.
// Avoid: says what the line says
// Loop over every unit on the field and add it to the list
for (const unit of battle.units()) { ... }
// Prefer: says what a reader would get wrong
// Copied first: the effect adds units mid-iteration, and a live
// view would visit whatever it added
for (const unit of [...battle.units()]) { ... }
One label per thing. The layout says the rest. Where a control sits, what it sits beside and how it is grouped already tell the user what it is for. A second line that repeats that in words is one more thing to read before the screen can be used.
Bid button beside a price needs no "Place a bid on this item" under it.What still gets words:
aria-label.Run the checker on what you wrote:
python3 <skill>/scripts/check_prose.py FILE... # Markdown and text
python3 <skill>/scripts/check_prose.py --comments FILE... # comments in source files
python3 <skill>/scripts/check_prose.py --commit origin/main..HEAD
echo "text" | python3 <skill>/scripts/check_prose.py -
python3 <skill>/scripts/check_prose.py --list # all rules and phrases
Errors (dashes, stock phrases, metaphors from the list, wordy phrases, long commit subjects) must be fixed. Warnings (long sentences, filler, hedges, size claims without numbers, semicolons) are worth a look. The checker skips code blocks and inline code.
The checker cannot find every metaphor. After it passes, reread once and ask of each sentence: does it say what the thing does, or what it is like?
Then a last pass:
scripts/hook.py is a Claude Code PreToolUse hook. It checks the text of git commit -m/-F and of gh pr and gh issue titles and bodies before the command runs. Set PLAIN_WRITING_HOOK=block to stop commands whose text has errors, or warn to only log them. It does nothing when the variable is unset. The plugin registers the hook. With a manual install, add it to settings.json yourself.
Avoid:
// This helper walks the module graph — collecting every reachable binding —
// so that later passes can decide what is safe to drop.
Prefer:
// Walks the module graph and collects every reachable binding.
// Later passes use this to decide what is safe to drop.
Avoid a changeset like:
Refactored the optimize pipeline internals to introduce a new reachability
pass — this unlocks better tree-shaking across all targets.
Prefer:
Dead code is now removed from compiled output.
Unused imports and unreferenced locals are dropped.
Avoid a metaphor, however small:
// The cache is the gatekeeper: nothing reaches the network without its
// blessing.
The scheduler now breathes between batches, so the queue never drowns.
Prefer plain terms:
// Every network request is served from the cache first, and only a miss
// reaches the network.
The scheduler waits 50ms between batches, so the queue has time to drain.
Avoid vague size claims:
This makes rendering significantly faster and the bundle much smaller.
Prefer numbers with their source:
Rendering 1,000 rows takes 41ms instead of 63ms (`pnpm bench render`).
The client bundle shrinks from 14.2kB to 12.9kB gzipped.
Avoid text that needs the conversation to make sense:
Fixed the issue we talked about. Also did the other thing from before.
Prefer text that stands alone:
Fix session tokens expiring one hour early in UTC+1 and later.
Also remove the unused `legacyAuth` flag from `config.ts`.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lxsmnsyc/agent-skills --plugin agent-skills17 skills in this plugin
/changesetsWrite the changeset for a change in a repo that releases with changesets (a `.changeset/` folder exists). The bump level follows one question, whether the thing existed before: patch for changed behavior, minor for something new, major only with the maintainer's approval. Use this skill whenever finishing a change, opening a pull request or reviewing one in such a repo, even when nobody asks for a changeset, and when the user asks about bump levels or changelog entries./docs-siteMethod for planning, writing and maintaining a documentation site for a library, CLI, framework, API or app. Splits the site by what the reader needs (learn, do a task, understand, look up) into getting started, guides, concepts and reference, plus examples, troubleshooting, migration and a glossary. Gives each page type a fixed template, including the feature page (what it is, why, how it works, usage, options, limits, related) and the API reference entry. Covers navigation, code examples that run, keeping docs in step with the code, versioned docs and pages agents can read. Includes page templates, a checker script for page structure, links, orphan pages and code fences, and a review checklist. Use this skill whenever writing, restructuring, auditing or reviewing documentation, a docs site, a docs page, a README that has grown into docs, API reference, a getting started page, a migration guide or the docs part of the website/ folder, even if the user does not say "docs site". Load plain-writing with it./fewer-questionsDecide whether a question to the user is worth asking before asking it. Skip a question whose options give the answer away, such as one real option next to declines or weaker copies. Skip a question where "no" leaves nothing to do, such as "Should I proceed?" or "Is the plan ready?", and do the work the user asked for. Ask only when each answer leads to different work, or before an action that is hard to undo, reaches outside the machine or costs money. Includes an optional hook that blocks yes-or-no and proceed questions in AskUserQuestion. Use this skill whenever about to ask the user a question, call AskUserQuestion, offer options, or end a turn with "should I...?", "do you want me to...?" or "let me know if...", even if the user never says "questions"./goal-debateWeigh a goal against what it costs before anyone plans or builds it. A proponent agent proposes the idea and expands it, an opponent agent attacks its weak points and costs, and the orchestrator judges each claim with evidence until the two settle on the structure with the best value for its cost. Costs are weighed on three axes, device capability (storage, RAM, compute), time to deliver and token spend, plus any axis the plan needs. Prior art (papers, public repos, the lab's past attempts) counts as evidence, small capped proofs settle feasibility claims, and research goals end with a hypothesis and success threshold fixed before any run. Unknowns that cannot be measured go to the user as questions. It also weighs an existing roadmap that grows faster than it ships, and proposes which nodes to drop, park or merge. Use this skill when the user wants to evaluate, challenge, debate or sanity-check a goal, idea, proposal, ADR or roadmap, wants to cut scope, asks whether something is worth building or researching, whether it has been done before, or whether it is feasible on their machine, in their time or within a token budget, or before parallel-roadmap plans a large or costly goal, even if they never say "debate"./issue-authorWrite and open GitHub issues that a maintainer can act on, such as bug reports, feature requests and diagnosis handoffs, in the user's repo or someone else's. Searches open and closed issues and pull requests for duplicates first, follows the repo's own issue templates and labels, reproduces a bug on the latest release and on every release line the repo still maintains, and lists which lines it affects. Opens no issue for a bug that shows only in unmaintained versions, and none for a security problem, which goes to a private report or the security-fix skill instead. Use this skill whenever the user asks to open, file, write, draft or report an issue or a bug, when root-cause returns a fix-large verdict, or when pr-author finds a bug too large for a fix PR, even if they do not say "issue"./landing-pageRules for landing pages, homepages and marketing sites of any product, such as a library, CLI, web app, mobile app, API or physical product. The page shows a demo of the product or its effect, with an animated or interactive hero visual chosen from designs the author reviews. It sells the benefit and the difference from competitors instead of describing features. It keeps text short and lets visuals carry the page. It picks the selling points the visitor cares about, uses playful animation or interaction that shows what the product does, and shows who uses it when that proof is strong enough. Includes steps for each kind of product, a word count script and a review checklist. Use this skill whenever designing, writing, building or reviewing a landing page, product homepage, marketing site, the website/ folder of a repo, or a hero section, even if the user does not say "landing page". Load ui-style with it. This skill overrides only the ui-style rule against idle and first-paint animation. Every other ui-style rule still applies.Other plugins' skills for the same job