Open-sourced Claude Code prompts reverse-engineered using Claude

A developer has open-sourced a collection of 26 prompts reverse-engineered from Claude Code's source code using Claude itself. The TypeScript source was briefly available as a public npm package before being taken down, during which time the developer studied every prompt in the codebase and used Claude to help rewrite them from scratch.
Prompt categories and structure
The collection contains:
- 1 system prompt covering identity, safety, code style, tool routing, and output rules
- 11 tool prompts for shell, file read/edit/write, grep, glob, web search/fetch, agent launcher, ask user, and plan mode
- 5 agent prompts: general purpose, code explorer, solution architect, verification specialist, and documentation guide
- 4 memory prompts for conversation summarization, session notes, memory extraction, and consolidation
- 1 coordinator prompt for multi-agent orchestration
- 4 utility prompts for session titles, tool summaries, away recaps, and next action suggestions
Notable implementation details
Several specific patterns emerged from the analysis:
- A dedicated verification agent whose entire job is to try to break implementations before reporting them as done
- 6 specific "rationalization patterns" the system watches for in itself, such as "the code looks correct based on my reading" which triggers the response "reading is not verification, run it"
- The memory system compresses conversations into 9 structured sections while preserving every user message
- The coordinator prompt includes the instruction "never delegate understanding" — requiring agents to prove they understood before handing off work
Legal and technical considerations
Every prompt was independently authored in the developer's own words, with automated originality checks confirming no verbatim matches with the original source. The repository includes a full disclaimer covering nominative fair use, non-affiliation with Anthropic, and a DMCA response policy. Legal consultation was obtained before publishing.
The repository is available at https://github.com/swati510/claude-code-prompts and is MIT licensed. The project is not affiliated with Anthropic.
📖 Read the full source: r/ClaudeAI
👀 See Also

Google PM Open-Sources Always On Memory Agent with SQLite Storage, No Vector DB
Google senior AI product manager Shubham Saboo has open-sourced an Always On Memory Agent that stores structured memories in SQLite instead of using vector databases, running on Gemini 3.1 Flash-Lite with scheduled memory consolidation every 30 minutes.

ToolLoop: Open-Source Framework for Claude-Style Tools with Any LLM
ToolLoop is an open-source Python framework with 11 tools for file operations, code search, shell access, and sub-agents that works with any LLM through LiteLLM. The 2,700-line framework allows switching models mid-conversation while maintaining shared context.

ClearSpec: A Spec Generator to Reduce Hallucination in Claude Code
ClearSpec is a tool that generates structured specifications from plain English descriptions, connecting to GitHub repos to reference real file paths and dependencies, then uses those specs as prompts for Claude Code to provide better context.

Implementing a Local Voice Assistant with Qwen3 on RTX 5060 Ti
A fully local home automation voice assistant using Qwen3 ASR, LLM, and TTS on an RTX 5060 Ti, featuring Morgan Freeman voice cloning and a variety of integration tools.