Skip to content

Piebald-AI/claude-code-system-prompts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

488 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check out Piebald

We've released Piebald, the ultimate agentic AI developer experience.
Download it and try it out for free! https://piebald.ai/

Join our Discord X

Scroll down for Claude Code's system prompts. 👇

Claude Code System Prompts

Mentioned in Awesome Claude Code

Tip

NEW (June 12, 2026): We've greatly expanded this list with many more of Claude Code's prompts—from 350 to 515 (+165)—our most complete coverage yet.

This repository contains an up-to-date list of all Claude Code's various system prompts and their associated token counts as of Claude Code v2.1.201 (July 3rd, 2026). It also contains a CHANGELOG.md for the system prompts across 227 versions since v2.0.14. From the team behind Piebald.

This repository is updated within minutes of each Claude Code release. See the changelog, and follow @PiebaldAI on X for a summary of the system prompt changes in each release.

Note

Star this repository to get notified about new Claude Code versions. For each new Claude Code version, we create a release on GitHub, which will notify all users who've starred the repository.


Why multiple "system prompts?"

Claude Code doesn't just have one single string for its system prompt.

Instead, there are:

  • Large portions conditionally added depending on the environment and various configs.
  • Descriptions for builtin tools like Write, Bash, and TodoWrite, and some are fairly large.
  • Separate system prompts for builtin agents like Explore and Plan.
  • Numerous AI-powered utility functions, such as conversation compaction, CLAUDE.md generation, session title generation, etc. featuring their own systems prompts.

The result—500+ strings that are constantly changing and moving within a very large minified JS file.

Important

Want to modify a particular piece of the system prompt in your own Claude Code installation? Use tweakcc. It—

  • lets you customize the individual pieces of the system prompt as markdown files, and then
  • patches your npm-based or native (binary) Claude Code installation with them, and also
  • provides diffing and conflict management for when both you and Anthropic have conflicting modifications to the same prompt file.

Extraction

This repository contains the system prompts extracted using a script from the latest npm version of Claude Code. As they're extracted directly from Claude Code's compiled source code, they're guaranteed to be exactly what Claude Code uses. If you use tweakcc to customize the system prompts, it works in a similar way—it patches the exact same strings in your local installation as are extracted into this repository.

Prompts

Note that some prompts contain interpolated bits such as builtin tool name references, lists of available sub agents, and various other context-specific variables, so the actual counts in a particular Claude Code session will differ slightly—likely not beyond ±20 tokens, however.

Agent Prompts

Sub-agents and utilities.

Sub-agents

Creation Assistants

Slash Commands

Utilities

Data

The content of various template files embedded in Claude Code.

System Prompt

Parts of the main system prompt.

System Reminders

Text for large system reminders.

Builtin Tool Descriptions

Additional notes for some Tool Descriptions

Skills

Built-in skill prompts for specialized tasks.

  • Skill: /code-review efficiency dimension (106 tks) - Code-review pass that surfaces wasted effort the diff adds — duplicate computation or I/O, avoidable serialization, large scopes held by closures — and points to the cheaper option.
  • Skill: /design-sync package source shape (16174 tks) - Shape-specific /design-sync instructions for syncing a React design system from a built package without Storybook.
  • Skill: /init CLAUDE.md and skill setup (new version) (7589 tks) - A comprehensive onboarding flow for setting up CLAUDE.md and related skills/hooks in the current repository, including codebase exploration, user interviews, and iterative proposal refinement.
  • Skill: /insights report output (182 tks) - Formats and displays the insights usage report results after the user runs the /insights slash command.
  • Skill: /loop cloud-first scheduling offer (510 tks) - Decision tree for offering cloud-based scheduling before falling back to local session loops in the /loop command.
  • Skill: /loop local runtime note (96 tks) - Conditional /loop confirmation note explaining that local loops run only until the current session closes.
  • Skill: /loop self-pacing mode (678 tks) - Instructs Claude how to self-pace a recurring loop by arming event monitors as primary wake signals and scheduling fallback heartbeat delays between iterations.
  • Skill: /loop slash command (dynamic mode) (514 tks) - Parses user input into an interval and prompt for scheduling recurring or dynamically self-paced loop executions.
  • Skill: /loop slash command (969 tks) - Parses user input into an interval and prompt, converts the interval to a cron expression, and schedules a recurring task.
  • Skill: /stuck (background-daemon diagnostics) (181 tks) - The background-daemon troubleshooting section of the /stuck skill.
  • Skill: /stuck slash command (964 tks) - Diagnozse frozen or slow Claude Code sessions.
  • Skill: Agent Design Patterns (2864 tks) - Reference guide covering decision heuristics for building agents on the Claude API, including tool surface design, context management, caching strategies, and composing tool calls.
  • Skill: Artifact design (2870 tks) - Design guidance skill for producing distinctive, polished artifacts by calibrating visual treatment, applying design fundamentals, planning color/type/layout, and avoiding templated AI-generated defaults.
  • Skill: Auto mode setup (15001 tks) - Guided setup and customization workflow for auto mode environment context, optional rule carve-outs, and settings updates.
  • Skill: Build with Claude API (reference guide) (1054 tks) - Template for presenting language-specific reference documentation with quick task navigation.
  • Skill: Building LLM-powered applications with Claude (28436 tks) - Guides Claude in building LLM-powered applications using the Anthropic SDK, covering language detection, API surface selection (Claude API vs Managed Agents), model defaults, thinking/effort configuration, and language-specific documentation reading.
  • Skill: Claude Code configuration guide (1564 tks) - Skill instructions for answering Claude Code configuration questions by checking the running build, bundled references, and current documentation.
  • Skill: Code Review (Angle B — removed-behavior auditor) (94 tks) - Code-review finder angle that, for each deleted or rewritten line, names the behavior it guaranteed and confirms the new code still guarantees it.
  • Skill: Code Review (Angle C — cross-file tracer) (88 tks) - Code-review finder angle that follows each changed function out to its callers, checking the diff hasn't broken a call-site contract.
  • Skill: Code Review (Angle D — language-pitfall specialist) (101 tks) - Code-review finder angle that hunts for the well-known traps of the diff's language or framework.
  • Skill: Code Review (Angle E — wrapper/proxy correctness) (126 tks) - Code-review finder angle for wrapping types (caches, proxies, decorators), checking every method forwards faithfully to the wrapped object.
  • Skill: Code Review (Output — findings JSON array) (137 tks) - Defines the code-review skill's result shape: a JSON array of findings carrying file, line, summary, and failure_scenario.
  • Skill: Code Review (Phase 0 — gather the diff) (135 tks) - Opening step of the code-review skill: assemble the unified diff to review with git diff.
  • Skill: Code Review (Phase 2 — verify, 3-state) (125 tks) - Precision-tier verification step: run one verifier per candidate finding, each voting CONFIRMED, PLAUSIBLE, or REFUTED.
  • Skill: Code Review (Phase 2 — verify, recall-biased) (137 tks) - Recall-tier verification step: one verifier per candidate finding, biased toward keeping anything plausible.
  • Skill: Code Review (Phase 3 — sweep for gaps) (131 tks) - Final code-review sweep: a clean-slate reviewer re-reads the diff to catch defects the earlier passes missed.
  • Skill: Code Review (altitude dimension) (61 tks) - Code-review dimension: check whether each change is implemented at the right depth rather than as a fragile special case.
  • Skill: Code Review (conventions dimension) (0 tks) - Code-review dimension: flag diff lines that break a rule stated in an applicable CLAUDE.md (user, repo-root, or ancestor-directory), quoting the exact rule and offending line, and emit nothing when no CLAUDE.md governs the change.
  • Skill: Code walkthrough (806 tks) - Generates an interactive explainer artifact for a file, directory, PR, or reference so newcomers can understand the code.
  • Skill: Computer Use MCP (1206 tks) - Instructions for using computer-use MCP tools including tool selection tiers, app access tiers, link safety, and financial action restrictions.
  • Skill: Cowork plugin authoring (4791 tks) - Skill instructions for creating or customizing Cowork plugins, including mode selection, research, implementation, packaging, connector replacement, and plugin delivery.
  • Skill: Data Visualization description (403 tks) - Trigger description for the Data Visualization skill covering charts, graphs, dashboards, palettes, stat tiles, and related visualization requests.
  • Skill: Data Visualization (2790 tks) - Skill instructions for producing accessible, brand-neutral charts, graphs, dashboards, and data visualizations using a validated method.
  • Skill: Debugging (417 tks) - Instructions for debugging an issue that the user is encountering in the Claude Code session.
  • Skill: Design sync Storybook source shape (25255 tks) - Design sync sub-skill instructions for using a repo's Storybook as the fidelity oracle when building, validating, matching, uploading, and re-syncing component previews.
  • Skill: Design sync (9610 tks) - Skill for syncing a React design system to claude.ai/design by configuring the target project, running the converter, verifying previews, and uploading verified artifacts.
  • Skill: Dynamic pacing loop execution (598 tks) - Step-by-step instructions for executing a dynamic pacing loop that runs tasks, arms persistent monitors for event-gated waits, schedules fallback heartbeat ticks, and handles task notifications.
  • Skill: Generate permission allowlist from transcripts (2408 tks) - Analyzes session transcripts to extract frequently used read-only tool-call patterns and adds them to the project's .claude/settings.json permission allowlist to reduce permission prompts.
  • Skill: Model migration guide (53429 tks) - Step-by-step instructions for migrating existing code to newer Claude models, covering breaking changes, deprecated parameters, per-SDK syntax, prompt-behavior shifts, and migration checklists.
  • Skill: PR explainer (678 tks) - Generates a shareable pull request walkthrough artifact covering what changed, why, and where reviewers should focus.
  • Skill: Plan Artifact (711 tks) - Skill instructions for creating or customizing shareable plan artifacts from implementation plans, design docs, or RFCs.
  • Skill: Plugin eval authoring interview (2891 tks) - Guided interview for creating Claude plugin eval suites under evals/ with gated inputs, graders, calibration, and cost checks.
  • Skill: Run CLI tool example (499 tks) - Example file for the Run app skill showing how to document building, invoking, and testing a CLI tool.
  • Skill: Run Electron desktop GUI app example (4625 tks) - Example file for the Run app skill showing how to launch an Electron desktop app under xvfb and drive it through a Playwright REPL driver.
  • Skill: Run TUI interactive terminal app example (1004 tks) - Example file for the Run app skill showing how to drive an interactive terminal app with tmux, readiness polling, pane capture, key references, and cleanup.
  • Skill: Run app (999 tks) - Skill for launching and driving the current project's app through its real runtime surface using project-specific run skills or fallback patterns.
  • Skill: Run browser-driven web app example (1002 tks) - Example file for the Run app skill showing how to start a web dev server, drive it with chromium-cli, capture screenshots, and document app-specific gotchas.
  • Skill: Run library SDK example (653 tks) - Example file for the Run app skill showing how to document building, testing, and smoke-checking a library or SDK at its public package boundary.
  • Skill: Run skill generator (4681 tks) - Skill for authoring or improving a project-specific run skill that documents verified build, launch, runtime driving, and troubleshooting steps.
  • Skill: Run skill template (1216 tks) - Template file for the Run skill generator showing the frontmatter and section structure for a project-specific run skill.
  • Skill: Run web server API example (890 tks) - Example file for the Run app skill showing how to document a server or API lifecycle with background launch, readiness checks, curl verification, and shutdown.
  • Skill: Schedule recurring cron and execute immediately (compact) (173 tks) - Instructions for creating a recurring cron job, confirming the schedule with the user, and immediately executing the parsed prompt without waiting for the first cron fire.
  • Skill: Schedule recurring cron and run immediately (271 tks) - Converts an interval to a cron expression, schedules a recurring task via the cron creation tool, confirms to the user, and immediately executes the task without waiting for the first cron fire.
  • Skill: Setup Cowork role selection (470 tks) - First step of the setup-cowork skill that explains Cowork, asks for the user's role, calls ShowOnboardingRolePicker, or falls back to a plain-text role list.
  • Skill: Setup Cowork (802 tks) - Guided Cowork setup flow that helps the user pick a role, install a matching plugin, try a skill, connect tools, and wrap up.
  • Skill: Team onboarding guide (521 tks) - Template for onboarding a new teammate to a team's Claude Code setup, walking them through usage stats, setup checklists, MCP servers, skills, and team tips in a warm conversational style.
  • Skill: Update Claude Code Config (1195 tks) - Skill for modifying Claude Code configuration file (settings.json).
  • Skill: Update config description (170 tks) - Update-config skill description (settings.json hooks, perms, env).
  • Skill: Update config settings file locations (792 tks) - Where Claude Code stores settings.json across scopes.
  • Skill: Verify CLI changes (example for Verify skill) (565 tks) - Example workflow for verifying a CLI change, as part of the Verify skill.
  • Skill: Verify server/API changes (example for Verify skill) (612 tks) - Example workflow for verifying a server/API change, as part of the Verify skill.
  • Skill: Verify skill (4292 tks) - Skill for opinionated verification workflow for validating code changes.
  • Skill: update-config (7-step verification flow) (1160 tks) - A skill that guides Claude through a 7-step process to construct and verify hooks for Claude Code, ensuring they work correctly in the user's specific project environment.

About

All parts of Claude Code's system prompt, 27 builtin tool descriptions, sub agent prompts (Plan/Explore/Task), utility prompts (CLAUDE.md, compact, statusline, magic docs, WebFetch, Bash cmd, security review, agent creation). Updated for each Claude Code version.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors