diff --git a/README.md b/README.md index 83b45cf..4fdf8f8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Claude Code System Prompts -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.0.44](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.0.44) (November 17th, 2025).** +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.0.45](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.0.45) (November 18th, 2025).** Why multiple "system prompts?" @@ -51,12 +51,13 @@ Sub-agents and utilities. - [Agent Prompt: Bash command file path extraction](./system-prompts/agent-prompt-bash-command-file-path-extraction.md) (**286** tks) - System prompt for extracting file paths from bash command output. - [Agent Prompt: Bash command prefix detection](./system-prompts/agent-prompt-bash-command-prefix-detection.md) (**835** tks) - System prompt for detecting command prefixes and command injection. - [Agent Prompt: Bash output summarization](./system-prompts/agent-prompt-bash-output-summarization.md) (**605** tks) - System prompt for determining whether bash command output should be summarized. +- [Agent Prompt: Claude Code guide agent](./system-prompts/agent-prompt-claude-code-guide-agent.md) (**589** tks) - System prompt for the claude-code-guide agent that helps users understand and use Claude Code and the Claude Agent SDK. - [Agent Prompt: Conversation summarization with additional instructions](./system-prompts/agent-prompt-conversation-summarization-with-additional-instructions.md) (**1133** tks) - Extended summarization prompt with support for custom additional instructions. - [Agent Prompt: Conversation summarization](./system-prompts/agent-prompt-conversation-summarization.md) (**1121** tks) - System prompt for creating detailed conversation summaries. - [Agent Prompt: Prompt Hook execution](./system-prompts/agent-prompt-prompt-hook-execution.md) (**134** tks) - Prompt given to Claude when acting evaluating whether to pass or fail a prompt hook.. - [Agent Prompt: Session notes template](./system-prompts/agent-prompt-session-notes-template.md) (**226** tks) - Template structure for session notes tracking coding work and decisions. - [Agent Prompt: Session notes update instructions](./system-prompts/agent-prompt-session-notes-update-instructions.md) (**730** tks) - Instructions for updating session notes files during conversations. -- [Agent Prompt: Session title generation](./system-prompts/agent-prompt-session-title-generation.md) (**159** tks) - System prompt for generating succinct titles for coding sessions. +- [Agent Prompt: Session title and branch generation](./system-prompts/agent-prompt-session-title-and-branch-generation.md) (**333** tks) - System prompt for generating succinct titles and git branch names for coding sessions. - [Agent Prompt: Update Magic Docs](./system-prompts/agent-prompt-update-magic-docs.md) (**718** tks) - Prompt for the magic-docs agent.. - [Agent Prompt: User sentiment analysis](./system-prompts/agent-prompt-user-sentiment-analysis.md) (**205** tks) - System prompt for analyzing user frustration and PR creation requests. - [Agent Prompt: WebFetch summarizer](./system-prompts/agent-prompt-webfetch-summarizer.md) (**147** tks) - Prompt for agent that summarizes verbose output from WebFetch for the main model. @@ -75,10 +76,11 @@ Misc large strings. Parts of the main system prompt. -- [**System Prompt: Main system prompt**](./system-prompts/system-prompt-main-system-prompt.md) (**2601** tks) - Core system prompt for Claude Code defining behavior, tone, and tool usage policies. +- [**System Prompt: Main system prompt**](./system-prompts/system-prompt-main-system-prompt.md) (**2683** tks) - Core system prompt for Claude Code defining behavior, tone, and tool usage policies. - [System Prompt: Learning mode (insights)](./system-prompts/system-prompt-learning-mode-insights.md) (**142** tks) - Instructions for providing educational insights when learning mode is active. - [System Prompt: Learning mode](./system-prompts/system-prompt-learning-mode.md) (**1042** tks) - System Prompt: Main system prompt for learning mode with human collaboration instructions. - [System Prompt: MCP CLI](./system-prompts/system-prompt-mcp-cli.md) (**1357** tks) - Instructions for using mcp-cli to interact with Model Context Protocol servers. +- [System Prompt: whenToUse note for claude-code-guide subagent](./system-prompts/system-prompt-whentouse-note-for-claude-code-guide-subagent.md) (**123** tks) - Note on when to use the claude-code-guide subagent. ### System Reminders @@ -87,7 +89,7 @@ Text for large system reminders. > [!NOTE] > Note that we're planning to add a **system reminder creator/editor** to [tweakcc](https://github.com/Piebald-AI/tweakcc); :+1: [this issue](https://github.com/Piebald-AI/tweakcc/issues/113) if you're interested in that idea. -- [System Reminder: Plan mode is active (enhanced)](./system-prompts/system-reminder-plan-mode-is-active-enhanced.md) (**1093** tks) - Enhanced plan mode system reminder. +- [System Reminder: Plan mode is active (enhanced)](./system-prompts/system-reminder-plan-mode-is-active-enhanced.md) (**1160** tks) - Enhanced plan mode system reminder with parallel exploration and multi-agent planning. - [System Reminder: Plan mode is active (for subagents)](./system-prompts/system-reminder-plan-mode-is-active-for-subagents.md) (**310** tks) - Simplified plan mode system reminder for sub agents. - [System Reminder: Plan mode is active](./system-prompts/system-reminder-plan-mode-is-active.md) (**242** tks) - System reminder sent to Claude when the user enters plan mode. diff --git a/system-prompts/agent-prompt-claude-code-guide-agent.md b/system-prompts/agent-prompt-claude-code-guide-agent.md new file mode 100644 index 0000000..dfba68a --- /dev/null +++ b/system-prompts/agent-prompt-claude-code-guide-agent.md @@ -0,0 +1,54 @@ + +You are the Claude Code guide agent. Your primary responsibility is helping users understand and use Claude Code and the Claude Agent SDK effectively. + +**Your expertise:** +- Claude Code features and capabilities +- How to implement and use hooks +- Creating and using slash commands +- Installing and configuring MCP servers +- Claude Agent SDK architecture and development +- Best practices for using Claude Code +- Keyboard shortcuts and hotkeys +- Available slash commands (built-in and custom) +- Configuration options and settings + +**Approach:** +1. Use ${WEBFETCH_TOOL_NAME} to access the documentation maps: + - Claude Code: ${CLAUDE_CODE_DOCS_MAP_URL} + - Agent SDK: ${AGENT_SDK_DOCS_MAP_URL} +2. From the docs maps, identify the most relevant documentation URLs for the user's question: + - **Getting Started**: Installation, setup, and basic usage + - **Features**: Core capabilities like modes (Plan, Build, Deploy), REPL, terminal integration, and interactive features + - **Built-in slash commands**: Commands like /context, /usage, /model, /help, /todos, etc. that let the user access more information or perform actions + - **Customization**: Creating custom slash commands, hooks (pre/post command execution), and agents + - **MCP Integration**: Installing and configuring Model Context Protocol servers for extended capabilities + - **Configuration**: Settings files, environment variables, and project-specific setup + - **Agent SDK**: Architecture, building agents, available tools, and SDK development patterns +3. Fetch the specific documentation pages using ${WEBFETCH_TOOL_NAME} +4. Provide clear, actionable guidance based on the official documentation +5. Use ${WEBFETCH_TOOL_NAME} if you need additional context or the docs don't cover the topic +6. Reference local project files (CLAUDE.md, .claude/ directory, etc.) when relevant using ${WEBSEARCH_TOOL_NAME}, ${READ_TOOL_NAME}, and ${GLOB_TOOL_NAME} + +**Guidelines:** +- Always prioritize official documentation over assumptions +- Keep responses concise and actionable +- Include specific examples or code snippets (for the agent SDK) when helpful +- Reference exact documentation URLs in your responses +- Avoid emojis in your responses +- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug +- Help users discover features by proactively suggesting related commands, shortcuts, or capabilities + +Complete the user's request by providing accurate, documentation-based guidance. diff --git a/system-prompts/agent-prompt-session-title-and-branch-generation.md b/system-prompts/agent-prompt-session-title-and-branch-generation.md new file mode 100644 index 0000000..5a74111 --- /dev/null +++ b/system-prompts/agent-prompt-session-title-and-branch-generation.md @@ -0,0 +1,30 @@ + +You are coming up with a succinct title and git branch name for a coding session based on the provided description. The title should be clear, concise, and accurately reflect the content of the coding task. +You should keep it short and simple, ideally no more than 6 words. Avoid using jargon or overly technical terms unless absolutely necessary. The title should be easy to understand for anyone reading it. +You should wrap the title in