awesome-ai-prompts
AGENTS.md67 starsChanged 3 months agoMITView on GitHub
Working notes for coding agents. Everything here was read out of scripts/ and .github/workflows/, not out of the prose docs. Where the two disagree, the scripts win. A docs repo: 101 prompt files in 13 category folders. The only real code is scripts/: two Python scripts (the catalog generator and the external-link checker), three bash linters, and their tests. There is no app, no root package.json, no Makefile, and no test framework beyond unittest. 30 tests cover the scripts. This…
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,736 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.
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
After changing any prompt file or README.md, run python3 scripts/build-all.py (not --check) and commit the regenerated ALL_PROMPTS.html.
- Very specific: line 80
If the prompt is [spec], also add its path to SPEC_PROMPTS in scripts/check-consistency.sh and put the badge img on its README listing line.
- Distinctive: line 104
Prefer deriving a new check from the files on disk over growing either list.
- Very specific: line 110
ALL_PROMPTS.htmlis generated: Never hand-edit it. It is excluded from typos, editorconfig-checker, and the prettier glob. - Very specific: line 118
_typos.tomlallowlistswrk,RTO,mis: Do not add a word unless it is a genuine domain term rather than a typo you introduced. - Distinctive: line 123
Keep that shape; dependabot updates the SHAs.
- Distinctive: line 145
Do not machine-translate a prompt body.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Working notes for coding agents. Everything here was read out of scripts/ and
.github/workflows/, not out of the prose docs. Where the two disagree, the
scripts win.
What this repo is
A docs repo: 101 prompt files in 13 category folders. The only real code is
scripts/: two Python scripts (the catalog generator and the external-link
checker), three bash linters, and their tests. There is no app, no root
package.json, no Makefile, and no test framework beyond unittest. 30 tests
cover the scripts.
Verify before you finish
This is the CI contract. Run it in this order.
bash scripts/check-prettier.sh
npx --yes markdownlint-cli2@0.17.2 "**/*.md" "#docs/media/demo-app" "#drafts" "#tmp"
bash scripts/check-links.sh
python3 scripts/build-all.py --check
BASE_REF=origin/main bash scripts/check-consistency.sh
typos .
ruff check scripts/
shellcheck scripts/*.sh
actionlint && zizmor .github/workflows/
python3 -m unittest discover -s scripts/testsec (editorconfig-checker) and gitleaks are also CI jobs but need a binary
install; skip them unless you are touching line endings or adding a secret.
After changing any prompt file or README.md, run python3 scripts/build-all.py
(not --check) and commit the regenerated ALL_PROMPTS.html. CI fails on a
stale catalog.
Stage new files before running the gates
The gates do not all discover files the same way, so a half-staged tree gives green-looking results that are not.
| Discoverer | Mechanism | Sees untracked |
build-all.py category_order() | git ls-files | no |
build-all.py prompt_files() | filesystem glob | yes |
check-links.sh section 1 | git ls-files | no |
check-links.sh sections 2-4 | find | yes |
check-consistency.sh | find / glob on */ | yes |
check-prettier.sh | git ls-files --others | yes |
Two consequences, both reproduced:
- A new prompt file dropped into an existing category is picked up by the
catalog even while untracked, because
prompt_files()globs the filesystem.build-all.py --checkfails with "committed ALL_PROMPTS.html is stale". - A brand new category folder that is untracked is invisible to the catalog
and to
check-links.shsection 1. Onlycheck-consistency.shcatches it, by iterating folders on disk.
So git add new files before running the gates, or trust nothing.
Adding a prompt touches six places
check-consistency.sh fails if any of these drifts. CONTRIBUTING.md mentions
most of them but not the exact-match requirement.
<category>/<slug>-prompt.md- H1, usage note,Keywords:line,---, body.README.mdContents line, byte-exact. Section 4 usesgrep -qxF, a whole-line exact match:- [Core coding](#core-coding) (15) <img src="docs/media/spec-badge.svg" alt="spec" style="vertical-align:-3px">README.mdsection listing:- [<slug>-prompt.md](<category>/<slug>-prompt.md) - one-line description<category>/README.md- one-line entry, plus the../README.md#<anchor>backlink.CHANGELOG.md[Unreleased]- matched by basename only.ALL_PROMPTS.html- regenerate.
If the prompt is [spec], also add its path to SPEC_PROMPTS in
scripts/check-consistency.sh and put the badge img on its README listing
line. The badge on the Contents line is derived from SPEC_PROMPTS, so it is
not a separate manual edit.
Anchors
Hand-maintained in meta_for(). An & in a heading vanishes and leaves a
double hyphen: Data & AI is #data--ai, Code review & quality is
#code-review--quality, Frontend & UI is #frontend--ui. Guessing a single
hyphen fails only when the link check runs.
Adding a category touches two hand-maintained lists
Both in scripts/check-consistency.sh, which is the gate that fails most often:
CATEGORIES- space-separated folder names.meta_for()- folder toREADME heading|contents anchor.
Plus the folder with its own README.md, and a ## section plus a Contents
entry in README.md. Any other top-level folder must be added to the exclusion
case in section 3 (scripts | docs | assets | i18n) or it is reported as a
category with no README section.
Prefer deriving a new check from the files on disk over growing either list.
House rules
- No em dashes anywhere. CI runs
git grep -I -l $'\u2014'. Use an ASCII hyphen. ALL_PROMPTS.htmlis generated. Never hand-edit it. It is excluded fromtypos,editorconfig-checker, and the prettier glob.- The first
---is the prompt boundary. Above it is the intro (title, usage note,Keywords:); below it is what the user pastes. Nothing above the divider may be needed in order to use the prompt. .prettierrc.jsonsetsproseWrap: preserve. Prettier will not rewrap your prose, so wrap near 79 columns yourself to match the file. It will still fix list markers, spacing, and table alignment._typos.tomlallowlistswrk,RTO,mis. Do not add a word unless it is a genuine domain term rather than a typo you introduced.docs/media/demo-app/is vendored and excluded from markdownlint, prettier, and typos. Leave it alone.- Workflow
uses:refs are pinned to 40-char SHAs with a version comment. Keep that shape; dependabot updates the SHAs. - Commits are Conventional Commits, one logical change per PR, and a PR body that explains why.
The CHANGELOG gate can silently skip
check-consistency.sh section 2 diffs ${BASE_REF}...HEAD for added
*prompt.md files. When BASE_REF cannot be resolved it prints
SKIP changelog check, which is what happens in a shallow clone. If you see
that line, the CHANGELOG requirement did not actually run.
Translations are exempt from the English bookkeeping
i18n/<lang>/<category>/<slug>-prompt.md is a downstream mirror of an English
prompt. Those files are excluded by english_prompts(), so they need no
README.md section, no Contents entry, no [Unreleased] CHANGELOG line, and no
catalog entry.
They do need the full prompt structure including a Keywords: line, but written
in the target language. The lowercase-and-comma-separated format is enforced on
English prompts only, so accented and non-Latin scripts pass.
Do not machine-translate a prompt body. It is a set of instructions an agent follows literally, not prose, and no gate in this repo can detect a rule that a translation inverted.
Layout
scripts/- the gates and the catalog generator, withscripts/tests/under it.<category>/- 13 prompt folders, each with aREADME.md.i18n/- translated mirrors, excluded from the English gates.docs/- media, usage stories, and a vendored demo app.assets/- social preview sources (the SVG is the editable original).tmp/,drafts/,instagram post pictures/- gitignored local scratch. Never commit, and never let a gate read them.
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.

