agentleFS
natnewnatnew/Awesome-Prompt-Engineering/CLAUDE.md

Awesome-Prompt-Engineering

CLAUDE.md115 starsChanged 4 months agoMITView on GitHub

Awesome-Prompt-Engineering is a curated awesome list for prompt engineering and context engineering for AI agents, published to GitHub Pages with Jekyll (just-the-docs remote theme) at https://natnew.github.io/Awesome-Prompt-Engineering/. README.md is the canonical artefact. Curation beats accumulation. AGENTS.md is the canonical operating protocol: scope, trust boundary, quality bar, link rules, decision matrix, review workflows, protected areas. Do not restate it here; read it before any review or README edit. Then load only what the task needs: .github/copilot-instructions.md mirrors these rules for Copilot. If…

The file

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

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    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:

    No build step is needed to validate content.

    line 55
  2. Very specific:

    All Contributors: npx all-contributors-cli add USERNAME TYPE, then npx all-contributors-cli generate.

    line 63
  3. Very specific:

    No broad sweeps: Do not reformat, reorder or re-case content the task does not touch, and do not "fix" rules disabled in …

    line 78
  4. Distinctive:

    Read the issue or diff, then the target section and its neighbours.

    line 85
  5. Distinctive:

    Run the duplicate search and verify the link before judging the entry.

    line 86
  6. Distinctive:

    If scope, placement, credibility or maintainer intent is uncertain, recommend before editing.

    line 87
  7. Distinctive:

    Before finishing: review git diff, confirm only intended files changed, and run the link check on edited files where lychee is available.

    line 89
  8. Distinctive:

    Never merge, close, label or restructure on your own initiative.

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.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
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Awesome-Prompt-Engineering is a curated awesome list for prompt engineering and context engineering for AI agents, published to GitHub Pages with Jekyll (just-the-docs remote theme) at https://natnew.github.io/Awesome-Prompt-Engineering/. README.md is the canonical artefact. Curation beats accumulation.

Authority and routing

AGENTS.md is the canonical operating protocol: scope, trust boundary, quality bar, link rules, decision matrix, review workflows, protected areas. Do not restate it here; read it before any review or README edit. Then load only what the task needs:

TaskRead
README entry add/edit/remove.github/instructions/readme-curation.instructions.md, link-and-source-quality.instructions.md
PR / issue review, contributor replies.github/instructions/contribution-review.instructions.md
Typos, wording, small Markdown fixes.github/instructions/repository-maintenance.instructions.md
Contributor requirements (≥60 stars, >30 days old)Contributing.md, Workflow.md, .github/pull_request_template.md

.github/copilot-instructions.md mirrors these rules for Copilot. If you change a rule, change it in AGENTS.md or the relevant .instructions.md file, not here.

Repository layout

  • Root *.md topic pages (Basic_Prompting.md, AI_Tools.md, Articles.md, Resources.md, …) are linked from the README Contents table. Each Foo.md renders to Foo.html, so internal links point to .html; do not change them to .md.
  • foundations/, patterns/, templates/, resources/: long-form learning material.
  • projects/: worked case studies. Some include Python reference code and pytest suites (projects/core/01_rag_evaluation_pipeline/tests/). This is the only executable code in the repository.
  • Site machinery: _config.yaml, _layouts/default.html, assets/css/. Protected.
  • AI Glossary.csv is linked from AI_Glossary.md as a download; keep terms in step when editing either.

Commands

# Duplicate check: search the name AND the URL's host/path across all content
rg -n -i "<project name>|<host/path>" --glob "*.md" --glob "*.csv"

# Link check (same tool CI runs on PRs that touch *.md; skips go in .lychee-ignore)
lychee --exclude '*.png' --timeout 15 README.md

# Markdown lint (lenient config; not run in CI)
npx markdownlint-cli2 "README.md"

# Project tests (only when projects/ Python changes)
python -m pytest projects/core/01_rag_evaluation_pipeline/tests -q

No build step is needed to validate content. Jekyll builds on GitHub Pages.

Automation already in place

  • .github/workflows/link-check.yml: lychee on every PR that changes *.md.
  • .github/workflows/claude.yml: runs Claude Code on @claude mentions in issues and PRs with read-only repository permissions. In that context, reply with a recommendation; do not attempt to push, label, merge or close.
  • All Contributors: npx all-contributors-cli add USERNAME TYPE, then npx all-contributors-cli generate. Never edit the generated table by hand.

Invariants easy to break

  • Entry format follows the local section. README list sections use - [Name](URL) — Description (em dash); Contributing.md shows a hyphen; several topic pages use tables. Match neighbouring entries, including whether descriptions end with a full stop. New entries go at the bottom of the section unless it is ordered.
  • Case-insensitive checkout. AGENTS.md (agent protocol) and the former Agents.md topic page collide on Windows and macOS. Do not create a root Agents.md; the README Contents link to Agents.html currently has no source page.
  • Protected areas are listed in AGENTS.md (badges, Announcements, contributor block, cross-list navigation, licence, site machinery). Change .all-contributorsrc only through the CLI.
  • No broad sweeps. Do not reformat, reorder or re-case content the task does not touch, and do not "fix" rules disabled in .markdownlint-cli2.jsonc.
  • Verify, do not infer. Fetch the resource before describing it; check stars, age and canonical URL on the source itself.

Working method

  1. Read the issue or diff, then the target section and its neighbours.
  2. Run the duplicate search and verify the link before judging the entry.
  3. If scope, placement, credibility or maintainer intent is uncertain, recommend before editing. Otherwise make the smallest safe edit.
  4. Before finishing: review git diff, confirm only intended files changed, and run the link check on edited files where lychee is available.

Never merge, close, label or restructure on your own initiative. For batches (several PRs or many links), independent verification can run in parallel; a single entry does not need subagents.

Output for reviews

  • Decision: accept / maintainer edit / request changes / close / park
  • Reason: 1–3 bullets, citing evidence checked (link, stars, duplicates)
  • Suggested entry, in the target section's exact format
  • Maintainer comment: short, warm, decision-oriented (style in AGENTS.md)
  • Files changed, and any remaining uncertainty

Commits: one logical change, conventional prefix (docs:, feat:, chore:), on a feature branch off main.

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.