Claude Code Prompt Collection
Community-authored, illustrative prompt templates for AI coding agents — system prompts, tool prompts, agent delegation, memory management, and multi-agent coordination — checked against Claude Code's official docs.
title: "Claude Code Prompt Collection" description: "Community-authored, illustrative prompt templates for AI coding agents — system prompts, tool prompts, agent delegation, memory management, and multi-agent coordination — checked against Claude Code's official docs." section: "Claude" readTime: "4 min"
Claude Code Prompt Collection
A community-authored collection of prompt templates for building AI coding agents. The prompts were written from scratch to illustrate how production coding agents structure safety rules, route tools, delegate to subagents, and manage memory.
These are not Claude Code's real internal prompts. Anthropic does not publish Claude Code's full system prompt, tool descriptions, or internal helper prompts (summaries, session notes, memory extraction), and they change between releases. Everything in this section is an illustrative, community-reconstructed example. Where a page states a fact about Claude Code itself (tool names, defaults, memory limits, subagent fields), it is checked against the official docs and links to them; the prompt wording is not.
Attribution: Source: repowise-dev/claude-code-prompts — MIT License. Independently authored by the RepoWise team. Not affiliated with Anthropic.
What's Inside
| Category | Count | Covers |
|---|---|---|
| System Prompts | 2 | Agent identity, safety rules, code style, tool routing, output format; multi-agent coordinator |
| Tool Prompts | 11 | Bash, Read, Edit, Write, Grep, Glob, WebSearch, WebFetch, Agent, AskUserQuestion, plan mode |
| Agent Prompts | 5 | General purpose, code explorer, solution architect, verification specialist, documentation guide |
| Memory Prompts | 4 | Conversation summarization, session notes, memory extraction, memory consolidation |
| Utility Prompts | 4 | Session titles, tool summaries, away recaps, next-action suggestions |
| Patterns | 9 | Commentary on each pattern with reusable templates |
Quick Start
- Browse the Patterns page to understand how production coding agents structure their prompts.
- Adapt any template from System Prompts or Tool Prompts for your own agent. To change Claude Code itself, use CLAUDE.md, skills, subagents, and hooks instead (see the Core section); you cannot replace its built-in prompts.
- Replace
{{PLACEHOLDER}}values with your stack, tool names, and risk policy. - The Agent Prompts section covers specialized subagent prompts you can use as the body of a custom subagent file (
.claude/agents/<name>.md) in Claude Code.
How the Prompts Fit Together
┌─────────────────────────────────────────────┐
│ SYSTEM PROMPT │
│ Identity · Safety · Code Style · Tools │
└───────────────────┬─────────────────────────┘
│ governs
┌───────────┼───────────┐
▼ ▼ ▼
TOOL PROMPTS AGENT PROMPTS MEMORY PROMPTS
Shell · File Explorer · Summary ·
Grep · Glob Architect · Session Notes ·
Web · Agent Verifier · Extraction ·
Ask · Plan Docs Guide Consolidation
│
▼
UTILITY PROMPTS
Title · Summary · Recap · Next Action
The system prompt is the behavioral contract that governs all other activity. Tool prompts define how each individual tool should be used. Agent prompts configure specialized subagents. Memory prompts manage context across long sessions. Utility prompts handle small UX details like session titles and away recaps.
Prompt Engineering Methodology
These prompts illustrate common patterns in production coding agents:
- Layered priority — system instructions take precedence over developer instructions, then user instructions, then tool feedback (a design convention; in Claude Code, instructions in CLAUDE.md are context, not enforced rules)
- Intent-based tool routing — each tool has clear rules for when to use it and what NOT to use it for
- Risk-tiered caution — low/medium/high risk tiers with different safeguard requirements
- Adversarial verification — verification means running commands and checking output, not reading code and deciding it "looks correct"
- Minimal context memory — compact memory objects with explicit expiry for stale assumptions
See the Patterns page for deep analysis of each pattern with reusable templates.
Official Guidance
For prompting Claude itself, the primary sources are:
- Claude prompting best practices on platform.claude.com (clear and direct instructions, context and motivation, examples, XML tags, roles, long-context placement, tool use, thinking, agentic systems)
- The Claude Code docs for how it works, memory, subagents, skills, hooks, and the tools reference
Current models named in that guidance include Fable 5.1, Opus 5.5, Sonnet 5.5, and Haiku 5.5. The Patterns page summarizes the parts most relevant to coding agents.
Not affiliated with or endorsed by Anthropic. "Claude Code" is used here to describe the subject matter under nominative fair use.