agentleFS
shauryagangradeshauryagangrade/awesome-ai-prompts/AGENTS.md

awesome-ai-prompts

AGENTS.md81 starsChanged 38 days 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 code style.

    Of the AGENTS.md files we read, the 35,266 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 repositoryOne other file it gives its agents.

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
  1. Very specific:

    After changing any prompt file or README.md, run python3 scripts/build-all.py (not --check) and commit the regenerated site under website/ …

    line 35
  2. Very specific:

    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.

    line 82
  3. Distinctive:

    Prefer deriving a new check from the files on disk over growing either list.

    line 106
  4. Very specific:

    Everything under website/ is generated: Never hand-edit it: the main catalog (website/index.html), the per-category and per-prompt pages, …

    line 112
  5. Very specific:

    _typos.toml allowlists wrk, RTO, mis: Do not add a word unless it is a genuine domain term rather than a typo you introduced.

    line 124
  6. Distinctive:

    Keep that shape; dependabot updates the SHAs.

    line 129
  7. Distinctive:

    Do not machine-translate a prompt body.

    line 151

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

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/tests

ec (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 site under website/ (main catalog, per-category and per-prompt pages, sitemap, robots, llms). 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.

DiscovererMechanismSees untracked
build-all.py category_order()git ls-filesno
build-all.py prompt_files()filesystem globyes
check-links.sh section 1git ls-filesno
check-links.sh sections 2-4findyes
check-consistency.shfind / glob on */yes
check-prettier.shgit ls-files --othersyes

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 --check fails with "FAIL stale: website/...".
  • A brand new category folder that is untracked is invisible to the catalog and to check-links.sh section 1. Only check-consistency.sh catches 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.

  1. <category>/<slug>-prompt.md - H1, usage note, Keywords: line, ---, body.
  2. README.md Contents line, byte-exact. Section 4 uses grep -qxF, a whole-line exact match: - [Core coding](#core-coding) (15) <img src="docs/media/spec-badge.svg" alt="spec" style="vertical-align:-3px">
  3. README.md section listing: - [<slug>-prompt.md](<category>/<slug>-prompt.md) - one-line description
  4. <category>/README.md - one-line entry, plus the ../README.md#<anchor> backlink.
  5. CHANGELOG.md [Unreleased] - matched by basename only.
  6. website/ - regenerate the site (index.html, category/, prompt/, sitemap.xml, robots.txt, llms.txt).

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 to README 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.
  • Everything under website/ is generated. Never hand-edit it: the main catalog (website/index.html), the per-category and per-prompt pages, and website/sitemap.xml, website/robots.txt, and website/llms.txt all come from scripts/build-all.py. Generated files are excluded from typos and editorconfig-checker via website/**; the prettier glob only covers md/json/yaml/css, so HTML is never prettier-checked.
  • 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.json sets proseWrap: 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.toml allowlists wrk, 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, with scripts/tests/ under it.
  • <category>/ - 13 prompt folders, each with a README.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.

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.