agentleFS
kimgoetzkekimgoetzke/coding-agent-configs/skills/write-skill/SKILL.md

write-skill

Skill3 starsChanged 8 days agoMITView on GitHub

Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

31 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use grill, write-docs and 9 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.
  • renatorozasSkill

    grill

    Adversarial code review. Don't let me ship until the changes pass your scrutiny.

    Also in 5 projects that use this

  • SentrySkill

    write-docs

    Create or update documentation pages for the Abacus docs site. Use when adding new documentation, updating existing pages, or ensuring docs stay in sync with code changes. Ensures pages follow Starlight patterns and build correctly.

    Also in 3 projects that use this

  • GoogleSkill

    to-spec

    Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.

    Also in 4 projects that use this

  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 5 projects that use this

  • GoogleSkill

    to-tickets

    Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker — edges as text in one file per ticket locally, or native blocking links on a real tracker.

    Also in 3 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 4 projects that use this

  • +2 more from google

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Gather requirements: - if not provided in the prompt, ask user about:

    line 11
  2. Distinctive:

    Should the agent invoke it on its own, or only the user (see Invocation)?

    line 16
  3. Distinctive:

    Draft the skill: - create:

    line 18
  4. Distinctive:

    Should any section be more/less detailed?

    line 26
  5. Distinctive:

    When/why to trigger it (specific keywords, contexts, file types)

    line 72
  6. Distinctive:

    Write in third person

    line 77
  7. Distinctive:

    Every word of a description sits in context on every turn, so prune it hard:

    line 95
  8. Distinctive:

    Leave out detail the body already covers.

    line 98
  9. Distinctive:

    Delete any sentence the model would follow anyway without being told.

    line 114
  10. Very specific:

    Leave anything the agent can look up in one step (package.json scripts, config files, --help output) to the environment.

    line 115
  11. Distinctive:

    Keep each rule in one place.

    line 116
  12. Distinctive:

    Add utility scripts when:

    line 120

“Common” is measured: kept by at least 6 in 10 of the 28 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 skills

Process

  1. Gather requirements - if not provided in the prompt, ask user about:
    • What task/domain does the skill cover?
    • What specific use cases should it handle?
    • Does it need executable scripts or just instructions?
    • Any reference materials to include?
    • Should the agent invoke it on its own, or only the user (see Invocation)?
  2. Draft the skill - create:
    • SKILL.md with concise instructions
    • Additional reference files, if required
    • Utility scripts if deterministic operations needed
  3. Review with user - present draft and ask:
    • Does this cover your use cases?
    • Anything missing or unclear?
    • Should any section be more/less detailed?

Skill structure

skill-name/
├── SKILL.md               # Main instructions (required)
├── reference.md           # Detailed docs (if needed)
├── examples.md            # Usage examples (if needed)
├── scripts/               # Scripts (if needed)
│   └── helper-script.sh   # Utility script (if needed)
└── templates/             # Templates (if needed)
    ├── template-1.md
    └── template-2.md

SKILL.md template

---
name: skill-name
description: Brief description of capability. Use when [specific triggers].
---

# Skill name

## Quick start

[Minimal working example]

## Workflows

[Step-by-step processes with checklists for complex tasks]

## Advanced features

[Link to separate files: See [reference.md](reference.md)]

Description requirements

The description is the only thing your agent sees when deciding which skill to load. It's surfaced in the system prompt alongside all other installed skills. Your agent reads these descriptions and picks the relevant skill based on the user's request.

Goal: Give your agent just enough info to know:

  1. What capability this skill provides
  2. When/why to trigger it (specific keywords, contexts, file types)

Format:

  • Max 1024 chars
  • Write in third person
  • First sentence: what it does
  • Second sentence: "Use when [specific triggers]"

Good example:

Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when user mentions PDFs, forms, or document extraction.

Bad example:

Helps with documents.

The bad example gives your agent no way to distinguish this from other document skills.

Every word of a description sits in context on every turn, so prune it hard:

  • List one trigger per distinct case the skill handles. Synonyms for the same case are one trigger written twice; keep one.
  • Leave out detail the body already covers.

Invocation

Choose who can invoke the skill:

  • Model-invoked (default): the agent can load it on its own and other skills can reach it. The user can still invoke it by name. The description costs context on every turn, so pick this only when the agent or another skill must reach it unprompted. Write the description for the agent, with triggers, as above.
  • User-invoked: set disable-model-invocation: true in the frontmatter. Only the user typing its name can invoke it, and other skills cannot. It costs no context, but the user has to remember it exists. Write the description for a human: a one-line summary, no trigger list.

Reference that several user-invoked skills need cannot live in any one of them, because none can load another. Put it in a plain file outside the skills and point to it from each skill.

Writing instructions

  • End every step on a condition the agent can check. "Every modified model accounted for" is checkable; "understand the code" is not, and invites the agent to stop early.
  • State the behaviour you want. "Write one-line comments" works better than "don't write long comments", because naming the unwanted behaviour primes it. Use a prohibition only as a hard guardrail you cannot phrase positively, and pair it with the positive target.
  • Prune before finishing:
    • Delete any sentence the model would follow anyway without being told.
    • Leave anything the agent can look up in one step (package.json scripts, config files, --help output) to the environment. Record what it cannot find: unwritten conventions, the reason behind a choice, gotchas.
    • Keep each rule in one place. A duplicate costs tokens and goes stale.

When to add scripts

Add utility scripts when:

  • Operation is deterministic (validation, formatting)
  • Same code would be generated repeatedly
  • Errors need explicit handling

Scripts save tokens and improve reliability vs generated code.

When to split files

Split into separate files when the skill contains optional elements that don't always apply and don't always need to be read.

For example, a code-review skill could keep its core workflow in SKILL.md and store language-specific conventions in java.md or rust.md, loaded only when reviewing code in that language.

Review checklist

After drafting, verify:

  • Description includes triggers ("Use when...") if model-invoked, or is a one-line human summary if user-invoked
  • disable-model-invocation: true set if only the user should invoke it
  • SKILL.md
  • Every step ends on a checkable condition
  • Instructions state the wanted behaviour, not only what to avoid
  • No sentences the model would follow by default, no restated config or duplicated rules
  • No time-sensitive info
  • Consistent terminology
  • Concrete examples included
  • References one level deep
  • Optional or context-specific content is split into separate files

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.