Reverse-engineering Claude Code's brain, one prompt at a time
A practical prompt library for building AI coding agents that don't hallucinate their way through your codebase.

What it does
This repo publishes independently written prompt templates that replicate the behavioral patterns behind Claude Code — system prompts, tool routing, agent delegation, memory management, and multi-agent coordination. You copy, customize placeholders, and drop them into your own agent setup. There’s even a skills/ folder ready for Cursor IDE’s ~/.cursor/skills-cursor/ directory.
The interesting bit The authors didn’t scrape Anthropic’s prompts — they studied how Claude Code behaves in practice, then rewrote the patterns from scratch. The result is a taxonomy of what makes coding agents reliable: reversibility tiers for destructive actions, adversarial verification with PASS/FAIL/PARTIAL verdicts, and a 9-section conversation compression format for long sessions.
Key highlights
- 26 complete prompt files across 7 categories (system, tool, agent, memory, coordinator, utility, Cursor skills)
- 9 pattern analysis docs explaining the engineering rationale behind each design choice
- Tool prompts cover shell execution with git safety, exact-string file editing, web fetch with mandatory citations, and structured user questioning
- Memory prompts handle session summarization, persistent memory extraction, and periodic consolidation
- Coordinator prompt implements multi-worker orchestration with synthesis and verification workflows
- MIT licensed; explicit disclaimer of Anthropic affiliation
Caveats
- Heavy cross-promotion of RepoWise (the authors’ codebase intelligence tool) throughout the README
- No empirical benchmarks or comparative evaluations against other prompt libraries
- Contributing rules forbid verbatim vendor text, so drift from actual Claude Code behavior is possible and untested
Verdict Worth bookmarking if you’re building or tuning an AI coding agent and want production-grade prompt scaffolding without starting from zero. Skip it if you’re looking for validated performance data or a plug-and-play alternative to Claude Code itself.