agentleFS
magnus919magnus919/agent-skills/AGENTS.md

agent-skills

AGENTS.md109 starsChanged 4 months agoMITView on GitHub

This file tells AI agents how to load and use skills from this repository. Skills in this repo follow the Agent Skills open format — a standardized way to give agents new capabilities through structured markdown files. Every skill in this repository conforms to the Agent Skills specification: Every skill directory MUST contain a README.md written for a human audience (not an AI agent). The README explains what the skill does and why someone would want to install it. It…

  • Installs packages

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Every skill in this repository conforms to the Agent Skills specification:

    line 7
  2. Very specific:

    Assume the reader is human: No agent instructions, no JSON schemas, no progressive disclosure notes.

    line 39
  3. Distinctive:

    Keep it scannable: Use tables, code blocks, and bullet lists.

    line 40
  4. Very specific:

    When a user's request matches a skill's description keywords, load the full SKILL.md.

    line 77
  5. Distinctive:

    If this is your first session with this repo, read these in order:

    line 85
  6. Very specific:

    Use each skill's description field as the primary routing source.

    line 93
  7. Distinctive:

    Write evals for the skill's intended behavior first, not to obtain a favorable Jev score.

    line 129
  8. Very specific:

    Every routing target must be a real skill in this repository.

    line 157
  9. Distinctive:

    Beef up before you split: If an existing skill's description already claims a topic and the skill is thin, thicken it (references, …

    line 161
  10. Distinctive:

    When a skill body tells you to read a reference file only under specific conditions ("Read this if the API returns a 500"), do not read it …

    line 180
  11. Distinctive:

    When creating or modifying a skill in this repo, validate against the format:

    line 192
  12. Distinctive:

    All file references use relative paths from skill root

    line 196
  13. Very specific:

    When a PR resolves an issue, use a GitHub closing keyword in the PR body — Closes #N, Fixes #N, or Resolves #N — so the issue auto-closes …

    line 221
  14. Distinctive:

    Reference file not found: All file references use relative paths from the skill's directory root.

    line 229

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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 — Agent Guide for agent-skills

This file tells AI agents how to load and use skills from this repository. Skills in this repo follow the Agent Skills open format — a standardized way to give agents new capabilities through structured markdown files.

Format Compliance

Every skill in this repository conforms to the Agent Skills specification:

RequirementRule
DirectoryEach skill in its own directory named by the skill
Entry pointSKILL.md with YAML frontmatter + markdown body
name fieldLowercase, hyphens only, matches parent directory name
description fieldTrigger-oriented, starts with an imperative verb, defines both positive and negative trigger boundaries
Progressive disclosureCore instructions in SKILL.md (< 500 lines, < 5,000 tokens), supporting material in references/, templates/, scripts/
File referencesRelative paths from skill root, one level deep
Reference file sizeEvery file under a skill's references/ must be ≤ 60,000 characters; oversized files are split into focused files and the skill's index/routing is updated
Human-readable READMEREADME.md in skill root — required for every skill. See README Format below

README Format

Every skill directory MUST contain a README.md written for a human audience (not an AI agent). The README explains what the skill does and why someone would want to install it. It is the public face of the skill — the first thing a human sees when browsing the repository.

Required Sections

SectionPurpose
TitleSkill name + one-line summary of what it does
Why Install This Skill2-3 paragraph pitch answering "what problem does this solve for me?" and "what can my agent do after installing this?" — written in plain language, not format docs
What You GetTable listing directory contents (scripts, references, templates, assets) and what each provides
Quick StartMinimal setup: env vars to export, first command to run (omit for reference-only skills)
TriggersList of trigger conditions that tell someone when to load this skill
RequirementsDependencies, API keys, Python version, system tools

Style Guidance

  • Lead with benefit, not implementation. Answer "what does this do for me?" before "what tech is it built on?"
  • Be concrete. Show real command examples with expected output. Avoid abstract descriptions.
  • Assume the reader is human. No agent instructions, no JSON schemas, no progressive disclosure notes. Those go in SKILL.md.
  • Keep it scannable. Use tables, code blocks, and bullet lists. A human should grasp the skill's purpose in 10 seconds.
  • One page or less. A README that takes more than a minute to read is too long. Save depth for SKILL.md.

Example

See data-scientist/README.md or any skill in this repository for the canonical format.

State-Modifying Skills

Skills that change external state must say so explicitly and use this gate before the first mutation:

Confirm the target, scope, and rollback path before acting. Read-only discovery may proceed without confirmation.

Destructive operations still require an explicit user directive; this convention does not authorize deletion, privilege changes, or irreversible cleanup.

Failure-Mode Routing

For problem-pattern routing, start with FAILURE-MODE-INDEX.md.

How to Load Skills

Skills are loaded progressively in three stages:

Stage 1 — Metadata

At session start, read each skill's name and description from frontmatter. This takes ~100 tokens per skill and lets you know what's available without loading full content.

# Example metadata (from cli-builder/SKILL.md)
name: cli-builder
description: >-
  Build or refactor CLI tools designed for AI agent consumption: non-interactive,
  flag-driven, idempotent, with --json output and --dry-run preview.

Stage 2 — Full Instructions

When a user's request matches a skill's description keywords, load the full SKILL.md. The body contains step-by-step instructions, examples, and gotchas. Do not load skills preemptively — only load when triggered.

Stage 3 — Supporting Files

Reference files (references/, templates/, scripts/) are loaded on demand. The SKILL.md tells you when to read each one. Do not load all references at activation time — following the triggers preserves context.

Reading Order

If this is your first session with this repo, read these in order:

  1. agent-skills/SKILL.md — The Agent Skills format reference. Read this first to understand the format.
  2. README.md — Skill index with descriptions. Use to discover which skill to load.
  3. Individual skill SKILL.md files as triggered by the user's task.

Skill Routing

Use each skill's description field as the primary routing source. For keyword lookup, see the skill trigger index.

Use-When Sections

Every skill description must start with an imperative verb and define both when to load it and when not to. Skills with meaningful overlap should also include a ## When not to use section naming the nearest alternative or prerequisite. Keep these sections trigger-oriented and concise; implementation details belong in references. The repository's quality validator enforces these requirements on changed skills.

Eval Requirements

evals/evals.json is a versioned contract owned by this repository; it is not part of the normative Agent Skills specification. The declarative contract is schemas/evals-v1.schema.json, and assertions is the canonical case field. Do not substitute or alias expectations.

Every new skill must include a schema-versioned evals/evals.json with at least five representative output-quality cases. Each case needs a stable ID, realistic prompt, expected outcome, and observable assertions. Renaming an eval ID breaks durable evidence references; do not attempt heuristic rename matching. Trigger-only checks (should-trigger / should-not-trigger probes) are harness-specific and belong in a separate test set, not in evals/evals.json.

Coverage reports these five states separately:

StateEvidence required
manifest_presentevals/evals.json exists. This alone does not prove behavioral quality.
schema_validThe manifest passes the repository's v1 structural and semantic validation.
executable_grader_bindings_presentNot assessed in v1. Requires a separate versioned grader-binding contract.
recent_run_evidence_presentNot assessed in v1. Requires a separate versioned provenance/freshness contract.
release_gated_evidence_presentNot assessed in v1. Requires a separate versioned release-gate contract.

v1 only covers manifest structure and semantic validity. It does not establish runtime provenance or release-gate evidence. Validate the contract and run its focused tests with:

python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install -r requirements-dev.txt
python3 scripts/test-eval-validation.py
python3 scripts/validate-evals.py

Existing skills are grandfathered via scripts/grandfathered-skills.txt. As schema-valid manifest coverage climbs past 25%, modified skills without valid manifests receive a warning; past 50%, they fail CI. The coverage report is available via python3 scripts/eval-coverage.py. The ratchet is enforced in CI via python3 scripts/eval-coverage.py --modified-from <base-sha> on every pull request. A skill is considered modified when any tracked file under its directory changes, not only SKILL.md. Schema-valid manifest coverage must not decrease between the base revision and the candidate; a decrease fails CI.

Author assertions that can be reviewed reliably

Write evals for the skill's intended behavior first, not to obtain a favorable Jev score. For every new or revised case:

  1. Make each assertion one independently checkable claim about evidence the grader can actually see. Split requirements that could pass or fail separately; do not mechanically split every sentence containing and. Keep expected_output as the case-level outcome, not a substitute for assertions.
  2. State consequential boundaries precisely (for example, a distinct Score/Noul question ID per candidate, while allowing multiple questions in one request). Permit valid equivalent implementations; reject a specific wrong shape without prescribing incidental wording.
  3. Use a recognized deterministic assertion prefix from eval_runner/grader.py for exact observable properties. A literal text match proves only that text is present, not that a design is correct or a side effect occurred. Use prose for semantic claims; do not invent new prefixes without changing and testing the grader contract.
  4. Check the assertion against at least a satisfying response, a contradictory near miss, and a response that omits the evidence. Ask whether a reviewer can distinguish met, not met, and not shown from the available response or artifact. If the property requires execution or external facts, add appropriate execution, source, or human/domain evidence instead of asking Jev to infer it from prose.
  5. Preserve stable case IDs and the v1 schema. Record material rubric changes and challenge examples so future comparisons can identify what changed; do not bulk-rewrite manifests merely because a word screen or model verdict flags them.

The current paired-eval grader marks unrecognized prose assertions manual_review; its passed=true value can coexist with zero verified semantic passes. The default-branch Jev audit of those assertions is advisory reviewer triage only. A suggested met, high probability, or provider confidence is not a validated pass or release approval. Do not promote Jev to a required gate or choose a confidence threshold without independently labeled representative real outputs, held-out testing, error/abstention analysis, and an explicit versioned gate contract. See CONTRIBUTING.md for a worked authoring example and docs/jev-ci-reference-runlog.md for the observed failure modes.

A separate inference model may label a prediction-blind sample as an advisory pseudo-label screen when human review is unavailable. Record the teacher model, prompt revision, source hashes, disagreements, and abstentions. Teacher agreement is not independent ground truth, so it does not satisfy the release-gate evidence requirement above; never describe it as calibrated accuracy or train an imitation model on Jev outputs. Set reviewer_kind: model_teacher on model-produced calibration labels. Missing reviewer provenance is unknown, never implicitly human; do not report its score as human adjudication.

Here, tuning Jev means tuning our API inputs, not fine-tuning or training model weights. Version the assertion text, question instructions, Choice criteria, state selection, and request grouping separately from the pinned model. State a failure hypothesis before changing an input; compare the candidate with the deployed request on identical labeled cases, preserve a held-out set, and inspect false met suggestions and abstentions. A synthetic fixture or another model's pseudo-labels can screen a candidate but cannot establish real-output accuracy or justify a gate. Do not change the deployed rubric merely to improve agreement on a known miss.

Paired-eval CI selects every changed skill with an eval manifest, including changes to its README, references, templates, assets, and scripts, up to a five-skill resource cap. If more than five are eligible, selection fails explicitly and starts no paired evals; split the change or review an intentional cap increase. The selection summary states the eligible and selected counts. The model job also records expected case IDs before generation; the Jev audit compares these with received comparison reports before claiming selected-case coverage. Jev's assertion coverage percentage is relative to prose assertions in the generated reports, not to every catalog eval. A missing report, skipped model job, failed selection, or missing selection evidence must not be reported as a complete audit.

Catalog Structure: Methodology vs. Operational Tooling

The catalog is intentionally two-layered. Keep every change in the layer that matches the work, and route between layers explicitly.

  • Methodology skills teach judgment for a discipline: frameworks, decision models, ownership boundaries, and process (backend-engineering, frontend-engineering, data-engineering, platform-engineering, ml-engineering, qa-methodology, site-reliability-engineering, release-engineering, and the product family). They describe how to think about a discipline, not how to operate a named tool.
  • Operational tool skills own a named tool or system that agents actually run (kubernetes, docker-compose, traefik, grafana, supabase, restic, llama-cpp, and the *-cli wrappers). They carry configuration patterns, runbooks, diagnostics, and scripts for that one tool.

Routing between layers:

  • Methodology skills route down to tool skills for "operate X" (platform-engineering → kubernetes, traefik, docker-compose).
  • Tool skills route up to methodology skills for design and strategy (grafana → site-reliability-engineering for SLO design).
  • Every routing target must be a real skill in this repository. Dead links (routing to docker-management, technical-architect, reviewer, ux-designer, or writer when those skills are not in this repo) are a defect; fix them when you touch a skill.

Creation rules:

  1. Beef up before you split. If an existing skill's description already claims a topic and the skill is thin, thicken it (references, templates, scripts, evals) instead of creating a near-duplicate.
  2. One skill per named tool; one discipline per methodology skill. Do not merge unrelated tools into a mega-skill — the trigger model depends on one-skill-per-named-tool. Do not turn a methodology skill into a tool manual.
  3. Family skills for formats. Tools or formats that share one agent workflow and one trigger (e.g., epub; a documents family for PDF/Word/Excel/PowerPoint) live as ONE skill with per-format references. Promote to a bundle with sub-skills only when per-format depth exceeds what references can hold (see the tailscale bundle pattern).
  4. No thin wrappers. A new tool/CLI skill must ship an executable script, a human-facing README.md, and an eval manifest. Adding shallow wrappers without depth is discouraged; thicken existing wrappers before adding siblings.
  5. Runbooks live in tool skills. Configuration-and-operations material belongs in tool skills, not in methodology references, which carry patterns and judgment.
  6. New skills ship evals; modified skills keep the ratchet green. Every new skill includes evals/evals.json with at least five output-quality cases (see Eval Requirements). When you modify an existing skill, add or update its eval manifest in the same change so coverage never decreases.

Best Practices

Do Load by Trigger

The description field is the trigger mechanism. If the user's request contains keywords matching a skill's description, load that skill. If multiple skills match, load the most specific one.

Don't Load Everything at Startup

Loading every skill at session start wastes context. Let the conversation trigger loading. Skills load in ~100 tokens (metadata) and only expand when needed.

Follow Progressive Disclosure

When a skill body tells you to read a reference file only under specific conditions ("Read this if the API returns a 500"), do not read it proactively. Reference files are for specific edge cases, not general instruction.

Completion and Exit Conditions

Skills that perform diagnosis, planning, or multi-step work must state when they are complete and when to stop. A valid exit condition is an observable artifact or a bounded escalation, such as: deliver the requested file, confirm the current setup is adequate, or stop after three non-converging diagnostic passes and report the evidence.

Skill Script Tests

Skills that ship executable scripts must name their script tests scripts/test_*.py; CI auto-discovers and runs them, so Python test files must use the exact test_*.py name. Shell-based tests are the exception: register them in scripts/check-skill-tests.py as a run or manual entry. CI enforces the naming convention via python3 scripts/check-skill-tests.py --check: a test-like file under a skill's scripts/ directory that is neither a Python test_*.py nor registered fails the check.

Validate Your Output

When creating or modifying a skill in this repo, validate against the format:

  • name matches parent directory name
  • description is 1-1024 chars, non-empty, starts with an imperative verb, and defines a negative boundary
  • Body under 500 lines and 5,000 tokens
  • All file references use relative paths from skill root
  • Frontmatter YAML is valid
  • README.md exists in the skill root with all required sections (see README Format above)
  • README is written for humans — no agent instructions, JSON schemas, or progressive disclosure notes in the README. Those belong in SKILL.md.
  • evals/evals.json exists with at least five output-quality cases for new skills (see Eval Requirements)
  • python3 scripts/validate-evals.py accepts every present eval manifest

Generated Artifacts

This repository tracks generated catalog files (.claude-plugin/marketplace.json, .codex-plugin/plugin.json, .agents/plugins/marketplace.json, llms.txt). CI validates that these are current; it does not regenerate them. If CI reports a stale artifact, regenerate locally:

ruby scripts/gen-claude-marketplace.rb --write
ruby scripts/gen-codex-plugin.rb --write
ruby scripts/gen-llms-txt.rb --write

Each script also runs in check mode (without --write) to verify freshness.

Respect Attribution

Some skills in this repo are adapted from other open-source projects. Attribution is maintained in the source field. Do not remove or modify attribution.

Linking PRs to Issues

When a PR resolves an issue, use a GitHub closing keyword in the PR body — Closes #N, Fixes #N, or Resolves #N — so the issue auto-closes on merge. Do not use Implements, Addresses, or For, which GitHub ignores.

Troubleshooting

Skill not loading when expected: The description field may need trigger keyword updates. Check that the user's phrasing overlaps with the skill's description vocabulary.

Skill body too large: The agent's context window may be full. The spec recommends under 5,000 tokens per skill. If a skill is exceeding this, its content can be further split into references.

Reference file not found: All file references use relative paths from the skill's directory root. If a reference is missing, check that the file exists at the path specified.

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.