agentleFS
Rtur2003Rtur2003/Claude-Code-Promts-Skills/CLAUDE.md

Claude-Code-Promts-Skills

CLAUDE.md53 starsChanged 52 days agoMITView on GitHub

.claude/skills/find-prompt/SKILL.md ships with the repo. It routes any task to the right prompt(s). Keep its routing table in sync whenever a prompt is added, removed, or renamed (it is part of the "add a new prompt" checklist below). The library covers the current Claude Code / Claude ecosystem. Keep these accurate against code.claude.com/docs and platform.claude.com/docs: Every prompt follows this template:

The file

Show its rules and text

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

25 rules. About 0 are common, 11 are distinctive, and 14 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 14

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every prompt follows this template:

    line 79
  2. Very specific:

    Use # for title, ## for major sections, ### for subsections

    line 108
  3. Distinctive:

    Keep prompts concise — include token count in catalog tables

    line 114
  4. Very specific:

    Use ⭐ emoji only for recommended/primary prompts in catalogs

    line 115
  5. Very specific:

    No build system for the prompts themselves.

    line 119
  6. Very specific:

    Create prompts/english/agents/your-topic-prompt.md using the template above.

    line 138
  7. Very specific:

    Update prompts/english/agents/INDEX.md — the task router and the catalog table (with a ~token estimate)

    line 139
  8. Very specific:

    Update prompts/english/INDEX.md task router

    line 140
  9. Very specific:

    Add a row to .claude/skills/find-prompt/SKILL.md routing table

    line 141
  10. Distinctive:

    Add entry to the portfolio table and, if it is a recurring pairing, the Common Combinations table in README.md

    line 142
  11. Very specific:

    Add a line to llms.txt and REPOSITORY-MAP.md

    line 143
  12. Distinctive:

    Add entry to the Foundation & Project Prompts table in README.md

    line 148
  13. Distinctive:

    Add relevant combinations to the Common Combinations table in README.md

    line 149
  14. Very specific:

    Create a new file in prompts/english/examples/

    line 152
  15. Distinctive:

    Ensure all relative links still resolve

    line 157
  16. Very specific:

    Keep CHANGELOG.md updated for notable changes

    line 158
  17. Very specific:

    Add archive rationale in prompts/english/agents/archive/INDEX.md

    line 163
  18. Very specific:

    Update active catalogs (README.md, prompts/english/agents/INDEX.md, prompts/english/INDEX.md)

    line 164
  19. Distinctive:

    Don't add non-English content — this repo is English only

    line 190
  20. Distinctive:

    Don't deviate from the APEI methodology in prompt design

    line 192
  21. Distinctive:

    Don't remove the Remember section from prompts

    line 193
  22. Distinctive:

    Don't use absolute URLs for internal links — use relative paths

    line 194
  23. Very specific:

    Don't cite Claude Code features, commands, or model IDs from memory — verify against code.claude.com/docs / platform.claude.com/docs

    line 195
  24. Very specific:

    Don't reference retired models (claude-3-*, claude-opus-4-1, claude-sonnet-4-0, gpt-4o) as current

    line 196
  25. Distinctive:

    Don't add filler or AI-cliché phrasing.

    line 197

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

Project Overview

  • Name: Claude Code Prompts
  • Type: Prompt library (Markdown-first) plus a small set of real, tested scripts bundled as Claude Code skills (.claude/skills/*/scripts/) and safety hooks (hooks/scripts/) — see "Bundled skills and scripts" below
  • Purpose: Production-ready system prompts for Claude AI coding agents
  • Core Methodology: APEI cycle — Analyze → Plan → Execute → Iterate
  • License: MIT
  • Language: English only

Routing skill

.claude/skills/find-prompt/SKILL.md ships with the repo. It routes any task to the right prompt(s). Keep its routing table in sync whenever a prompt is added, removed, or renamed (it is part of the "add a new prompt" checklist below).

Repository Structure

├── CLAUDE.md              # This file — project memory
├── README.md              # Main catalog, portfolio table, common combinations
├── REPOSITORY-MAP.md      # 30-second orientation, task -> file lookup
├── QUICK-START.md         # 30-second setup guide
├── USAGE.md               # Scenario-based prompt composition
├── CONTRIBUTING.md        # Contribution guidelines
├── CHANGELOG.md           # Version history (current: 2.2.0)
├── llms.txt               # Full LLM router index
├── .claude-plugin/
│   └── plugin.json        # Plugin manifest — claude --plugin-dir installable
├── hooks/
│   ├── hooks.json          # PreToolUse wiring
│   └── scripts/            # block-destructive-commands.sh, block-secret-writes.sh
├── .claude/skills/         # 6 skills (routing + 4 deterministic checks + capability audit)
│   ├── find-prompt/
│   ├── deterministic-checks/
│   ├── changelog-from-commits/
│   ├── doc-link-audit/
│   ├── skill-audit/
│   └── capability-audit/
├── evals/                  # find-prompt routing-accuracy regression tests (static + live tiers)
├── .github/workflows/
│   └── quality-gate.yml    # CI: lint, link audit, skill audit, deterministic-checks, plugin validate, routing eval
└── prompts/
    └── english/
        ├── INDEX.md           # Global task -> file router
        ├── agents/            # Active agent prompts + compatibility stubs
        │   ├── INDEX.md       #   catalog with token counts + task router
        │   └── archive/       # Archived prompts removed from active catalog
        ├── base/              # Foundation prompt (universal best practices)
        ├── project-types/     # Domain-specific prompts (11 files)
        ├── examples/          # Real-world usage examples
        └── workflows/         # Model selection, native features, Agent SDK,
            └── INDEX.md       #   APEI, selection, troubleshooting, setup, maintenance

Claude Code operation prompts (agents/)

The library covers the current Claude Code / Claude ecosystem. Keep these accurate against code.claude.com/docs and platform.claude.com/docs:

  • agent-skills-prompt.md — SKILL.md authoring
  • mcp-integration-prompt.md — MCP servers, scopes, auth, injection safety
  • claude-code-plugins-prompt.md — plugin.json, marketplaces
  • multi-agent-orchestration-prompt.md — native subagents + dynamic workflows
  • hooks-automation-prompt.md — hook events and settings.json schema
  • claude-code-workflow-prompt.md — CLAUDE.md, rules, settings, permissions
  • claude-code-modes-prompt.md — adaptive thinking, effort, plan mode
  • workflows/model-selection-guide.md — model lineup and effort
  • workflows/claude-code-native-features-guide.md — the current feature surface
  • workflows/agent-sdk-guide.md — the Claude Agent SDK

File Naming Conventions

TypeFormatExample
Promptskebab-case-prompt.mdcode-review-prompt.md
Guideskebab-case-guide.mditerative-development-guide.md
Index filesINDEX.mdINDEX.md

Prompt Structure Standards

Every prompt follows this template:

# Prompt Title

> **Key Feature 1** | **Key Feature 2** | **Key Feature 3**

## Role
[Define what this prompt does]

## Protocol / Core Loop
[Main workflow — often uses a protocol acronym]

## Phases
[Phase details with templates and checklists]

## Remember
[Key takeaways — always the final section]

Key elements:

  • Protocol acronym: Each prompt defines a memorable acronym for its core loop
  • Phases: Detailed steps with Markdown templates and - [ ] checklists
  • Tables: Used for options, comparisons, and structured data
  • Code blocks: Used for command examples, templates, and diagrams
  • Remember section: Closing callout with priority rules (always last)

Markdown Style Guide

  • Use # for title, ## for major sections, ### for subsections
  • Tables for structured data (catalogs, options, comparisons)
  • > **bold text** for callout/subtitle lines under the title
  • Fenced code blocks with language tags where applicable
  • - [ ] checklists inside phases
  • --- horizontal rules to separate major sections
  • Keep prompts concise — include token count in catalog tables
  • Use ⭐ emoji only for recommended/primary prompts in catalogs

Build & Development

No build system for the prompts themselves. The bundled skill/hook scripts under .claude/skills/*/scripts/ and hooks/scripts/ are standalone (bash/Python, no install step, no dependency beyond what's noted in each SKILL.md).

  • Install: git clone the repo, or claude --plugin-dir <path> to try it as a plugin
  • Validate links: python3 .claude/skills/doc-link-audit/scripts/check_links.py . — real link/anchor checker, not a grep spot-check
  • Validate formatting: Open .md files in a Markdown previewer
  • Lint: npx markdownlint-cli2 '**/*.md'
  • Pre-commit scan: bash .claude/skills/deterministic-checks/scripts/scan.sh .
  • Skill quality check: python3 .claude/skills/skill-audit/scripts/audit.py .claude/skills
  • Plugin checks: claude plugin validate .claude-plugin/plugin.json and claude plugin validate .claude-plugin/marketplace.json
  • Routing eval: python3 evals/run_routing_eval.py
  • Native plugin evals: claude plugin eval . --no-publish (real model calls; use an explicit cost limit)

Bundled skills and scripts

.claude/skills/ ships 6 skills: find-prompt, 4 deterministic repository checks (deterministic-checks, changelog-from-commits, doc-link-audit, skill-audit), and capability-audit, a read-only GitHub evidence collector for third-party skills, plugins, MCP servers, and agent toolkits. hooks/ ships 2 PreToolUse safety scripts wired via hooks/hooks.json. Keep this section, README.md, REPOSITORY-MAP.md, llms.txt, the routing table, and eval cases in sync. Test every script against real input before documenting it as working.

Common Tasks

Add a new agent prompt

  1. Create prompts/english/agents/your-topic-prompt.md using the template above; open with a "Use this when" line and a "Skip to" anchor list
  2. Update prompts/english/agents/INDEX.md — the task router and the catalog table (with a ~token estimate)
  3. Update prompts/english/INDEX.md task router
  4. Add a row to .claude/skills/find-prompt/SKILL.md routing table
  5. Add entry to the portfolio table and, if it is a recurring pairing, the Common Combinations table in README.md
  6. Add a line to llms.txt and REPOSITORY-MAP.md

Add a new project-type prompt

  1. Create prompts/english/project-types/your-domain-prompt.md
  2. Update prompts/english/INDEX.md
  3. Add entry to the Foundation & Project Prompts table in README.md
  4. Add relevant combinations to the Common Combinations table in README.md

Add a usage example

  1. Create a new file in prompts/english/examples/
  2. Show real-world prompt usage with context and expected output

Update documentation

  1. Edit the relevant .md file
  2. Ensure all relative links still resolve
  3. Keep CHANGELOG.md updated for notable changes

Archive overlapping prompts

  1. Classify prompt as keep / merge / archive
  2. Move archived prompt to prompts/english/agents/archive/
  3. Add archive rationale in prompts/english/agents/archive/INDEX.md
  4. Update active catalogs (README.md, prompts/english/agents/INDEX.md, prompts/english/INDEX.md)

Quality Checklist

Before submitting changes:

  • Content is accurate and follows best practices
  • Markdown renders correctly (check headers, tables, code blocks)
  • No spelling or grammar errors
  • INDEX files updated if adding/removing prompts
  • All relative links resolve to existing files
  • Follows existing naming conventions (kebab-case-prompt.md)
  • New prompts include Role, Protocol, Phases, and Remember sections
  • README.md catalog tables updated if adding new prompts
  • Recommendations are concrete (no vague advice)

Commit Messages

feat: add security audit prompt       # New features
fix: correct typo in API prompt        # Fixes
docs: improve README examples          # Documentation
update: enhance code review checklist  # Updates

Things to Avoid

  • Don't add non-English content — this repo is English only
  • Don't add code beyond the bundled skill/hook scripts (.claude/skills/*/scripts/, hooks/scripts/) — the prompt content itself stays pure Markdown; a script added there must ship inside a skill with a SKILL.md documenting it, be dependency-free or note its dependency explicitly (see the jq note in hooks-automation-prompt.md), and be tested against real input before being documented as working
  • Don't deviate from the APEI methodology in prompt design
  • Don't remove the Remember section from prompts
  • Don't use absolute URLs for internal links — use relative paths
  • Don't cite Claude Code features, commands, or model IDs from memory — verify against code.claude.com/docs / platform.claude.com/docs
  • Don't reference retired models (claude-3-*, claude-opus-4-1, claude-sonnet-4-0, gpt-4o) as current
  • Don't add filler or AI-cliché phrasing; every sentence carries information

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.