agentleFS
R-HatimR-Hatim/hrih-skills/AGENTS.md

hrih-skills

AGENTS.md6 starsChanged 26 days agoMITView on GitHub

A collection of Agent Skills (the open SKILL.md format). Read this before adding or changing a skill. When a skill changes, bump its version in .claude-plugin/marketplace.json. Claude Code users only receive an update when that version changes. The marketplace name hrih-skills is what users type in install commands, so don't rename it casually. Names like agent-skills and anthropic-* are reserved. For claude.ai users, attach the dist/*.skill files to a GitHub Release.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository6 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the description contains : (colon-space), wrap it in double quotes.

    line 24
  2. Very specific:

    When a skill changes, bump its version in .claude-plugin/marketplace.json.

    line 43
  3. Very specific:

    Run each prompt in evals/<name>/evals.json twice: once with the skill and once without, as fresh agents.

    line 49
  4. Very specific:

    Keep runs in a <name>-workspace/ folder outside skills/.

    line 51
  5. Very specific:

    Create skills/<name>/SKILL.md (copy an existing skill's structure).

    line 58
  6. Very specific:

    Add evals/<name>/evals.json with 2–3 realistic prompts.

    line 59
  7. Very specific:

    Add the skill to .claude-plugin/marketplace.json and to the table in README.md.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “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
AGENTS.md

Working in this repo

A collection of Agent Skills (the open SKILL.md format). Read this before adding or changing a skill.

Layout

skills/<name>/          one folder per skill; this is exactly what gets installed
  SKILL.md              frontmatter (name, description, ...) + instructions
  references/           docs the skill tells the agent to read when needed
  scripts/              helper scripts the skill runs
evals/<name>/           test prompts; kept outside the skill so installs stay lean
  evals.json            task prompts + assertions for with/without-skill runs
  trigger-eval-set.json should/shouldn't-trigger queries for tuning the description
tools/validate.py       checks every SKILL.md (run before committing)
tools/package.py        builds dist/<name>.skill for claude.ai / desktop upload
.claude-plugin/         Claude Code plugin marketplace manifest

Rules for a skill

  • Folder name = name: kebab-case, at most 64 characters.
  • Description (at most 1024 chars, no < or >) is the only thing an agent sees before deciding to load the skill. It says what the skill does and when to use it, including phrasings that don't name the skill, and ends with when not to use it.
    • If the description contains : (colon-space), wrap it in double quotes. Unquoted, it breaks the YAML and the skill silently fails to load.
  • Allowed frontmatter keys: name, description, license, allowed-tools, metadata, compatibility (at most 500 chars: runtime needs such as Python or browser tools). Claude Code reads extra keys (when_to_use, argument-hint, ...), but a claude.ai upload rejects them, so keep skills to the standard keys.
  • Keep SKILL.md under about 500 lines. Push detail into references/ and point to it from SKILL.md, saying when to read it.
  • Explain why, not just what. Agents follow reasoning better than all-caps rules.
  • Scripts:
    • Portable (Windows, macOS, Linux), standard library only where possible.
    • Runnable as python scripts/x.py and under python -I.
    • They print where their outputs went.
  • No secrets, personal paths or machine-specific values anywhere in skills/.
  • Shared files are copies. Each skill installs on its own, so the review skills each carry scripts/lessons.py, scripts/diff_facts.py and references/lessons.md. Edit one copy, then copy it to the others; tools/validate.py fails when they drift.

Before committing

python tools/validate.py
claude plugin validate .  # checks .claude-plugin/marketplace.json
python tools/package.py   # optional, output is gitignored

When a skill changes, bump its version in .claude-plugin/marketplace.json. Claude Code users only receive an update when that version changes. The marketplace name hrih-skills is what users type in install commands, so don't rename it casually. Names like agent-skills and anthropic-* are reserved.

For claude.ai users, attach the dist/*.skill files to a GitHub Release.

Testing a skill

  1. Run each prompt in evals/<name>/evals.json twice: once with the skill and once without, as fresh agents.
  2. Grade the outputs against the assertions and look at them yourself. Design and writing quality need human eyes.
  3. Keep runs in a <name>-workspace/ folder outside skills/; it's gitignored.
  4. For the description, use trigger-eval-set.json with skill-creator's run_loop, choosing by held-out score, not train score.
    • On Windows, its run_eval.py needs a non-select() pipe reader.
    • Its parallel workers can pick each other's temporary command, so count any copy of the skill as a trigger.

Adding a skill

  1. Create skills/<name>/SKILL.md (copy an existing skill's structure).
  2. Add evals/<name>/evals.json with 2–3 realistic prompts.
  3. Add the skill to .claude-plugin/marketplace.json and to the table in README.md.
  4. Run tools/validate.py.

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.