mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-05-31 06:04:19 +08:00
v2.0.58
This commit is contained in:
parent
b024f55eb4
commit
d1437449dd
10
README.md
10
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.57](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.0.57) (December 2nd, 2025).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 38 versions since v2.0.14.
|
||||
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.58](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.0.58) (December 3rd, 2025).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 39 versions since v2.0.14.
|
||||
|
||||
Why multiple "system prompts?"
|
||||
|
||||
@ -57,8 +57,8 @@ Sub-agents and utilities.
|
||||
- [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: Prompt Suggestion Generator](./system-prompts/agent-prompt-prompt-suggestion-generator.md) (**143** tks) - Prompt for generating suggestions for the user input after Claude responds..
|
||||
- [Agent Prompt: Session notes template](./system-prompts/agent-prompt-session-notes-template.md) (**260** 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) (**759** tks) - Instructions for updating session notes files during conversations.
|
||||
- [Agent Prompt: Session notes template](./system-prompts/agent-prompt-session-notes-template.md) (**292** 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) (**756** tks) - Instructions for updating session notes files during conversations.
|
||||
- [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.
|
||||
@ -69,8 +69,8 @@ Sub-agents and utilities.
|
||||
|
||||
Misc large strings.
|
||||
|
||||
- [Data: GitHub Actions workflow for @claude mentions](./system-prompts/data-github-actions-workflow-for-claude-mentions.md) (**531** tks) - GitHub Actions workflow template for triggering Claude Code via @claude mentions.
|
||||
- [Data: GitHub Actions workflow for automated code review (beta)](./system-prompts/data-github-actions-workflow-for-automated-code-review-beta.md) (**573** tks) - GitHub Actions workflow template for automated Claude Code reviews using direct_prompt.
|
||||
- [Data: GitHub Actions workflow for @claude mentions](./system-prompts/data-github-actions-workflow-for-claude-mentions.md) (**527** tks) - GitHub Actions workflow template for triggering Claude Code via @claude mentions.
|
||||
- [Data: GitHub Actions workflow for automated code review (beta)](./system-prompts/data-github-actions-workflow-for-automated-code-review-beta.md) (**569** tks) - GitHub Actions workflow template for automated Claude Code reviews using direct_prompt.
|
||||
- [Data: GitHub App installation PR description](./system-prompts/data-github-app-installation-pr-description.md) (**424** tks) - Template for PR description when installing Claude Code GitHub App integration.
|
||||
-->
|
||||
|
||||
|
||||
@ -1,12 +1,15 @@
|
||||
<!--
|
||||
name: 'Agent Prompt: Session notes template'
|
||||
description: Template structure for session notes tracking coding work and decisions
|
||||
ccVersion: 2.0.50
|
||||
ccVersion: 2.0.58
|
||||
-->
|
||||
|
||||
# Session Title
|
||||
_A short and distinctive 5-10 word descriptive title for the session. Super info dense, no filler_
|
||||
|
||||
# Current State
|
||||
_What is actively being worked on right now? Pending tasks not yet completed. Immediate next steps._
|
||||
|
||||
# Task specification
|
||||
_What did the user ask to build? Any design decisions or other explanatory context_
|
||||
|
||||
@ -16,8 +19,8 @@ _What are the important files? In short, what do they contain and why are they r
|
||||
# Workflow
|
||||
_What bash commands are usually run and in what order? How to interpret their output if not obvious?_
|
||||
|
||||
# User Corrections / Mistakes
|
||||
_What did the user correct Assistant about? What did not work and should not be tried again?_
|
||||
# Errors & Corrections
|
||||
_Errors encountered and how they were fixed. What did the user correct? What approaches failed and should not be tried again?_
|
||||
|
||||
# Codebase and System Documentation
|
||||
_What are the important system components? How do they work/fit together?_
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
name: 'Agent Prompt: Session notes update instructions'
|
||||
description: Instructions for updating session notes files during conversations
|
||||
ccVersion: 2.0.50
|
||||
ccVersion: 2.0.58
|
||||
variables:
|
||||
- MAX_SECTION_TOKENS
|
||||
-->
|
||||
@ -18,7 +18,7 @@ Your ONLY task is to use the Edit tool to update the notes file, then stop. You
|
||||
|
||||
CRITICAL RULES FOR EDITING:
|
||||
- The file must maintain its exact structure with all sections, headers, and italic descriptions intact
|
||||
-- NEVER modify, delete, or add section headers (the lines starting with '##' like ## Task specification)
|
||||
-- NEVER modify, delete, or add section headers (the lines starting with '#' like # Task specification)
|
||||
-- NEVER modify or delete the italic _section description_ lines (these are the lines in italics immediately following each header - they start and end with underscores)
|
||||
-- The italic _section descriptions_ are TEMPLATE INSTRUCTIONS that must be preserved exactly as-is - they guide what content belongs in each section
|
||||
-- ONLY update the actual content that appears BELOW the italic _section descriptions_ within each existing section
|
||||
@ -29,8 +29,8 @@ CRITICAL RULES FOR EDITING:
|
||||
- For "Key results", include the complete, exact output the user requested (e.g., full table, full answer, etc.)
|
||||
- Do not include information that's already in the CLAUDE.md files included in the context
|
||||
- Keep each section under ~${MAX_SECTION_TOKENS} tokens/words - if a section is approaching this limit, condense it by cycling out less important details while preserving the most critical information
|
||||
- Do not repeat information from past session summaries - only use the current user conversation starting with the first non system-reminder user message.
|
||||
- Focus on actionable, specific information that would help someone understand or recreate the work discussed in the conversation
|
||||
- IMPORTANT: Always update "Current State" to reflect the most recent work - this is critical for continuity after compaction
|
||||
|
||||
Use the Edit tool with file_path: {{notesPath}}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
name: 'Data: GitHub Actions workflow for automated code review (beta)'
|
||||
description: GitHub Actions workflow template for automated Claude Code reviews using direct_prompt
|
||||
ccVersion: 2.0.14
|
||||
ccVersion: 2.0.58
|
||||
-->
|
||||
name: Claude Code Review
|
||||
|
||||
@ -57,6 +57,6 @@ jobs:
|
||||
Use \`gh pr comment\` with your Bash tool to leave your review as a comment on the PR.
|
||||
|
||||
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
||||
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
|
||||
# or https://code.claude.com/docs/en/cli-reference for available options
|
||||
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
name: 'Data: GitHub Actions workflow for @claude mentions'
|
||||
description: GitHub Actions workflow template for triggering Claude Code via @claude mentions
|
||||
ccVersion: 2.0.14
|
||||
ccVersion: 2.0.58
|
||||
-->
|
||||
name: Claude Code
|
||||
|
||||
@ -50,6 +50,6 @@ jobs:
|
||||
|
||||
# Optional: Add claude_args to customize behavior and configuration
|
||||
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
||||
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
|
||||
# or https://code.claude.com/docs/en/cli-reference for available options
|
||||
# claude_args: '--allowed-tools Bash(gh pr:*)'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
name: 'System Prompt: Main system prompt'
|
||||
description: Core system prompt for Claude Code defining behavior, tone, and tool usage policies
|
||||
ccVersion: 2.0.56
|
||||
ccVersion: 2.0.58
|
||||
variables:
|
||||
- OUTPUT_STYLE_CONFIG
|
||||
- SECURITY_POLICY
|
||||
@ -30,7 +30,7 @@ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are con
|
||||
|
||||
If the user asks for help or wants to give feedback inform them of the following:
|
||||
- /help: Get help with using Claude Code
|
||||
- To give feedback, users should ${{ISSUES_EXPLAINER:"report the issue at https://github.com/anthropics/claude-code/issues",PACKAGE_URL:"@anthropic-ai/claude-code",README_URL:"https://docs.claude.com/s/claude-code",VERSION:"<<CCVERSION>>",FEEDBACK_CHANNEL:"https://github.com/anthropics/claude-code/issues"}.ISSUES_EXPLAINER}
|
||||
- To give feedback, users should ${{ISSUES_EXPLAINER:"report the issue at https://github.com/anthropics/claude-code/issues",PACKAGE_URL:"@anthropic-ai/claude-code",README_URL:"https://code.claude.com/docs/en/overview",VERSION:"<<CCVERSION>>",FEEDBACK_CHANNEL:"https://github.com/anthropics/claude-code/issues"}.ISSUES_EXPLAINER}
|
||||
|
||||
# Looking up your own documentation:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user