From d1437449dddae84e888f4751e18add2e6153e135 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 5 Dec 2025 17:33:08 -0700 Subject: [PATCH] v2.0.58 --- README.md | 10 +++++----- system-prompts/agent-prompt-session-notes-template.md | 9 ++++++--- .../agent-prompt-session-notes-update-instructions.md | 6 +++--- ...-actions-workflow-for-automated-code-review-beta.md | 4 ++-- ...data-github-actions-workflow-for-claude-mentions.md | 4 ++-- system-prompts/system-prompt-main-system-prompt.md | 4 ++-- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ac0fc81..0d99a89 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.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. --> diff --git a/system-prompts/agent-prompt-session-notes-template.md b/system-prompts/agent-prompt-session-notes-template.md index a2fed82..32f5df8 100644 --- a/system-prompts/agent-prompt-session-notes-template.md +++ b/system-prompts/agent-prompt-session-notes-template.md @@ -1,12 +1,15 @@ # 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?_ diff --git a/system-prompts/agent-prompt-session-notes-update-instructions.md b/system-prompts/agent-prompt-session-notes-update-instructions.md index e0a38ed..d747fe5 100644 --- a/system-prompts/agent-prompt-session-notes-update-instructions.md +++ b/system-prompts/agent-prompt-session-notes-update-instructions.md @@ -1,7 +1,7 @@ @@ -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}} diff --git a/system-prompts/data-github-actions-workflow-for-automated-code-review-beta.md b/system-prompts/data-github-actions-workflow-for-automated-code-review-beta.md index 9778f02..48fcc2a 100644 --- a/system-prompts/data-github-actions-workflow-for-automated-code-review-beta.md +++ b/system-prompts/data-github-actions-workflow-for-automated-code-review-beta.md @@ -1,7 +1,7 @@ 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:*)"' diff --git a/system-prompts/data-github-actions-workflow-for-claude-mentions.md b/system-prompts/data-github-actions-workflow-for-claude-mentions.md index 625a1e3..d589f84 100644 --- a/system-prompts/data-github-actions-workflow-for-claude-mentions.md +++ b/system-prompts/data-github-actions-workflow-for-claude-mentions.md @@ -1,7 +1,7 @@ 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:*)' diff --git a/system-prompts/system-prompt-main-system-prompt.md b/system-prompts/system-prompt-main-system-prompt.md index 0683e7f..2a3185f 100644 --- a/system-prompts/system-prompt-main-system-prompt.md +++ b/system-prompts/system-prompt-main-system-prompt.md @@ -1,7 +1,7 @@