{"data":{"slug":"discovered-63cc8b58b057f4e230bee05f64f83c339adc5a6a8cd9243d","title":"Rjv Writing Skills","summary":"Write, review, or prune instructions agents read (SKILL.md and sibling files, AGENTS.md, CLAUDE.md). Owns trigger choice, steps and reference layout, leading words, completion criteria, pruning, house prose and testing a skill by running it. Use when creating, editing or auditing skills or fixing ignored instructions.","url":"https:\/\/skillshunter.net\/skills\/discovered-63cc8b58b057f4e230bee05f64f83c339adc5a6a8cd9243d","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-63cc8b58b057f4e230bee05f64f83c339adc5a6a8cd9243d","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-63cc8b58b057f4e230bee05f64f83c339adc5a6a8cd9243d.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-63cc8b58b057f4e230bee05f64f83c339adc5a6a8cd9243d\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The skill must be reached by the agent on its own, or by another skill. Model-invoked skills require a model-facing description. User-invoked skills require `disable-model-invocation: true` and a one-line human description. Ensure the description is under about 80 words and includes the leading word the user actually types (e.g., `plan`, `review`, `spec`).","instructions":"---\nname: rjv-writing-skills\ndescription: \"How-to: write, review or prune instructions agents read (SKILL.md and sibling files, AGENTS.md, CLAUDE.md). Owns trigger choice, steps and reference layout, leading words, completion criteria, pruning, house prose and testing a skill by running it. Use when creating, editing or auditing skills or fixing ignored instructions.\"\n---\n\n# Writing skills agents obey\n\nA skill is a hypothesis about agent behaviour. It makes the agent walk\nthe same process every run; the outputs still differ because every\ncontext differs. Write it for a fast colleague who has never seen this\nrepo, and judge it only by what agents do after reading it.\n\nPick the branch:\n\n- **Writing a new skill or doc**: walk steps 1 to 6 below.\n- **Reviewing or improving existing skills** (this repo or another\n  project's internal skills): read [`REVIEW.md`](REVIEW.md), which\n  applies these same steps as a checklist.\n- **Proving a skill works**: read [`TESTING.md`](TESTING.md).\n\n## 1. Trigger: who invokes it\n\nThe description is a context pointer. It sits in every session, so\neach word costs on every turn, and its wording decides when the agent\nopens the skill.\n\n| The skill must be reached... | Make it |\n|---|---|\n| by the agent on its own, or by another skill | model-invoked: keep a model-facing description |\n| only when the user types its name | user-invoked: `disable-model-invocation: true`, one-line human description |\n\nModel-invoked skills cost context load and can be skipped even when\nthey fit. User-invoked skills cost the user's memory. Choose per skill,\nand say which in one line of the commit.\n\nA model-invoked description:\n\n- opens with what the material is, using the leading word the user\n  actually types (`plan`, `review`, `spec`);\n- lists one trigger per distinct case; synonyms for the same case are\n  one trigger;\n- says where a sibling skill owns the neighbouring case\n  (\"in Codex use rjv-subagents-codex\");\n- stays under about 80 words.\n\nA must-have skill that agents skip has a weak pointer. Sharpen the\ndescription first; paste its content into always-loaded instructions\nonly if a test run still misses it.\n\nDone when each trigger case appears once and the sibling that owns the neighbouring case is named.\n\n## 2. Structure: steps and reference\n\nEvery skill is made of **steps** (what the agent does, in order) and\n**reference** (rules, definitions, templates consulted while doing\nit). Place each piece on this ladder:\n\n1. step in SKILL.md\n2. reference in SKILL.md, used by every branch\n3. reference in a sibling file, reached by a pointer line, used by\n   some branches only\n\nThe test for rung 3 is branching: inline what every run needs, move\nbehind a pointer what only some runs reach. A pointer line names the\nfile and the condition: \"When the change touches money, read\n`CASTING.md`.\" Keep a concept's definition, rules and caveats under one\nheading so reading one part brings its neighbours.\n\nSKILL.md stays under about 250 lines. Past that, find the branch that\nshould move out.\n\nDone when every sibling file has a pointer line with its condition.\n\n## 3. Steering\n\n**Write a decision procedure.** A table or tree the agent walks gives\nthe same reasoning every run. \"Use judgement\" gives whatever the model\npicks that day.\n\n**Use leading words.** A leading word is a short term the model already\nknows from pretraining (`vertical slice`, `red`, `tracer bullet`) that\ncarries a whole behaviour. Pick one per behaviour, repeat that exact\ntoken through the skill, and check it shows up in the agent's\nreasoning. If behaviour stays wrong, try a stronger word before adding\nsentences. A word you coin yourself recruits no priors, so define it\nonce, where it is first used.\n\n**State the target behaviour for preferences.** For style and habits,\na ban puts the banned behaviour into context; write what to do instead\n(\"write one-line comments\").\n\n**Guardrails stay bans, word for word.** A guardrail forbids an action\nthat is hard to undo or reaches other people: merge, push, deploy,\ndelete, publish, spend, send, commit, change permissions, touch\nsecrets or production, start another agent or reviewer, or write to a\nrepo during a review. Keep its \"never\" or \"do not\" sentence exactly as written.\nYou may add the positive target after it (\"Never merge it yourself.\nHand the merged-ready PR to the user.\"); never replace it. Reviews on\n2026-11-04 rewrote guardrails as positive sentences and lost their\nforce; see REVIEW.md.\n\n**Use numbers and absolutes.** \"Under 300 ms\", \"at most 5 running\",\n\"always ask once\". Hedge words (reasonably, where appropriate, try to)\nchange nothing; delete them or replace them with a number.\n\n**Give the reason where it is not obvious.** One clause of why lets\nthe agent extend a rule to cases you never wrote down. Skip the reason\nwhen the rule explains itself.\n\n**End every step on a completion criterion.** The agent must be able\nto tell done from not done (\"every changed model accounted for\",\n\"the test goes red on the bug\"). A vague bound invites rushing to the\nnext step. Sharpen the bound first. Only if the agent still rushes,\nsplit the later steps into a separate skill or a subagent hand-off;\ninside one context the later steps stay visible and the split does\nnothing.\n\nDone when every step ends on a checkable bound and every guardrail reads as a ban.\n\n## 4. Prune\n\nGo sentence by sentence and ask: does the agent act differently with\nthis line than without it? Delete whole sentences that fail.\n\n- **No-ops**: the model already does it by default (write a decent\n  commit message, read the file before editing it).\n- **Duplication**: one meaning lives in one place. Across skills, one\n  skill owns a rule and the others point to it. Global instructions\n  are personal and skills are what the team sees, so a rule the team\n  needs is owned by a skill. The user's global instructions outrank\n  every skill.\n- **Cache of the environment**: do not restate what `--help`,\n  `package.json`, config or the directory listing shows. Do write what\n  no file confesses: the unwritten convention, the gotcha, the reason.\n- **Sediment**: stale layers others added and nobody removed. Move\n  branch-only material to its branch file; delete what is stale.\n- **History and motivation**: how the rule came about goes in the\n  commit or `EVIDENCE.md`, unless the agent needs it to apply the rule.\n\nDone when every remaining sentence changes what the agent does.\n\n## 5. House prose (the author's repos)\n\nProse rules change little about what an agent does. Apply them only to\nlines you are already editing for steps 1 to 4; never spend a pass on\nprose alone.\n\n- Imperatives and facts. One idea per sentence. Short paragraphs.\n- Plain English. Metaphors, em-dash asides and filler adjectives go.\n- Avoid the \"X, not Y\" frame; state X.\n- Bold only the rule an agent must not miss, a few per file.\n- Name things the way the user says them. A tool noun or ID gets its\n  plain meaning beside it once.\n- Evidence over aspiration: when a rule came from a real failure or a\n  measured run, keep the number and the date (in `EVIDENCE.md` if\n  long). Never invent a measurement.\n- Works in Claude Code and Codex unless the skill says which harness\n  it binds. Harness-specific mechanics sit in their own section.\n- No model provenance: no \"generated by\" lines or AI trailers.\n\nDone when only lines touched for steps 1 to 4 changed.\n\n## 6. Ship\n\n1. Run the skill (see `TESTING.md`). A skill untested is a draft. A\n   changed description ships only with a passing routing check.\n2. Update every place that shows the skill: its own files, the repo\n   README table, other skills that point at it, hooks that name it.\n3. For this repo, commit on a branch, push, then install with\n   `npx -y skills@latest add rjvim\/ai-skills -g -a claude-code -a codex -y`.\n   A new skill appears only in a fresh session.\n\nDone when: the test run shows the intended behaviour, and every place\nthat names the skill says the same thing.\n\n## Related\n\n- Draws on Matt Pocock's `writing-for-agents` skill (MIT,\n  github.com\/mattpocock\/skills) and Emil Kowalski's writing-skills\n  notes.\n","use_cases":["Creating new skills or documentation","Reviewing or improving existing skills","Auditing and fixing ignored instructions","Testing a skill by running it"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/rjvim\/ai-skills\/blob\/9a942086adef21dbd0c061d9d9e8fd5f43328bf6\/skills\/rjv-writing-skills\/SKILL.md","source_commit":"9a942086adef21dbd0c061d9d9e8fd5f43328bf6","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:10:16.000000Z","updated_at":"2026-12-03T16:19:55.000000Z","seo_title":"Rjv Writing Skills - How-to Write, Review, and Prune Agent Instruction","seo_description":"Learn how to write, review, and prune instructions that agents read. This skill covers trigger choice, steps, reference layout, leading words, completion criteria, and pr","seo_keywords":["rjv writing skills","agent instruction","skill creation","skill review","instruction pruning","agent behavior","skill documentation"]}}