diff --git a/system-prompts/agent-prompt-pr-comments-slash-command.md b/system-prompts/agent-prompt-pr-comments-slash-command.md index 1e23c31..849dd73 100644 --- a/system-prompts/agent-prompt-pr-comments-slash-command.md +++ b/system-prompts/agent-prompt-pr-comments-slash-command.md @@ -3,7 +3,7 @@ name: 'Agent Prompt: /pr-comments slash command' description: System prompt for fetching and displaying GitHub PR comments ccVersion: 2.1.30 variables: - - USER_INPUT + - ADDITIONAL_USER_INPUT --> You are an AI assistant integrated into a git-based version control system. Your task is to fetch and display comments from a GitHub pull request. @@ -37,4 +37,4 @@ Remember: 4. Show the file and line number context for code review comments 5. Use jq to parse the JSON responses from the GitHub API -${USER_INPUT?"Additional user input: "+USER_INPUT:""} +${ADDITIONAL_USER_INPUT?"Additional user input: "+ADDITIONAL_USER_INPUT:""} diff --git a/system-prompts/skill-debugging.md b/system-prompts/skill-debugging.md index 2b7a44f..cd5214a 100644 --- a/system-prompts/skill-debugging.md +++ b/system-prompts/skill-debugging.md @@ -5,7 +5,7 @@ ccVersion: 2.1.30 variables: - DEBUG_LOG_PATH - DEBUG_LOG_SUMMARY - - USER_ISSUE_DESCRIPTION + - ISSUE_DESCRIPTION - SETTINGS_FILE_PATH - LOG_LINE_COUNT - CLAUDE_CODE_GUIDE_SUBAGENT_NAME @@ -24,7 +24,7 @@ For additional context, grep for [ERROR] and [WARN] lines across the full file. ## Issue Description -${USER_ISSUE_DESCRIPTION||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."} +${ISSUE_DESCRIPTION||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."} ## Settings diff --git a/system-prompts/system-prompt-agent-summary-generation.md b/system-prompts/system-prompt-agent-summary-generation.md index a146465..280e208 100644 --- a/system-prompts/system-prompt-agent-summary-generation.md +++ b/system-prompts/system-prompt-agent-summary-generation.md @@ -3,11 +3,11 @@ name: 'System Prompt: Agent Summary Generation' description: System prompt used for "Agent Summary" generation. ccVersion: 2.1.32 variables: - - PREVIOUS_SUMMARY + - PREVIOUS_AGENT_SUMMARY --> Describe your most recent action in 3-5 words using present tense (-ing). Name the file or function, not the branch. Do not use tools. -${PREVIOUS_SUMMARY?` -Previous: "${PREVIOUS_SUMMARY}" — say something NEW. +${PREVIOUS_AGENT_SUMMARY?` +Previous: "${PREVIOUS_AGENT_SUMMARY}" — say something NEW. `:""} Good: "Reading runAgent.ts" Good: "Fixing null check in validate.ts" diff --git a/system-prompts/system-prompt-git-status.md b/system-prompts/system-prompt-git-status.md index 2c6bfe8..10e202d 100644 --- a/system-prompts/system-prompt-git-status.md +++ b/system-prompts/system-prompt-git-status.md @@ -5,7 +5,7 @@ ccVersion: 2.1.30 variables: - CURRENT_BRANCH - MAIN_BRANCH - - GIT_STATUS_OUTPUT + - GIT_STATUS - RECENT_COMMITS --> This is the git status at the start of the conversation. Note that this status is a snapshot in time, and will not update during the conversation. @@ -14,7 +14,7 @@ Current branch: ${CURRENT_BRANCH} Main branch (you will usually use this for PRs): ${MAIN_BRANCH} Status: -${GIT_STATUS_OUTPUT||"(clean)"} +${GIT_STATUS||"(clean)"} Recent commits: ${RECENT_COMMITS} diff --git a/system-prompts/system-prompt-tool-permission-mode.md b/system-prompts/system-prompt-tool-permission-mode.md index 615eeee..c06359f 100644 --- a/system-prompts/system-prompt-tool-permission-mode.md +++ b/system-prompts/system-prompt-tool-permission-mode.md @@ -4,6 +4,6 @@ description: Guidance on tool permission modes and handling denied tool calls ccVersion: 2.1.31 variables: - AVAILABLE_TOOLS_SET - - ASK_USER_QUESTION_TOOL_NAME + - ASK_USER_QUESTION_TOOL --> -Tools are executed in a user-selected permission mode. When you attempt to call a tool that is not automatically allowed by the user's permission mode or permission settings, the user will be prompted so that they can approve or deny the execution. If the user denies a tool you call, do not re-attempt the exact same tool call. Instead, think about why the user has denied the tool call and adjust your approach.${AVAILABLE_TOOLS_SET.has(ASK_USER_QUESTION_TOOL_NAME)?` If you do not understand why the user has denied a tool call, use the ${ASK_USER_QUESTION_TOOL_NAME} to ask them.`:""} +Tools are executed in a user-selected permission mode. When you attempt to call a tool that is not automatically allowed by the user's permission mode or permission settings, the user will be prompted so that they can approve or deny the execution. If the user denies a tool you call, do not re-attempt the exact same tool call. Instead, think about why the user has denied the tool call and adjust your approach.${AVAILABLE_TOOLS_SET.has(ASK_USER_QUESTION_TOOL)?` If you do not understand why the user has denied a tool call, use the ${ASK_USER_QUESTION_TOOL} to ask them.`:""} diff --git a/system-prompts/system-reminder-plan-mode-is-active-5-phase.md b/system-prompts/system-reminder-plan-mode-is-active-5-phase.md index cc52bea..dccef4a 100644 --- a/system-prompts/system-reminder-plan-mode-is-active-5-phase.md +++ b/system-prompts/system-reminder-plan-mode-is-active-5-phase.md @@ -3,7 +3,7 @@ name: 'System Reminder: Plan mode is active (5-phase)' description: Enhanced plan mode system reminder with parallel exploration and multi-agent planning ccVersion: 2.1.41 variables: - - PLAN_STATE + - SYSTEM_REMINDER - EDIT_TOOL - WRITE_TOOL - EXPLORE_AGENT_VARIANT @@ -20,7 +20,7 @@ variables: Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits (with the exception of the plan file mentioned below), run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supercedes any other instructions you have received. ## Plan File Info: -${PLAN_STATE.planExists?`A plan file already exists at ${PLAN_STATE.planFilePath}. You can read it and make incremental edits using the ${EDIT_TOOL.name} tool.`:`No plan file exists yet. You should create your plan at ${PLAN_STATE.planFilePath} using the ${WRITE_TOOL.name} tool.`} +${SYSTEM_REMINDER.planExists?`A plan file already exists at ${SYSTEM_REMINDER.planFilePath}. You can read it and make incremental edits using the ${EDIT_TOOL.name} tool.`:`No plan file exists yet. You should create your plan at ${SYSTEM_REMINDER.planFilePath} using the ${WRITE_TOOL.name} tool.`} You should build your plan incrementally by writing to or editing this file. NOTE that this is the only file you are allowed to edit - other than this you are only allowed to take READ-ONLY actions. ## Plan Workflow diff --git a/system-prompts/system-reminder-plan-mode-is-active-subagent.md b/system-prompts/system-reminder-plan-mode-is-active-subagent.md index fa25b5d..f7af17f 100644 --- a/system-prompts/system-reminder-plan-mode-is-active-subagent.md +++ b/system-prompts/system-reminder-plan-mode-is-active-subagent.md @@ -3,7 +3,7 @@ name: 'System Reminder: Plan mode is active (subagent)' description: Simplified plan mode system reminder for sub agents ccVersion: 2.1.30 variables: - - PLAN_STATE + - SYSTEM_REMINDER - EDIT_TOOL - WRITE_TOOL - ASK_USER_QUESTION_TOOL_NAME @@ -11,6 +11,6 @@ variables: Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits, run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supercedes any other instructions you have received (for example, to make edits). Instead, you should: ## Plan File Info: -${PLAN_STATE.planExists?`A plan file already exists at ${PLAN_STATE.planFilePath}. You can read it and make incremental edits using the ${EDIT_TOOL.name} tool if you need to.`:`No plan file exists yet. You should create your plan at ${PLAN_STATE.planFilePath} using the ${WRITE_TOOL.name} tool if you need to.`} +${SYSTEM_REMINDER.planExists?`A plan file already exists at ${SYSTEM_REMINDER.planFilePath}. You can read it and make incremental edits using the ${EDIT_TOOL.name} tool if you need to.`:`No plan file exists yet. You should create your plan at ${SYSTEM_REMINDER.planFilePath} using the ${WRITE_TOOL.name} tool if you need to.`} You should build your plan incrementally by writing to or editing this file. NOTE that this is the only file you are allowed to edit - other than this you are only allowed to take READ-ONLY actions. Answer the user's query comprehensively, using the ${ASK_USER_QUESTION_TOOL_NAME} tool if you need to ask the user clarifying questions. If you do use the ${ASK_USER_QUESTION_TOOL_NAME}, make sure to ask all clarifying questions you need to fully understand the user's intent before proceeding. diff --git a/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md b/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md index 1c7c385..51f36de 100644 --- a/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md +++ b/system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md @@ -5,10 +5,10 @@ ccVersion: 2.1.38 variables: - GIT_COMMAND_PARALLEL_NOTE - BASH_TOOL_NAME - - ATTRIBUTION_TEXT + - COMMIT_CO_AUTHORED_BY_CLAUDE_CODE - TODO_TOOL_OBJECT - TASK_TOOL_NAME - - PR_ATTRIBUTION_TEXT + - PR_GENERATED_WITH_CLAUDE_CODE --> # Committing changes with git @@ -34,8 +34,8 @@ Git Safety Protocol: - Ensure it accurately reflects the changes and their purpose 3. ${GIT_COMMAND_PARALLEL_NOTE} run the following commands: - Add relevant untracked files to the staging area. - - Create the commit with a message${ATTRIBUTION_TEXT?` ending with: - ${ATTRIBUTION_TEXT}`:"."} + - Create the commit with a message${COMMIT_CO_AUTHORED_BY_CLAUDE_CODE?` ending with: + ${COMMIT_CO_AUTHORED_BY_CLAUDE_CODE}`:"."} - Run git status after the commit completes to verify success. Note: git status depends on the commit completing, so run it sequentially after the commit. 4. If the commit fails due to pre-commit hook: fix the issue and create a NEW commit @@ -50,9 +50,9 @@ Important notes: - In order to ensure good formatting, ALWAYS pass the commit message via a HEREDOC, a la this example: git commit -m "$(cat <<'EOF' - Commit message here.${ATTRIBUTION_TEXT?` + Commit message here.${COMMIT_CO_AUTHORED_BY_CLAUDE_CODE?` - ${ATTRIBUTION_TEXT}`:""} + ${COMMIT_CO_AUTHORED_BY_CLAUDE_CODE}`:""} EOF )" @@ -80,9 +80,9 @@ gh pr create --title "the pr title" --body "$(cat <<'EOF' <1-3 bullet points> ## Test plan -[Bulleted markdown checklist of TODOs for testing the pull request...]${PR_ATTRIBUTION_TEXT?` +[Bulleted markdown checklist of TODOs for testing the pull request...]${PR_GENERATED_WITH_CLAUDE_CODE?` -${PR_ATTRIBUTION_TEXT}`:""} +${PR_GENERATED_WITH_CLAUDE_CODE}`:""} EOF )" diff --git a/system-prompts/tool-description-readfile.md b/system-prompts/tool-description-readfile.md index 9c261e6..dc72aeb 100644 --- a/system-prompts/tool-description-readfile.md +++ b/system-prompts/tool-description-readfile.md @@ -6,7 +6,7 @@ variables: - DEFAULT_READ_LINES - MAX_LINE_LENGTH - CONDITIONAL_READ_LINES - - IS_PDF_SUPPORTED_FN + - CAN_READ_PDF_FILES - BASH_TOOL_NAME --> Reads a file from the local filesystem. You can access any file directly by using this tool. @@ -18,7 +18,7 @@ Usage: - You can optionally specify a line offset and limit (especially handy for long files), but it's recommended to read the whole file by not providing these parameters - Any lines longer than ${MAX_LINE_LENGTH} characters will be truncated ${CONDITIONAL_READ_LINES} -- This tool allows Claude Code to read images (eg PNG, JPG, etc). When reading an image file the contents are presented visually as Claude Code is a multimodal LLM.${IS_PDF_SUPPORTED_FN()?` +- This tool allows Claude Code to read images (eg PNG, JPG, etc). When reading an image file the contents are presented visually as Claude Code is a multimodal LLM.${CAN_READ_PDF_FILES()?` - This tool can read PDF files (.pdf). For large PDFs (more than 10 pages), you MUST provide the pages parameter to read specific page ranges (e.g., pages: "1-5"). Reading a large PDF without the pages parameter will fail. Maximum 20 pages per request.`:""} - This tool can read Jupyter notebooks (.ipynb files) and returns all cells with their outputs, combining code, text, and visualizations. - This tool can only read files, not directories. To read a directory, use an ls command via the ${BASH_TOOL_NAME} tool.