agentleFS
lost-rob0tlost-rob0t/skills/AGENTS.md

skills

AGENTS.md0 starsChanged 13 days agoBSD-3-ClauseView on GitHub

Canonical instructions for agents editing this repository. Skills are small operational contracts, not essays and not snapshots of the author's machine. Prefer this semantic shape when it fits: Front matter must identify the skill. The description field is selection metadata, not prose: use 2–8 comma-separated keywords only. Keep the body concise, preferably about 80 lines or less. Move detail into references/, scripts, or repository docs. Every durable skill lives once under skills/<name>/. Do not create independently edited OpenCode, Claude, .agents,…

The file

Show its rules and text

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

30 rules. About 2 are common, 16 are distinctive, and 12 are very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Prefer this semantic shape when it fits:

    line 9
  2. Very specific:

    Every durable skill lives once under skills/<name>/.

    line 20
  3. Very specific:

    Do not create independently edited OpenCode, Claude, .agents, Agent Zero, or other runtime copies.

    line 22
  4. Distinctive:

    Before adding or editing a skill, scan for author-specific assumptions:

    line 28
  5. Distinctive:

    document the minimum installation/configuration needed.

    line 40
  6. Distinctive:

    when authorized and tooling permits, edit that source declaratively and document what changed.

    line 42
  7. Distinctive:

    keep an author-specific fast path only when it is explicitly scoped as compatibility, never as the universal default.

    line 43
  8. Distinctive:

    use configurable paths, environment variables, runtime discovery, or user-provided values instead of hardcoded personal paths.

    line 44
  9. Distinctive:

    Do not expose private infrastructure while making a skill portable.

    line 46
  10. Common:

    Before importing a skill, remove target-specific operational state, credentials, tokens, private keys, client identifiers, personal …

    line 52
  11. Distinctive:

    Never paste raw private values into issues, PRs, commit messages, documentation, or CI output.

    line 54
  12. Very specific:

    use metadata in SKILL.md for machine-readable provenance such as author, source, upstream-version, upstream-revision, and provenance: …

    line 66
  13. Distinctive:

    add a visible attribution note in the skill or a linked reference so a reader cannot reasonably mistake the work for an original skill from …

    line 67
  14. Distinctive:

    If the upstream license or authorship is unclear, stop and resolve provenance before committing the import.

    line 70
  15. Very specific:

    create skills/<name>/SKILL.md and any support files.

    line 76
  16. Very specific:

    add it to the canonical skills catalog in flake.nix.

    line 77
  17. Very specific:

    update .github/workflows/nix.yml so CI checks the exported name and package.

    line 78
  18. Distinctive:

    add or adjust a client adapter only when current client behavior requires it.

    line 79
  19. Distinctive:

    update README/docs only when the new behavior changes repository semantics or setup.

    line 80
  20. Distinctive:

    run the narrowest relevant validation, then the full required checks.

    line 81
  21. Very specific:

    Do not edit generated installed copies of skills as their durable source.

    line 85
  22. Very specific:

    If setup is non-trivial, keep the skill contract short and link to references/ or docs/.

    line 103
  23. Very specific:

    Use skills/<name>/scripts/ as the deterministic execution layer when a skill owns repeatable mechanics that should not be regenerated by an …

    line 107
  24. Distinctive:

    Prefer a support script for:

    line 109
  25. Distinctive:

    use explicit argument vectors instead of constructing shell strings when practical.

    line 122
  26. Common:

    keep credentials and secret values out of output.

    line 125
  27. Distinctive:

    use minimal declared dependencies and prefer the standard library.

    line 126
  28. Very specific:

    Run the repository-authoritative manifest gate with bash scripts/validate-skills.

    line 134
  29. Very specific:

    every canonical skill passes bash scripts/validate-skills.

    line 138
  30. Very specific:

    every support script passes bash scripts/validate-support-scripts.

    line 139

≈ “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

AGENTS.md

Canonical instructions for agents editing this repository.

Contract

Skills are small operational contracts, not essays and not snapshots of the author's machine.

Prefer this semantic shape when it fits:

  1. Goal
  2. Input
  3. Output
  4. Rules or workflow

Front matter must identify the skill. The description field is selection metadata, not prose: use 2–8 comma-separated keywords only. Keep the body concise, preferably about 80 lines or less. Move detail into references/, scripts, or repository docs.

Canonical source

Every durable skill lives once under skills/<name>/.

Do not create independently edited OpenCode, Claude, .agents, Agent Zero, or other runtime copies. Client layouts are deployment adapters derived from the canonical package. $HOME/skills is the canonical local checkout for this repository.

See docs/formats.md for adapter, validation, and import rules.

Portability

Before adding or editing a skill, scan for author-specific assumptions:

  • lost-rob0t/* repositories;
  • usernames, hostnames, absolute home paths, or machine names;
  • private infrastructure or DNS;
  • a particular dotfiles/configuration manager;
  • MCP server names that only exist because of one personal config;
  • commands whose dependencies are not declared.

Convert those assumptions into portable semantics:

  • state the required capability, package, service, or protocol;
  • document the minimum installation/configuration needed;
  • discover the current user's real configuration source instead of assuming the author's;
  • when authorized and tooling permits, edit that source declaratively and document what changed;
  • keep an author-specific fast path only when it is explicitly scoped as compatibility, never as the universal default;
  • use configurable paths, environment variables, runtime discovery, or user-provided values instead of hardcoded personal paths.

Do not expose private infrastructure while making a skill portable.

Imported corpora

Raw agent backups are never repository content.

Before importing a skill, remove target-specific operational state, credentials, tokens, private keys, client identifiers, personal identifiers, addresses, internal DNS, target hosts, scan output, session state, and collected evidence. Preserve reusable technique, tooling, sequencing, verification, scripts, references, and assets.

Never paste raw private values into issues, PRs, commit messages, documentation, or CI output. Discuss the category of removed information instead.

External attribution

An externally authored skill must never be presented as original work from this repository or its maintainer.

For every external import or adaptation:

  • preserve the upstream project name and canonical source URL;
  • identify the upstream author, organization, or contributor group when the source provides it;
  • preserve and declare the upstream license;
  • record the imported version, tag, or commit revision when practical;
  • use metadata in SKILL.md for machine-readable provenance such as author, source, upstream-version, upstream-revision, and provenance: external-import;
  • add a visible attribution note in the skill or a linked reference so a reader cannot reasonably mistake the work for an original skill from this repository;
  • retain attribution when adapting, shortening, or wrapping the upstream work rather than deleting it because the local form changed.

If the upstream license or authorship is unclear, stop and resolve provenance before committing the import. Do not invent attribution.

Repository changes

For a new skill:

  1. create skills/<name>/SKILL.md and any support files;
  2. add it to the canonical skills catalog in flake.nix;
  3. update .github/workflows/nix.yml so CI checks the exported name and package;
  4. add or adjust a client adapter only when current client behavior requires it;
  5. update README/docs only when the new behavior changes repository semantics or setup;
  6. run the narrowest relevant validation, then the full required checks.

Existing lib.opencodeSkills and lib.opencodeSkillNames are compatibility aliases. They must reference the canonical catalog, not a second source tree.

Do not edit generated installed copies of skills as their durable source.

Dependencies

Declare only dependencies the skill actually needs. Prefer capabilities over personal implementation details.

Bad:

Use lost-rob0t/dotfiles and its prolog MCP config.

Better:

Requires a Prolog MCP server exposing the operations used below. Configure it in the user's agent runtime if absent.

If setup is non-trivial, keep the skill contract short and link to references/ or docs/.

Script-first execution

Use skills/<name>/scripts/ as the deterministic execution layer when a skill owns repeatable mechanics that should not be regenerated by an LLM.

Prefer a support script for:

  • discovery or capability probes;
  • scaffolding and canonical file creation;
  • multi-step verification gates;
  • adapter/bootstrap installation;
  • deterministic formatting, conversion, or validation;
  • lifecycle glue whose ordering, arguments, or failure handling matter.

Keep policy, choices, and interpretation in SKILL.md. Keep target-repository business logic in the target repository: if a maintained upstream CLI or script already owns an operation, call it instead of vendoring a second implementation here. Do not create a wrapper around a single stable upstream command unless the wrapper adds real validation, safety, atomicity, orchestration, or portability.

Support scripts must:

  • use explicit argument vectors instead of constructing shell strings when practical;
  • fail closed on ambiguity and existing state rather than guessing or overwriting;
  • provide --dry-run for meaningful mutations when practical;
  • keep credentials and secret values out of output;
  • use minimal declared dependencies and prefer the standard library;
  • expose useful exit status and --help behavior;
  • have focused tests for non-trivial logic.

Top-level scripts/ is repository maintenance only. Skill behavior belongs with the owning canonical package so it survives deployment to Agent Zero, OpenCode, and other adapters.

Verification

Run the repository-authoritative manifest gate with bash scripts/validate-skills; its Agent Skills specification/reference-validator revision is pinned in docs/formats.md. Run bash scripts/validate-support-scripts for skill support-script syntax.

A change is complete when:

  • every canonical skill passes bash scripts/validate-skills;
  • every support script passes bash scripts/validate-support-scripts;
  • the skill still performs the intended operation;
  • its description is 2–8 comma-separated keywords with no prose;
  • personal assumptions are scoped or removed;
  • dependencies and configuration are explicit;
  • links and paths resolve;
  • the canonical flake catalog, compatibility aliases, adapters, and CI agree;
  • required checks pass.

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.