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.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- shellSkill
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
- Very specific: line 25
Use $HOME/~ generically.
- Distinctive: line 26
Local-only by default: do not git push, change remotes, or alter repository visibility unless the human explicitly asks.
- Very specific: line 28
YAML is schema-backed: every tracked *.yml, *.yaml, and CITATION.cff starts with a yaml-language-server JSON Schema modeline.
- Very specific: line 58
Keep SKILL.md files short.
≈ “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.
Files
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
- Never leave the tree red.
task ciandtask hooksmust pass before you commit. - 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.
- No personal data, secrets, or machine-specific paths in any tracked file.
Use
$HOME/~generically. - Local-only by default: do not
git push, change remotes, or alter repository visibility unless the human explicitly asks. - YAML is schema-backed: every tracked
*.yml,*.yaml, andCITATION.cffstarts with ayaml-language-serverJSON 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 discoveryThe 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 undershellcheck --severity=warningandshfmt. Usemktemp+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.mdfiles short; put depth inreference/. - Match the existing rationale-first tone; no filler.
Map
| Path | What |
skills/<domain>/SKILL.md | agent-facing skills (frontmatter + instructions) |
reference/*.md | in-depth references with citations |
examples/<domain>/ | runnable good/bad pairs |
tools/, tests/ | verification scripts and the bats suite |
Taskfile.yml | task runner entrypoints |
.agents/skills/ | Codex repo-scope skill symlinks to skills/ |
.codex/config.toml | trusted Codex project defaults |
.codex-plugin/, .claude-plugin/ | Codex and Claude Code plugin manifests |
CHATGPT.md, llms.txt | ChatGPT/Codex handoff and crawler-friendly index |
REGISTRY.md | directory compatibility notes and listing drafts |
schemas/ | project-owned JSON Schemas |
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
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.

