Skip to content

Latest commit

 

History

606 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.267 (September 9th, 2026). It also contains a CHANGELOG.md for the system prompts across 284 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: /doctor slash command description (372 tks) - Trigger description for the /doctor slash command covering setup health, unused extensions, memory cleanup, hooks, updates, and permission prompts.
  • Skill: /doctor slash command (15695 tks) - Diagnostic workflow for auditing and fixing Claude Code installation health, unused context, local memory duplication, hooks, version currency, and permission prompts.
  • Skill: /explain-usage slash command (449 tks) - Analyzes the current session transcript into cost-weighted token usage groups, charts the results, and explains them in plain language.
  • Skill: /init CLAUDE.md and skill setup (new version) (7828 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 (247 tks) - Formats and displays the insights usage report results after the user runs the /insights slash command.
  • Skill: /loop cloud-first scheduling offer (730 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 (1212 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) (951 tks) - Parses user input into an interval and prompt for scheduling recurring or dynamically self-paced loop executions.
  • Skill: /stuck (background-daemon diagnostics) (273 tks) - The background-daemon troubleshooting section of the /stuck skill.
  • Skill: /stuck slash command (964 tks) - Diagnoses frozen or slow Claude Code sessions.
  • Skill: Artifact PR review description (composed publish flow) (178 tks) - Trigger description for the composed PR review briefing Artifact flow with republish-only updates.
  • Skill: Artifact components (2397 tks) - Catalogs reusable Artifact components and supplies the exact scripts, styles, tokens, markup contract, and composition limits for embedding interactive decision blocks.
  • Skill: Artifact dashboard (2057 tks) - Instructions for creating dashboard artifacts with KPI tiles, chart specifications, and breakdown tables from the built-in template.
  • Skill: Artifact data table (2016 tks) - Skill instructions for creating interactive data-table artifacts with sortable, filterable tabular data, safe JSON embedding, theming, and template-preservation requirements.
  • Skill: Artifact diagramming (1352 tks) - Provides Artifact diagramming guidance, including when diagrams add value and how to build legible theme-aware inline SVG.
  • Skill: Artifact document (1977 tks) - Skill instructions for creating live editable document artifacts with structured prose, status metadata, commenting, and template-preservation requirements.
  • Skill: Artifact explainer (2024 tks) - Instructions for creating explainer artifacts with numbered-step or section walkthrough structures from the built-in template.
  • Skill: Artifact report (1930 tks) - Instructions for creating long-form report artifacts with a masthead, table of contents, structured sections, and optional appendix from the built-in template.
  • Skill: Artifact whiteboard when-to-use guidance (182 tks) - When-to-use guidance for proactively offering a whiteboard during architecture, multi-component planning, or repeated clarification while limiting the offer to once per session.
  • Skill: Claude Code configuration guide (2477 tks) - Skill instructions for answering Claude Code configuration questions by checking the running build, bundled references, and current documentation.
  • Skill: Claude guide unavailable reference fallback (344 tks) - Provides the Claude guide skill with an embedded live-sources reference and fallback instructions when its reference files cannot be written to disk.
  • 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) (241 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 (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 Review correctness finder angles (414 tks) - Shared /code-review finder-angle block covering line-by-line diff scanning, removed-behavior auditing, and cross-file tracing.
  • Skill: Code Review inline medium/high template (592 tks) - Template for medium and high inline code-review prompts that run eight finder angles, deduplicate without verification, and enforce a minimum findings target.
  • Skill: Code Review inline xhigh mode (1189 tks) - Extra-high inline /code-review prompt that runs ten finder angles, deduplicates without verification, sweeps for gaps, and returns up to fifteen findings.
  • Skill: Code Review low effort expanded-findings mode (646 tks) - Low-effort /code-review prompt that reads the diff once, returns up to eight hunk-visible findings, and targets at least min(files_changed, 4) genuine findings.
  • Skill: Computer Use MCP (1731 tks) - Instructions for using computer-use MCP tools including tool selection tiers, app access tiers, link safety, and financial action restrictions.
  • Skill: Data Visualization description (496 tks) - Trigger description for the Data Visualization skill covering charts, graphs, dashboards, palettes, stat tiles, and related visualization requests.
  • Skill: Data Visualization (2901 tks) - Skill instructions for producing accessible, brand-neutral charts, graphs, dashboards, and data visualizations using a validated method.
  • Skill: Debugging (653 tks) - Instructions for debugging an issue that the user is encountering in the Claude Code session.
  • Skill: Design description (352 tks) - Trigger description for the Design skill, covering editable multi-artboard canvas Artifacts for interfaces, marketing graphics, and print layouts.
  • Skill: Dynamic pacing loop execution (1139 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: Import to Claude Code (418 tks) - Generated SKILL.md instructing Claude to finish importing leftover foreign-agent config that claude import could not map automatically.
  • Skill: Multiplayer whiteboard description (211 tks) - Trigger description for the multiplayer Whiteboard skill, covering creation of a live shared canvas with synchronized strokes, cursors, session presence, pasted images, and Claude drawing.
  • Skill: Plugin authoring (2584 tks) - Guides function-hook plugin development using generated type declarations, local loading and validation, UI rendering hooks, dispatch lifetimes, and registered tools.
  • Skill: Plugin eval authoring interview (5036 tks) - Guided interview for creating Claude plugin eval suites under evals/ with gated inputs, graders, calibration, and cost checks.
  • Skill: Prototype description (151 tks) - Trigger description for the Prototype skill, covering working proof-of-concept Artifacts and optional in-place feature demonstrations.
  • Skill: Prototype runtime capabilities guidance (242 tks) - Explains when prototype Artifacts should use user-granted runtime capabilities and requires loading the artifact-capabilities skill before relying on live data or actions.
  • Skill: Run CLI tool example (648 tks) - Example file for the Run app skill showing how to document building, invoking, and testing a CLI tool.
  • Skill: Run TUI interactive terminal app example (1292 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 (1315 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 (1413 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 (835 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 template (1596 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 (1364 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 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 (475 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 (3308 tks) - Guided Cowork setup flow that helps the user pick a role, install matching plugins, connect tools, try a skill, configure writing voice, 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 (1213 tks) - Where Claude Code stores settings.json across scopes.
  • Skill: Verify CLI changes (example for Verify skill) (772 tks) - Example workflow for verifying a CLI change, as part of the Verify skill.
  • Skill: Verify server/API changes (example for Verify skill) (793 tks) - Example workflow for verifying a server/API change, as part of the Verify skill.
  • Skill: Whiteboard description (228 tks) - Trigger description for the Whiteboard skill, covering creation of a shared sketch canvas for collaborative drawing, design discussion, and planning.
  • Skill: Workflow authoring reference (6322 tks) - Skill reference for authoring Workflow scripts, covering script persistence, metadata, agent hooks, isolation, concurrency, budgeting, quality patterns, and resume behavior.
  • 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

Stars

12.6k stars

Watchers

132 watching

Forks

Releases

Packages

Contributors

Languages