agentleFS
Sahil2004Sahil2004/skills/AGENTS.md

skills

AGENTS.md0 starsChanged 5 days agoMITView on GitHub

Contributor guide for agents working in this repository. This repo is the single source of truth for portable agent skills. Skills authored here are installed into Jcode, Claude Code, Codex, Windsurf, Cursor, and opencode. All three must pass with zero errors. CI runs the same checks. Before publishing to npm, also run the end-to-end package test. It packs a real tarball and installs it into a sandboxed HOME, so a broken package is caught while the version number can still…

  • 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 35,337 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 repository4 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All three must pass with zero errors.

    line 33
  2. Very specific:

    Before publishing to npm, also run the end-to-end package test.

    line 35
  3. Distinctive:

    Do not hand-create directories.

    line 46
  4. Very specific:

    Write description as trigger conditions, not a summary.

    line 48
  5. Very specific:

    Keep SKILL.md under ~500 lines.

    line 51
  6. Distinctive:

    Prefer a deterministic script over prose whenever a step is mechanical.

    line 53
  7. Very specific:

    Never claim capabilities an agent lacks.

    line 61
  8. Distinctive:

    No vendor or AI attribution anywhere: commit messages, PR text, code comments, docs.

    line 62
  9. Distinctive:

    Commit as you go. One skill per commit where practical.

    line 63
  10. Very specific:

    If an agent's install path is wrong, fix AGENT_TARGETS in scripts/skilllib.py rather than special-casing the installer, then mirror it in …

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

AGENTS.md

Contributor guide for agents working in this repository.

This repo is the single source of truth for portable agent skills. Skills authored here are installed into Jcode, Claude Code, Codex, Windsurf, Cursor, and opencode.

Repository shape

skills/<skill-name>/SKILL.md      # required: frontmatter + instructions
skills/<skill-name>/references/   # optional: detail loaded on demand
skills/<skill-name>/scripts/      # optional: deterministic helpers
templates/SKILL.md                # starting point for a new skill
scripts/skilllib.py               # shared parsing + target table
scripts/validate.py               # schema + lint checks
scripts/install.py                # symlink/copy into agent homes
scripts/new_skill.py              # scaffold a new skill
scripts/check_cli_parity.py       # bin/cli.js vs the Python installer
scripts/test_package.py           # end-to-end npm package test in a sandbox HOME
bin/cli.js                        # dependency-free npm/npx installer
package.json                      # npm packaging

Before you finish any change

python3 scripts/validate.py
python3 scripts/install.py --all --dry-run
python3 scripts/check_cli_parity.py

All three must pass with zero errors. CI runs the same checks.

Before publishing to npm, also run the end-to-end package test. It packs a real tarball and installs it into a sandboxed HOME, so a broken package is caught while the version number can still be changed:

python3 scripts/test_package.py

Adding or editing a skill

  1. Scaffold with python3 scripts/new_skill.py <kebab-name> "When the user wants ...". Do not hand-create directories; the scaffolder keeps the layout consistent.
  2. name in frontmatter must exactly match the directory name.
  3. Write description as trigger conditions, not a summary. It is the only text most agents see when deciding whether to load the skill. Include literal phrases a user would type.
  4. Keep SKILL.md under ~500 lines. Move depth into references/ and mention each reference file by name in the body so it is discoverable.
  5. Prefer a deterministic script over prose whenever a step is mechanical.
  6. One skill, one job. Split rather than growing a catch-all.

Conventions

  • Python only in scripts/, standard library only, no third-party dependencies.
  • Any script a skill ships must run with no install step, or declare its requirements at the top of the file.
  • Never claim capabilities an agent lacks. Declare needed tools in allowed-tools.
  • No vendor or AI attribution anywhere: commit messages, PR text, code comments, docs.
  • Commit as you go. One skill per commit where practical.

Installer notes

  • Symlinks are the default so repo edits take effect immediately. --copy exists for sandboxed agents that cannot follow links out of their home.
  • For agents without a native skill loader, the installer maintains an index between <!-- BEGIN managed skills index --> and <!-- END managed skills index --> in that agent's rules file. Never edit inside those markers by hand; everything outside them is preserved.
  • If an agent's install path is wrong, fix AGENT_TARGETS in scripts/skilllib.py rather than special-casing the installer, then mirror it in the same table in bin/cli.js. scripts/check_cli_parity.py fails when the two disagree.
  • bin/cli.js must stay dependency-free and copy rather than symlink: it runs from an npx cache that npm deletes after the run.

Testing a skill for real

Install it, start a fresh agent session, and give a prompt matching the description without naming the skill. If it does not trigger, the description is the bug.

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.