agentleFS
posidoniposidoni/shell-skill/AGENTS.md

shell-skill

AGENTS.md1 starsChanged 4 months agoMITView on GitHub

Guidance for AI coding agents — OpenAI Codex, GitHub Copilot, Claude Code, Cursor, and any other tool that reads an AGENTS.md. Humans should start with README.md and CONTRIBUTING.md. This repo is public. Do not push or publish anything without Mikhail's explicit permission. Editing locally and showing the diff is fine. Shell Skill Kit teaches safe, correct shell (Bash, Zsh, POSIX sh) and Nushell through cited rules, runnable good/bad examples, and loadable agent skills. The stable technical id remains shell-skill. 1.…

  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Use $HOME/~ generically.

    line 25
  2. Distinctive:

    Local-only by default: do not git push, change remotes, or alter repository visibility unless the human explicitly asks.

    line 26
  3. Very specific:

    YAML is schema-backed: every tracked *.yml, *.yaml, and CITATION.cff starts with a yaml-language-server JSON Schema modeline.

    line 28
  4. Very specific:

    Keep SKILL.md files short.

    line 58

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

Guidance for AI coding agents — OpenAI Codex, GitHub Copilot, Claude Code, Cursor, and any other tool that reads an AGENTS.md. Humans should start with README.md and CONTRIBUTING.md.

Public repo

This repo is public. Do not push or publish anything without Mikhail's explicit permission. Editing locally and showing the diff is fine.

What this repository is

Shell Skill Kit teaches safe, correct shell (Bash, Zsh, POSIX sh) and Nushell through cited rules, runnable good/bad examples, and loadable agent skills. The stable technical id remains shell-skill.

Golden rules

  1. Never leave the tree red. task ci and task hooks must pass before you commit.
  2. Every shell/Nushell snippet must be correct and safe. A broken or unsafe example is a critical bug — this repo's whole purpose is to be trustworthy.
  3. No personal data, secrets, or machine-specific paths in any tracked file. Use $HOME/~ generically.
  4. Local-only by default: do not git push, change remotes, or alter repository visibility unless the human explicitly asks.
  5. YAML is schema-backed: every tracked *.yml, *.yaml, and CITATION.cff starts with a yaml-language-server JSON Schema modeline.

Workflow

task --list      # discover every entrypoint
task fmt         # format shell scripts (shfmt -w)
task ci          # fmt-check, lint, examples, nushell, nushell-demo, yaml-schemas, ai-integrations, test
task hooks       # lefthook run pre-commit --all-files
task yaml-schemas # ensure YAML-like files declare JSON Schemas
task ai-integrations # validate Codex/ChatGPT discovery

The example contract

Examples live in examples/<domain>/ as paired files plus a per-domain README:

  • NN-slug.good.sh — correct pattern; self-contained, no args, exits 0, clean under shellcheck --severity=warning and shfmt. Use mktemp + trap.
  • NN-slug.bad.sh — safe-to-run anti-pattern with one directive: # expect-shellcheck: SC#### (codes ShellCheck must report) or # expect-shellcheck: none (a style-guide-only pitfall).

Nushell examples are *.nu and must pass nu --ide-check.

Conventions

  • Conventional Commits (feat:/fix:/docs:/test:/chore:/build:/ci:).
  • Keep SKILL.md files short; put depth in reference/.
  • Match the existing rationale-first tone; no filler.

Map

PathWhat
skills/<domain>/SKILL.mdagent-facing skills (frontmatter + instructions)
reference/*.mdin-depth references with citations
examples/<domain>/runnable good/bad pairs
tools/, tests/verification scripts and the bats suite
Taskfile.ymltask runner entrypoints
.agents/skills/Codex repo-scope skill symlinks to skills/
.codex/config.tomltrusted Codex project defaults
.codex-plugin/, .claude-plugin/Codex and Claude Code plugin manifests
CHATGPT.md, llms.txtChatGPT/Codex handoff and crawler-friendly index
REGISTRY.mddirectory compatibility notes and listing drafts
schemas/project-owned JSON Schemas

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.