Claude Code System Prompts Reference
Study Claude Code system prompts, builtin tool descriptions, sub-agent prompts and utility prompts with this maintained GitHub reference collection today.
Claude Code System Prompts Reference
Key takeaways#
- This resource tracks the public GitHub repository
Piebald-AI/claude-code-system-prompts. - The repository collects Claude Code system prompt material, builtin tool descriptions, sub-agent prompts, utility prompts, and version-by-version prompt updates.
- Builders can use it to study how Claude Code frames tool use, planning, compacting, statusline behavior, WebFetch, Bash command handling, security review, and agent creation.
- Treat the repository as an educational reference. Do not copy private prompts into production systems without reviewing licensing, safety, and attribution.
What this resource is#
Claude Code System Prompts is a reference collection for people studying how Claude Code instructions are structured. The GitHub description says it includes all parts of Claude Code's system prompt, 27 builtin tool descriptions, sub-agent prompts for Plan, Explore, and Task, utility prompts for CLAUDE.md, compacting, statusline behavior, magic docs, WebFetch, Bash commands, security review, and agent creation. The repository also states that it is updated for each Claude Code version.
That makes it useful for developers who build agent frameworks, prompt libraries, Claude Code workflows, internal developer assistants, and security review tools. Instead of relying on vague commentary about how coding agents behave, builders can inspect concrete prompt and tool-description examples.
How builders can use it#
Use the repository to compare prompt structure across Claude Code versions, understand how builtin tools are described, and study the guardrails around shell execution, web fetching, context compaction, and sub-agent delegation. It is also useful when designing a CLAUDE.md file because it shows how Claude Code consumes project-level instructions and utility prompts.
A practical review workflow is simple: clone the repository, inspect the versioned prompt files, and create notes for the behaviors that matter to your own agent stack. For example, a team building a custom coding agent might compare how Claude Code frames planning prompts versus task execution prompts. A security team might focus on Bash command wording and security-review prompts. A documentation team might study WebFetch and magic-docs behavior.
What not to do#
This is not a runnable AI tool by itself. It is not an LLM, MCP server, or hosted product. It is a resource collection. Do not treat every string in the repository as a drop-in best practice. System prompts are tightly coupled to product runtime, model behavior, available tools, and safety policy. Copying them without adaptation can create brittle behavior.
Recommended next steps#
Start with the latest prompt version, then compare it with older versions to see what changed. Document the tool descriptions you want to emulate, the safety constraints you need to preserve, and the workflow patterns that map to your own environment. If you publish derivative prompts, cite the source repository and explain what you changed.