agentleFS
ngxcccngxccc/engineered-skills/skills/writing-for-agents/SKILL.md

writing-for-agents

Skill0 starsChanged 59 days agoMITView on GitHub

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use writing-for-humans, wait-what and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • J03Fr0stSkill

    writing-for-humans

    Write and revise human-facing prose so it is clear, specific, natural, and faithful to the author's intent and genre. Use for emails, chat messages (Teams, Slack), catch-ups, articles, reports, documentation, announcements, talks, and other prose when the user asks to draft, diagnose, edit, rewrite, make writing less formulaic or less AI-like, sound more natural or direct, or match a supplied voice. Do not use for agent instructions such as skills or AGENTS.md (use writing-for-agents), code-only work, verbatim transcription, or translation without editorial changes.

    Also in 9 projects that use this

  • AWSSkill

    wait-what

    Stop. That last message did not land: re-pitch it.

    Also in 142 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 102 projects that use this

  • openchamberSkill

    clack-cli-patterns

    Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.

    Also in 3 projects that use this

  • MicrosoftSkill

    cloud-architecture-diagram

    Create, edit, or review Azure and Microsoft ecosystem architecture, GitHub CI/CD, and auth/API diagrams as editable draw.io files; resolve Microsoft and GitHub icons. Use for architecture visualization, diagram critique, or missing icons. Azure DevOps only when explicitly requested. Not for competing-cloud architecture, deployment, live discovery, security certification, or unrelated charts.

    Also in 3 projects that use this

  • openchamberSkill

    drag-to-reorder

    Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.

    Also in 3 projects that use this

  • +4 more from openchamber

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Place each piece on the lowest tier that still prevents variance:

    line 24
  2. Distinctive:

    Keep a concept's definition, rules, and caveats co-located under one heading.

    line 30
  3. Very specific:

    Single source of truth: Never restate package.json scripts, directory layouts, or --help output that the agent can inspect directly.

    line 37
  4. Very specific:

    Do not split a <40-line skill into references/ files unless a branch carries heavy reference material most runs never touch.

    line 42
  5. Distinctive:

    Every rule is one concrete action or checkable criterion, with no prose bloat or duplicated environment facts.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 179 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Writing for Agents

Rules for writing SKILL.md, AGENTS.md, CLAUDE.md, and pointer-referenced docs so agents follow the same process every run.

For frontmatter, invocation mode, and router mechanics, read references/SKILL-MECHANICS.md.

1. Context pointers and budgets

  1. Context load (always-loaded lines in AGENTS.md or skill description) spends tokens and attention every turn. Keep pointers short.
  2. Cognitive load (which docs exist and when to open them) belongs to the human. Spend it only where human judgement matters.
  3. Front-load leading words in every pointer so triggering fires reliably.
  4. One trigger per branch. Collapse synonyms that rename the same branch.
  5. Cut identity the body already carries.

2. Information hierarchy (progressive disclosure)

Place each piece on the lowest tier that still prevents variance:

  1. In-file step, ordered actions the agent performs.
  2. In-file reference, rules or definitions consulted on demand across all branches.
  3. Disclosed reference, sibling file under references/ behind a pointer, loaded only when a branch fires.

Keep a concept's definition, rules, and caveats co-located under one heading. Split by sequence across a subagent/handoff boundary only when later steps tempt the agent to rush earlier ones.

3. Steps, leading words, and pruning

  1. Checkable completion criteria: End each phase with a binary Done when gate (e.g., "every modified caller verified") rather than vague bounds ("understanding reached").
  2. Leading words: Reuse compact pretraining concepts (red, tight, seam, tracer bullet) consistently instead of repeating multi-word explanations.
  3. Positive framing: State the target behavior ("write one-line rules") rather than negations ("don't write long paragraphs"). Pair unavoidable prohibitions with the positive alternative.
  4. Single source of truth: Never restate package.json scripts, directory layouts, or --help output that the agent can inspect directly.
  5. Delete no-ops: Cut any sentence that does not change agent behavior versus model defaults. Run /unslop on long prose docs.

When to skip

  • Do not split a <40-line skill into references/ files unless a branch carries heavy reference material most runs never touch.

Done when

  • Every rule is one concrete action or checkable criterion, with no prose bloat or duplicated environment facts.
  • npm run check-skills (and check-frontmatter) passes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.