Approved catalog listing
SKILL #4600
skillshunter.net
Home / Software & Development / Rjv Writing Skills
Listing Approved Approved on: December 3, 2026

Rjv Writing Skills

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.

Rate this skill

No ratings yet

Editor's 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`).

When to Use It

  • Creating new skills or documentation
  • Reviewing or improving existing skills
  • Auditing and fixing ignored instructions
  • Testing a skill by running it

SKILL.md

SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use

↓ Download .md

Writing skills agents obey

A skill is a hypothesis about agent behaviour. It makes the agent walk the same process every run; the outputs still differ because every context differs. Write it for a fast colleague who has never seen this repo, and judge it only by what agents do after reading it.

Pick the branch:

  • Writing a new skill or doc: walk steps 1 to 6 below.
  • Reviewing or improving existing skills (this repo or another project's internal skills): read REVIEW.md, which applies these same steps as a checklist.
  • Proving a skill works: read TESTING.md.

1. Trigger: who invokes it

The description is a context pointer. It sits in every session, so each word costs on every turn, and its wording decides when the agent opens the skill.

The skill must be reached... Make it
by the agent on its own, or by another skill model-invoked: keep a model-facing description
only when the user types its name user-invoked: disable-model-invocation: true, one-line human description

Model-invoked skills cost context load and can be skipped even when they fit. User-invoked skills cost the user's memory. Choose per skill, and say which in one line of the commit.

A model-invoked description:

  • opens with what the material is, using the leading word the user actually types (plan, review, spec);
  • lists one trigger per distinct case; synonyms for the same case are one trigger;
  • says where a sibling skill owns the neighbouring case ("in Codex use rjv-subagents-codex");
  • stays under about 80 words.

A must-have skill that agents skip has a weak pointer. Sharpen the description first; paste its content into always-loaded instructions only if a test run still misses it.

Done when each trigger case appears once and the sibling that owns the neighbouring case is named.

2. Structure: steps and reference

Every skill is made of steps (what the agent does, in order) and reference (rules, definitions, templates consulted while doing it). Place each piece on this ladder:

  1. step in SKILL.md
  2. reference in SKILL.md, used by every branch
  3. reference in a sibling file, reached by a pointer line, used by some branches only

The test for rung 3 is branching: inline what every run needs, move behind a pointer what only some runs reach. A pointer line names the file and the condition: "When the change touches money, read CASTING.md." Keep a concept's definition, rules and caveats under one heading so reading one part brings its neighbours.

SKILL.md stays under about 250 lines. Past that, find the branch that should move out.

Done when every sibling file has a pointer line with its condition.

3. Steering

Write a decision procedure. A table or tree the agent walks gives the same reasoning every run. "Use judgement" gives whatever the model picks that day.

Use leading words. A leading word is a short term the model already knows from pretraining (vertical slice, red, tracer bullet) that carries a whole behaviour. Pick one per behaviour, repeat that exact token through the skill, and check it shows up in the agent's reasoning. If behaviour stays wrong, try a stronger word before adding sentences. A word you coin yourself recruits no priors, so define it once, where it is first used.

State the target behaviour for preferences. For style and habits, a ban puts the banned behaviour into context; write what to do instead ("write one-line comments").

Guardrails stay bans, word for word. A guardrail forbids an action that is hard to undo or reaches other people: merge, push, deploy, delete, publish, spend, send, commit, change permissions, touch secrets or production, start another agent or reviewer, or write to a repo during a review. Keep its "never" or "do not" sentence exactly as written. You may add the positive target after it ("Never merge it yourself. Hand the merged-ready PR to the user."); never replace it. Reviews on 2026-11-04 rewrote guardrails as positive sentences and lost their force; see REVIEW.md.

Use numbers and absolutes. "Under 300 ms", "at most 5 running", "always ask once". Hedge words (reasonably, where appropriate, try to) change nothing; delete them or replace them with a number.

Give the reason where it is not obvious. One clause of why lets the agent extend a rule to cases you never wrote down. Skip the reason when the rule explains itself.

End every step on a completion criterion. The agent must be able to tell done from not done ("every changed model accounted for", "the test goes red on the bug"). A vague bound invites rushing to the next step. Sharpen the bound first. Only if the agent still rushes, split the later steps into a separate skill or a subagent hand-off; inside one context the later steps stay visible and the split does nothing.

Done when every step ends on a checkable bound and every guardrail reads as a ban.

4. Prune

Go sentence by sentence and ask: does the agent act differently with this line than without it? Delete whole sentences that fail.

  • No-ops: the model already does it by default (write a decent commit message, read the file before editing it).
  • Duplication: one meaning lives in one place. Across skills, one skill owns a rule and the others point to it. Global instructions are personal and skills are what the team sees, so a rule the team needs is owned by a skill. The user's global instructions outrank every skill.
  • Cache of the environment: do not restate what --help, package.json, config or the directory listing shows. Do write what no file confesses: the unwritten convention, the gotcha, the reason.
  • Sediment: stale layers others added and nobody removed. Move branch-only material to its branch file; delete what is stale.
  • History and motivation: how the rule came about goes in the commit or EVIDENCE.md, unless the agent needs it to apply the rule.

Done when every remaining sentence changes what the agent does.

5. House prose (the author's repos)

Prose rules change little about what an agent does. Apply them only to lines you are already editing for steps 1 to 4; never spend a pass on prose alone.

  • Imperatives and facts. One idea per sentence. Short paragraphs.
  • Plain English. Metaphors, em-dash asides and filler adjectives go.
  • Avoid the "X, not Y" frame; state X.
  • Bold only the rule an agent must not miss, a few per file.
  • Name things the way the user says them. A tool noun or ID gets its plain meaning beside it once.
  • Evidence over aspiration: when a rule came from a real failure or a measured run, keep the number and the date (in EVIDENCE.md if long). Never invent a measurement.
  • Works in Claude Code and Codex unless the skill says which harness it binds. Harness-specific mechanics sit in their own section.
  • No model provenance: no "generated by" lines or AI trailers.

Done when only lines touched for steps 1 to 4 changed.

6. Ship

  1. Run the skill (see TESTING.md). A skill untested is a draft. A changed description ships only with a passing routing check.
  2. Update every place that shows the skill: its own files, the repo README table, other skills that point at it, hooks that name it.
  3. For this repo, commit on a branch, push, then install with npx -y skills@latest add rjvim/ai-skills -g -a claude-code -a codex -y. A new skill appears only in a fresh session.

Done when: the test run shows the intended behaviour, and every place that names the skill says the same thing.

Related

  • Draws on Matt Pocock's writing-for-agents skill (MIT, github.com/mattpocock/skills) and Emil Kowalski's writing-skills notes.
View original Markdown
---
name: rjv-writing-skills
description: "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."
---

# Writing skills agents obey

A skill is a hypothesis about agent behaviour. It makes the agent walk
the same process every run; the outputs still differ because every
context differs. Write it for a fast colleague who has never seen this
repo, and judge it only by what agents do after reading it.

Pick the branch:

- **Writing a new skill or doc**: walk steps 1 to 6 below.
- **Reviewing or improving existing skills** (this repo or another
  project's internal skills): read [`REVIEW.md`](REVIEW.md), which
  applies these same steps as a checklist.
- **Proving a skill works**: read [`TESTING.md`](TESTING.md).

## 1. Trigger: who invokes it

The description is a context pointer. It sits in every session, so
each word costs on every turn, and its wording decides when the agent
opens the skill.

| The skill must be reached... | Make it |
|---|---|
| by the agent on its own, or by another skill | model-invoked: keep a model-facing description |
| only when the user types its name | user-invoked: `disable-model-invocation: true`, one-line human description |

Model-invoked skills cost context load and can be skipped even when
they fit. User-invoked skills cost the user's memory. Choose per skill,
and say which in one line of the commit.

A model-invoked description:

- opens with what the material is, using the leading word the user
  actually types (`plan`, `review`, `spec`);
- lists one trigger per distinct case; synonyms for the same case are
  one trigger;
- says where a sibling skill owns the neighbouring case
  ("in Codex use rjv-subagents-codex");
- stays under about 80 words.

A must-have skill that agents skip has a weak pointer. Sharpen the
description first; paste its content into always-loaded instructions
only if a test run still misses it.

Done when each trigger case appears once and the sibling that owns the neighbouring case is named.

## 2. Structure: steps and reference

Every skill is made of **steps** (what the agent does, in order) and
**reference** (rules, definitions, templates consulted while doing
it). Place each piece on this ladder:

1. step in SKILL.md
2. reference in SKILL.md, used by every branch
3. reference in a sibling file, reached by a pointer line, used by
   some branches only

The test for rung 3 is branching: inline what every run needs, move
behind a pointer what only some runs reach. A pointer line names the
file and the condition: "When the change touches money, read
`CASTING.md`." Keep a concept's definition, rules and caveats under one
heading so reading one part brings its neighbours.

SKILL.md stays under about 250 lines. Past that, find the branch that
should move out.

Done when every sibling file has a pointer line with its condition.

## 3. Steering

**Write a decision procedure.** A table or tree the agent walks gives
the same reasoning every run. "Use judgement" gives whatever the model
picks that day.

**Use leading words.** A leading word is a short term the model already
knows from pretraining (`vertical slice`, `red`, `tracer bullet`) that
carries a whole behaviour. Pick one per behaviour, repeat that exact
token through the skill, and check it shows up in the agent's
reasoning. If behaviour stays wrong, try a stronger word before adding
sentences. A word you coin yourself recruits no priors, so define it
once, where it is first used.

**State the target behaviour for preferences.** For style and habits,
a ban puts the banned behaviour into context; write what to do instead
("write one-line comments").

**Guardrails stay bans, word for word.** A guardrail forbids an action
that is hard to undo or reaches other people: merge, push, deploy,
delete, publish, spend, send, commit, change permissions, touch
secrets or production, start another agent or reviewer, or write to a
repo during a review. Keep its "never" or "do not" sentence exactly as written.
You may add the positive target after it ("Never merge it yourself.
Hand the merged-ready PR to the user."); never replace it. Reviews on
2026-11-04 rewrote guardrails as positive sentences and lost their
force; see REVIEW.md.

**Use numbers and absolutes.** "Under 300 ms", "at most 5 running",
"always ask once". Hedge words (reasonably, where appropriate, try to)
change nothing; delete them or replace them with a number.

**Give the reason where it is not obvious.** One clause of why lets
the agent extend a rule to cases you never wrote down. Skip the reason
when the rule explains itself.

**End every step on a completion criterion.** The agent must be able
to tell done from not done ("every changed model accounted for",
"the test goes red on the bug"). A vague bound invites rushing to the
next step. Sharpen the bound first. Only if the agent still rushes,
split the later steps into a separate skill or a subagent hand-off;
inside one context the later steps stay visible and the split does
nothing.

Done when every step ends on a checkable bound and every guardrail reads as a ban.

## 4. Prune

Go sentence by sentence and ask: does the agent act differently with
this line than without it? Delete whole sentences that fail.

- **No-ops**: the model already does it by default (write a decent
  commit message, read the file before editing it).
- **Duplication**: one meaning lives in one place. Across skills, one
  skill owns a rule and the others point to it. Global instructions
  are personal and skills are what the team sees, so a rule the team
  needs is owned by a skill. The user's global instructions outrank
  every skill.
- **Cache of the environment**: do not restate what `--help`,
  `package.json`, config or the directory listing shows. Do write what
  no file confesses: the unwritten convention, the gotcha, the reason.
- **Sediment**: stale layers others added and nobody removed. Move
  branch-only material to its branch file; delete what is stale.
- **History and motivation**: how the rule came about goes in the
  commit or `EVIDENCE.md`, unless the agent needs it to apply the rule.

Done when every remaining sentence changes what the agent does.

## 5. House prose (the author's repos)

Prose rules change little about what an agent does. Apply them only to
lines you are already editing for steps 1 to 4; never spend a pass on
prose alone.

- Imperatives and facts. One idea per sentence. Short paragraphs.
- Plain English. Metaphors, em-dash asides and filler adjectives go.
- Avoid the "X, not Y" frame; state X.
- Bold only the rule an agent must not miss, a few per file.
- Name things the way the user says them. A tool noun or ID gets its
  plain meaning beside it once.
- Evidence over aspiration: when a rule came from a real failure or a
  measured run, keep the number and the date (in `EVIDENCE.md` if
  long). Never invent a measurement.
- Works in Claude Code and Codex unless the skill says which harness
  it binds. Harness-specific mechanics sit in their own section.
- No model provenance: no "generated by" lines or AI trailers.

Done when only lines touched for steps 1 to 4 changed.

## 6. Ship

1. Run the skill (see `TESTING.md`). A skill untested is a draft. A
   changed description ships only with a passing routing check.
2. Update every place that shows the skill: its own files, the repo
   README table, other skills that point at it, hooks that name it.
3. For this repo, commit on a branch, push, then install with
   `npx -y skills@latest add rjvim/ai-skills -g -a claude-code -a codex -y`.
   A new skill appears only in a fresh session.

Done when: the test run shows the intended behaviour, and every place
that names the skill says the same thing.

## Related

- Draws on Matt Pocock's `writing-for-agents` skill (MIT,
  github.com/mattpocock/skills) and Emil Kowalski's writing-skills
  notes.

Community Reviews & Field Notes

Tried this skill on your own project? Share the model you used and the results you got.

Add Your Review

Approved reviews appear publicly with the name or role you enter. See the Privacy Notice.