v2.1.108 (+885 tokens)

This commit is contained in:
Mike 2026-04-14 14:17:56 -06:00
parent a0f0e30f2b
commit a4256f118a
19 changed files with 165 additions and 66 deletions

View File

@ -34,7 +34,7 @@ Download it and try it out for free! **https://piebald.ai/**
> [!important] > [!important]
> **NEW (January 23, 2026): We've added all of Claude Code's ~40 system reminders to this list—see [System Reminders](#system-reminders).** > **NEW (January 23, 2026): We've added all of Claude Code's ~40 system reminders to this list—see [System Reminders](#system-reminders).**
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.107](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.107) (April 13th, 2026).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 150 versions since v2.0.14. From the team behind [<img src="https://github.com/Piebald-AI/piebald/raw/main/assets/logo.svg" width="15"> **Piebald.**](https://piebald.ai/) 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.108](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.108) (April 14th, 2026).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 151 versions since v2.0.14. From the team behind [<img src="https://github.com/Piebald-AI/piebald/raw/main/assets/logo.svg" width="15"> **Piebald.**](https://piebald.ai/)
**This repository is updated within minutes of each Claude Code release. See the [changelog](./CHANGELOG.md), and follow [@PiebaldAI](https://x.com/PiebaldAI) on X for a summary of the system prompt changes in each release.** **This repository is updated within minutes of each Claude Code release. See the [changelog](./CHANGELOG.md), and follow [@PiebaldAI](https://x.com/PiebaldAI) on X for a summary of the system prompt changes in each release.**
@ -87,9 +87,10 @@ Sub-agents and utilities.
#### Slash Commands #### Slash Commands
- [Agent Prompt: /batch slash command](./system-prompts/agent-prompt-batch-slash-command.md) (**1106** tks) - Instructions for orchestrating a large, parallelizable change across a codebase. - [Agent Prompt: /batch slash command](./system-prompts/agent-prompt-batch-slash-command.md) (**1106** tks) - Instructions for orchestrating a large, parallelizable change across a codebase.
- [Agent Prompt: /rename auto-generate session name](./system-prompts/agent-prompt-rename-auto-generate-session-name.md) (**80** tks) - Prompt used by /rename (no args) to auto-generate a kebab-case session name from conversation context.
- [Agent Prompt: /review-pr slash command](./system-prompts/agent-prompt-review-pr-slash-command.md) (**211** tks) - System prompt for reviewing GitHub pull requests with code analysis. - [Agent Prompt: /review-pr slash command](./system-prompts/agent-prompt-review-pr-slash-command.md) (**211** tks) - System prompt for reviewing GitHub pull requests with code analysis.
- [Agent Prompt: /schedule slash command](./system-prompts/agent-prompt-schedule-slash-command.md) (**2486** tks) - Guides the user through scheduling, updating, listing, or running remote Claude Code agents on cron triggers via the Anthropic cloud API. - [Agent Prompt: /schedule slash command](./system-prompts/agent-prompt-schedule-slash-command.md) (**2486** tks) - Guides the user through scheduling, updating, listing, or running remote Claude Code agents on cron triggers via the Anthropic cloud API.
- [Agent Prompt: /security-review slash command](./system-prompts/agent-prompt-security-review-slash-command.md) (**2607** tks) - Comprehensive security review prompt for analyzing code changes with focus on exploitable vulnerabilities. - [Agent Prompt: /security-review slash command](./system-prompts/agent-prompt-security-review-slash-command.md) (**2550** tks) - Comprehensive security review prompt for analyzing code changes with focus on exploitable vulnerabilities.
#### Utilities #### Utilities
@ -133,13 +134,13 @@ The content of various template files embedded in Claude Code.
- [Data: Claude API reference — Ruby](./system-prompts/data-claude-api-reference-ruby.md) (**923** tks) - Ruby SDK reference including installation, client initialization, basic requests, streaming, and beta tool runner. - [Data: Claude API reference — Ruby](./system-prompts/data-claude-api-reference-ruby.md) (**923** tks) - Ruby SDK reference including installation, client initialization, basic requests, streaming, and beta tool runner.
- [Data: Claude API reference — TypeScript](./system-prompts/data-claude-api-reference-typescript.md) (**2881** tks) - TypeScript SDK reference including installation, client initialization, basic requests, thinking, and multi-turn conversation. - [Data: Claude API reference — TypeScript](./system-prompts/data-claude-api-reference-typescript.md) (**2881** tks) - TypeScript SDK reference including installation, client initialization, basic requests, thinking, and multi-turn conversation.
- [Data: Claude API reference — cURL](./system-prompts/data-claude-api-reference-curl.md) (**2174** tks) - Raw API reference for Claude API for use with cURL or else Raw HTTP. - [Data: Claude API reference — cURL](./system-prompts/data-claude-api-reference-curl.md) (**2174** tks) - Raw API reference for Claude API for use with cURL or else Raw HTTP.
- [Data: Claude model catalog](./system-prompts/data-claude-model-catalog.md) (**2295** tks) - Catalog of current and legacy Claude models with exact model IDs, aliases, context windows, and pricing. - [Data: Claude model catalog](./system-prompts/data-claude-model-catalog.md) (**2166** tks) - Catalog of current and legacy Claude models with exact model IDs, aliases, context windows, and pricing.
- [Data: Files API reference — Python](./system-prompts/data-files-api-reference-python.md) (**1334** tks) - Python Files API reference including file upload, listing, deletion, and usage in messages. - [Data: Files API reference — Python](./system-prompts/data-files-api-reference-python.md) (**1334** tks) - Python Files API reference including file upload, listing, deletion, and usage in messages.
- [Data: Files API reference — TypeScript](./system-prompts/data-files-api-reference-typescript.md) (**797** tks) - TypeScript Files API reference including file upload, listing, deletion, and usage in messages. - [Data: Files API reference — TypeScript](./system-prompts/data-files-api-reference-typescript.md) (**797** tks) - TypeScript Files API reference including file upload, listing, deletion, and usage in messages.
- [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 @claude mentions](./system-prompts/data-github-actions-workflow-for-claude-mentions.md) (**525** tks) - GitHub Actions workflow template for triggering Claude Code via @claude mentions.
- [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. - [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.
- [Data: HTTP error codes reference](./system-prompts/data-http-error-codes-reference.md) (**1922** tks) - Reference for HTTP error codes returned by the Claude API with common causes and handling strategies. - [Data: HTTP error codes reference](./system-prompts/data-http-error-codes-reference.md) (**1922** tks) - Reference for HTTP error codes returned by the Claude API with common causes and handling strategies.
- [Data: Live documentation sources](./system-prompts/data-live-documentation-sources.md) (**3584** tks) - WebFetch URLs for fetching current Claude API and Agent SDK documentation from official sources. - [Data: Live documentation sources](./system-prompts/data-live-documentation-sources.md) (**3585** tks) - WebFetch URLs for fetching current Claude API and Agent SDK documentation from official sources.
- [Data: Managed Agents client patterns](./system-prompts/data-managed-agents-client-patterns.md) (**2685** tks) - Reference guide of common client-side patterns for driving Managed Agent sessions, including stream reconnection, idle-break gating, tool confirmations, interrupts, and custom tools. - [Data: Managed Agents client patterns](./system-prompts/data-managed-agents-client-patterns.md) (**2685** tks) - Reference guide of common client-side patterns for driving Managed Agent sessions, including stream reconnection, idle-break gating, tool confirmations, interrupts, and custom tools.
- [Data: Managed Agents core concepts](./system-prompts/data-managed-agents-core-concepts.md) (**3208** tks) - Reference documentation for the Managed Agents API covering core concepts (Agents, Sessions, Environments, Containers), lifecycle, versioning, endpoints, and usage patterns. - [Data: Managed Agents core concepts](./system-prompts/data-managed-agents-core-concepts.md) (**3208** tks) - Reference documentation for the Managed Agents API covering core concepts (Agents, Sessions, Environments, Containers), lifecycle, versioning, endpoints, and usage patterns.
- [Data: Managed Agents endpoint reference](./system-prompts/data-managed-agents-endpoint-reference.md) (**4526** tks) - Comprehensive reference for Managed Agents API endpoints, SDK methods, request/response schemas, error handling, and rate limits. - [Data: Managed Agents endpoint reference](./system-prompts/data-managed-agents-endpoint-reference.md) (**4526** tks) - Comprehensive reference for Managed Agents API endpoints, SDK methods, request/response schemas, error handling, and rate limits.
@ -169,7 +170,7 @@ Parts of the main system prompt.
- [System Prompt: Agent thread notes](./system-prompts/system-prompt-agent-thread-notes.md) (**159** tks) - Behavioral guidelines for agent threads covering absolute paths, response formatting, emoji avoidance, and tool call punctuation. - [System Prompt: Agent thread notes](./system-prompts/system-prompt-agent-thread-notes.md) (**159** tks) - Behavioral guidelines for agent threads covering absolute paths, response formatting, emoji avoidance, and tool call punctuation.
- [System Prompt: Auto mode](./system-prompts/system-prompt-auto-mode.md) (**255** tks) - Continuous task execution, akin to a background agent. - [System Prompt: Auto mode](./system-prompts/system-prompt-auto-mode.md) (**255** tks) - Continuous task execution, akin to a background agent.
- [System Prompt: Autonomous loop check](./system-prompts/system-prompt-autonomous-loop-check.md) (**1071** tks) - Defines behavior for autonomous timer-based invocations, guiding Claude to continue established work, maintain PRs, and handle repeated idle checks while the user is away. - [System Prompt: Autonomous loop check](./system-prompts/system-prompt-autonomous-loop-check.md) (**1071** tks) - Defines behavior for autonomous timer-based invocations, guiding Claude to continue established work, maintain PRs, and handle repeated idle checks while the user is away.
- [System Prompt: Avoiding Unnecessary Sleep Commands (part of PowerShell tool description)](./system-prompts/system-prompt-avoiding-unnecessary-sleep-commands-part-of-powershell-tool-description.md) (**182** tks) - Guidelines for avoiding unnecessary sleep commands in PowerShell scripts, including alternatives for waiting and notification. - [System Prompt: Avoiding Unnecessary Sleep Commands (part of PowerShell tool description)](./system-prompts/system-prompt-avoiding-unnecessary-sleep-commands-part-of-powershell-tool-description.md) (**175** tks) - Guidelines for avoiding unnecessary sleep commands in PowerShell scripts, including alternatives for waiting and notification.
- [System Prompt: Censoring assistance with malicious activities](./system-prompts/system-prompt-censoring-assistance-with-malicious-activities.md) (**98** tks) - Guidelines for assisting with authorized security testing, defensive security, CTF challenges, and educational contexts while censoring requests for malicious activities. - [System Prompt: Censoring assistance with malicious activities](./system-prompts/system-prompt-censoring-assistance-with-malicious-activities.md) (**98** tks) - Guidelines for assisting with authorized security testing, defensive security, CTF challenges, and educational contexts while censoring requests for malicious activities.
- [System Prompt: Chrome browser MCP tools](./system-prompts/system-prompt-chrome-browser-mcp-tools.md) (**156** tks) - Instructions for loading Chrome browser MCP tools via MCPSearch before use. - [System Prompt: Chrome browser MCP tools](./system-prompts/system-prompt-chrome-browser-mcp-tools.md) (**156** tks) - Instructions for loading Chrome browser MCP tools via MCPSearch before use.
- [System Prompt: Claude in Chrome browser automation](./system-prompts/system-prompt-claude-in-chrome-browser-automation.md) (**759** tks) - Instructions for using Claude in Chrome browser automation tools effectively. - [System Prompt: Claude in Chrome browser automation](./system-prompts/system-prompt-claude-in-chrome-browser-automation.md) (**759** tks) - Instructions for using Claude in Chrome browser automation tools effectively.
@ -211,10 +212,11 @@ Parts of the main system prompt.
- [System Prompt: Partial compaction instructions](./system-prompts/system-prompt-partial-compaction-instructions.md) (**725** tks) - Instructions on how to compact when the user decided to compact only a portion of the conversation, with a structured summary format and analysis process. - [System Prompt: Partial compaction instructions](./system-prompts/system-prompt-partial-compaction-instructions.md) (**725** tks) - Instructions on how to compact when the user decided to compact only a portion of the conversation, with a structured summary format and analysis process.
- [System Prompt: Phase four of plan mode](./system-prompts/system-prompt-phase-four-of-plan-mode.md) (**142** tks) - Phase four of plan mode. - [System Prompt: Phase four of plan mode](./system-prompts/system-prompt-phase-four-of-plan-mode.md) (**142** tks) - Phase four of plan mode.
- [System Prompt: PowerShell edition for 5.1](./system-prompts/system-prompt-powershell-edition-for-51.md) (**285** tks) - System prompt for providing information about Windows PowerShell 5.1. - [System Prompt: PowerShell edition for 5.1](./system-prompts/system-prompt-powershell-edition-for-51.md) (**285** tks) - System prompt for providing information about Windows PowerShell 5.1.
- [System Prompt: REPL tool usage and scripting conventions](./system-prompts/system-prompt-repl-tool-usage-and-scripting-conventions.md) (**815** tks) - Instructs Claude on how to use the REPL tool effectively with dense JavaScript scripts, shorthands, batching rules, and API reference for investigation tasks.
- [System Prompt: Remote plan mode (ultraplan)](./system-prompts/system-prompt-remote-plan-mode-ultraplan.md) (**617** tks) - System reminder injected during remote planning sessions that instructs Claude to explore the codebase, produce a diagram-rich plan via ExitPlanMode, and implement it with a pull request upon approval. - [System Prompt: Remote plan mode (ultraplan)](./system-prompts/system-prompt-remote-plan-mode-ultraplan.md) (**617** tks) - System reminder injected during remote planning sessions that instructs Claude to explore the codebase, produce a diagram-rich plan via ExitPlanMode, and implement it with a pull request upon approval.
- [System Prompt: Remote planning session](./system-prompts/system-prompt-remote-planning-session.md) (**432** tks) - System reminder that configures a remote planning session to explore the codebase, produce an implementation plan via ExitPlanMode, and handle plan approval, rejection, or teleportation back to the user's local terminal. - [System Prompt: Remote planning session](./system-prompts/system-prompt-remote-planning-session.md) (**432** tks) - System reminder that configures a remote planning session to explore the codebase, produce an implementation plan via ExitPlanMode, and handle plan approval, rejection, or teleportation back to the user's local terminal.
- [System Prompt: Scratchpad directory](./system-prompts/system-prompt-scratchpad-directory.md) (**170** tks) - Instructions for using a dedicated scratchpad directory for temporary files. - [System Prompt: Scratchpad directory](./system-prompts/system-prompt-scratchpad-directory.md) (**170** tks) - Instructions for using a dedicated scratchpad directory for temporary files.
- [System Prompt: Skillify Current Session](./system-prompts/system-prompt-skillify-current-session.md) (**1882** tks) - System prompt for converting the current session in to a skill. - [System Prompt: Skillify Current Session](./system-prompts/system-prompt-skillify-current-session.md) (**1836** tks) - System prompt for converting the current session in to a skill.
- [System Prompt: Subagent delegation examples](./system-prompts/system-prompt-subagent-delegation-examples.md) (**606** tks) - Provides example interactions showing how a coordinator agent should delegate tasks to subagents, handle waiting states, and report results. - [System Prompt: Subagent delegation examples](./system-prompts/system-prompt-subagent-delegation-examples.md) (**606** tks) - Provides example interactions showing how a coordinator agent should delegate tasks to subagents, handle waiting states, and report results.
- [System Prompt: Subagent prompt-writing examples](./system-prompts/system-prompt-subagent-prompt-writing-examples.md) (**439** tks) - Provides example usage patterns demonstrating how to write self-contained, well-structured prompts when delegating tasks to subagents. - [System Prompt: Subagent prompt-writing examples](./system-prompts/system-prompt-subagent-prompt-writing-examples.md) (**439** tks) - Provides example usage patterns demonstrating how to write self-contained, well-structured prompts when delegating tasks to subagents.
- [System Prompt: Teammate Communication](./system-prompts/system-prompt-teammate-communication.md) (**130** tks) - System prompt for teammate communication in swarm. - [System Prompt: Teammate Communication](./system-prompts/system-prompt-teammate-communication.md) (**130** tks) - System prompt for teammate communication in swarm.
@ -268,6 +270,7 @@ Text for large system reminders.
- [System Reminder: Plan mode is active (subagent)](./system-prompts/system-reminder-plan-mode-is-active-subagent.md) (**307** tks) - Simplified plan mode system reminder for sub agents. - [System Reminder: Plan mode is active (subagent)](./system-prompts/system-reminder-plan-mode-is-active-subagent.md) (**307** tks) - Simplified plan mode system reminder for sub agents.
- [System Reminder: Plan mode re-entry](./system-prompts/system-reminder-plan-mode-re-entry.md) (**236** tks) - System reminder sent when the user enters Plan mode after having previously exited it either via shift+tab or by approving Claude's plan. - [System Reminder: Plan mode re-entry](./system-prompts/system-reminder-plan-mode-re-entry.md) (**236** tks) - System reminder sent when the user enters Plan mode after having previously exited it either via shift+tab or by approving Claude's plan.
- [System Reminder: Session continuation](./system-prompts/system-reminder-session-continuation.md) (**37** tks) - Notification that session continues from another machine. - [System Reminder: Session continuation](./system-prompts/system-reminder-session-continuation.md) (**37** tks) - Notification that session continues from another machine.
- [System Reminder: Stop hook blocking error](./system-prompts/system-reminder-stop-hook-blocking-error.md) (**20** tks) - Error from a blocking hook command.
- [System Reminder: Task tools reminder](./system-prompts/system-reminder-task-tools-reminder.md) (**123** tks) - Reminder to use task tracking tools. - [System Reminder: Task tools reminder](./system-prompts/system-reminder-task-tools-reminder.md) (**123** tks) - Reminder to use task tracking tools.
- [System Reminder: Team Coordination](./system-prompts/system-reminder-team-coordination.md) (**250** tks) - System reminder for team coordination. - [System Reminder: Team Coordination](./system-prompts/system-reminder-team-coordination.md) (**250** tks) - System reminder for team coordination.
- [System Reminder: Team Shutdown](./system-prompts/system-reminder-team-shutdown.md) (**136** tks) - System reminder for team shutdown. - [System Reminder: Team Shutdown](./system-prompts/system-reminder-team-shutdown.md) (**136** tks) - System reminder for team shutdown.
@ -293,6 +296,7 @@ Text for large system reminders.
- [Tool Description: LSP](./system-prompts/tool-description-lsp.md) (**255** tks) - Description for the LSP tool. - [Tool Description: LSP](./system-prompts/tool-description-lsp.md) (**255** tks) - Description for the LSP tool.
- [Tool Description: NotebookEdit](./system-prompts/tool-description-notebookedit.md) (**121** tks) - Tool description for editing Jupyter notebook cells. - [Tool Description: NotebookEdit](./system-prompts/tool-description-notebookedit.md) (**121** tks) - Tool description for editing Jupyter notebook cells.
- [Tool Description: PowerShell](./system-prompts/tool-description-powershell.md) (**1455** tks) - Describes the PowerShell command execution tool with syntax guidance, timeout settings, and instructions to prefer specialized tools over PowerShell for file operations. - [Tool Description: PowerShell](./system-prompts/tool-description-powershell.md) (**1455** tks) - Describes the PowerShell command execution tool with syntax guidance, timeout settings, and instructions to prefer specialized tools over PowerShell for file operations.
- [Tool Description: REPL](./system-prompts/tool-description-repl.md) (**543** tks) - Describes the REPL tool, a JavaScript programming interface for looping, branching, and composing Claude Code tool calls as async functions.
- [Tool Description: ReadFile](./system-prompts/tool-description-readfile.md) (**449** tks) - Tool description for reading files. - [Tool Description: ReadFile](./system-prompts/tool-description-readfile.md) (**449** tks) - Tool description for reading files.
- [Tool Description: SendMessageTool](./system-prompts/tool-description-sendmessagetool.md) (**362** tks) - Agent teams version of SendMessageTool. - [Tool Description: SendMessageTool](./system-prompts/tool-description-sendmessagetool.md) (**362** tks) - Agent teams version of SendMessageTool.
- [Tool Description: Skill](./system-prompts/tool-description-skill.md) (**326** tks) - Tool description for executing skills in the main conversation. - [Tool Description: Skill](./system-prompts/tool-description-skill.md) (**326** tks) - Tool description for executing skills in the main conversation.
@ -345,7 +349,7 @@ Text for large system reminders.
- [Tool Description: Bash (sandbox — user permission prompt)](./system-prompts/tool-description-bash-sandbox-user-permission-prompt.md) (**14** tks) - Note that disabling sandbox will prompt user for permission. - [Tool Description: Bash (sandbox — user permission prompt)](./system-prompts/tool-description-bash-sandbox-user-permission-prompt.md) (**14** tks) - Note that disabling sandbox will prompt user for permission.
- [Tool Description: Bash (semicolon usage)](./system-prompts/tool-description-bash-semicolon-usage.md) (**29** tks) - Bash tool instruction: use semicolons when sequential order matters but failure does not. - [Tool Description: Bash (semicolon usage)](./system-prompts/tool-description-bash-semicolon-usage.md) (**29** tks) - Bash tool instruction: use semicolons when sequential order matters but failure does not.
- [Tool Description: Bash (sequential commands)](./system-prompts/tool-description-bash-sequential-commands.md) (**42** tks) - Bash tool instruction: chain dependent commands with &&. - [Tool Description: Bash (sequential commands)](./system-prompts/tool-description-bash-sequential-commands.md) (**42** tks) - Bash tool instruction: chain dependent commands with &&.
- [Tool Description: Bash (sleep — keep short)](./system-prompts/tool-description-bash-sleep-keep-short.md) (**29** tks) - Bash tool instruction: keep sleep duration to 1-5 seconds. - [Tool Description: Bash (sleep — keep short)](./system-prompts/tool-description-bash-sleep-keep-short.md) (**22** tks) - Bash tool instruction: keep sleep duration to 1-5 seconds.
- [Tool Description: Bash (sleep — no polling background tasks)](./system-prompts/tool-description-bash-sleep-no-polling-background-tasks.md) (**37** tks) - Bash tool instruction: do not poll background tasks, wait for notification. - [Tool Description: Bash (sleep — no polling background tasks)](./system-prompts/tool-description-bash-sleep-no-polling-background-tasks.md) (**37** tks) - Bash tool instruction: do not poll background tasks, wait for notification.
- [Tool Description: Bash (sleep — run immediately)](./system-prompts/tool-description-bash-sleep-run-immediately.md) (**21** tks) - Bash tool instruction: do not sleep between commands that can run immediately. - [Tool Description: Bash (sleep — run immediately)](./system-prompts/tool-description-bash-sleep-run-immediately.md) (**21** tks) - Bash tool instruction: do not sleep between commands that can run immediately.
- [Tool Description: Bash (sleep — use check commands)](./system-prompts/tool-description-bash-sleep-use-check-commands.md) (**34** tks) - Bash tool instruction: use check commands rather than sleeping when polling. - [Tool Description: Bash (sleep — use check commands)](./system-prompts/tool-description-bash-sleep-use-check-commands.md) (**34** tks) - Bash tool instruction: use check commands rather than sleeping when polling.
@ -372,18 +376,17 @@ Built-in skill prompts for specialized tasks.
- [Skill: /loop slash command](./system-prompts/skill-loop-slash-command.md) (**969** tks) - Parses user input into an interval and prompt, converts the interval to a cron expression, and schedules a recurring task. - [Skill: /loop slash command](./system-prompts/skill-loop-slash-command.md) (**969** tks) - Parses user input into an interval and prompt, converts the interval to a cron expression, and schedules a recurring task.
- [Skill: /stuck slash command](./system-prompts/skill-stuck-slash-command.md) (**964** tks) - Diagnozse frozen or slow Claude Code sessions. - [Skill: /stuck slash command](./system-prompts/skill-stuck-slash-command.md) (**964** tks) - Diagnozse frozen or slow Claude Code sessions.
- [Skill: Agent Design Patterns](./system-prompts/skill-agent-design-patterns.md) (**1974** tks) - Reference guide covering decision heuristics for building agents on the Claude API, including tool surface design, context management, caching strategies, and composing tool calls. - [Skill: Agent Design Patterns](./system-prompts/skill-agent-design-patterns.md) (**1974** tks) - Reference guide covering decision heuristics for building agents on the Claude API, including tool surface design, context management, caching strategies, and composing tool calls.
- [Skill: Build Claude API and SDK apps](./system-prompts/skill-build-claude-api-and-sdk-apps.md) (**245** tks) - Trigger rules for activating guidance when users are building applications with the Claude API, Anthropic SDKs, or Managed Agents. - [Skill: Build with Claude API (reference guide)](./system-prompts/skill-build-with-claude-api-reference-guide.md) (**591** tks) - Template for presenting language-specific reference documentation with quick task navigation.
- [Skill: Build with Claude API (reference guide)](./system-prompts/skill-build-with-claude-api-reference-guide.md) (**584** tks) - Template for presenting language-specific reference documentation with quick task navigation. - [Skill: Building LLM-powered applications with Claude](./system-prompts/skill-building-llm-powered-applications-with-claude.md) (**7607** tks) - Guides Claude in building LLM-powered applications using the Anthropic SDK, covering language detection, API surface selection (Claude API vs Managed Agents), model defaults, thinking/effort configuration, and language-specific documentation reading.
- [Skill: Building LLM-powered applications with Claude](./system-prompts/skill-building-llm-powered-applications-with-claude.md) (**7556** tks) - Guides Claude in building LLM-powered applications using the Anthropic SDK, covering language detection, API surface selection (Claude API vs Managed Agents), model defaults, thinking/effort configuration, and language-specific documentation reading.
- [Skill: Computer Use MCP](./system-prompts/skill-computer-use-mcp.md) (**1206** tks) - Instructions for using computer-use MCP tools including tool selection tiers, app access tiers, link safety, and financial action restrictions. - [Skill: Computer Use MCP](./system-prompts/skill-computer-use-mcp.md) (**1206** tks) - Instructions for using computer-use MCP tools including tool selection tiers, app access tiers, link safety, and financial action restrictions.
- [Skill: Create verifier skills](./system-prompts/skill-create-verifier-skills.md) (**2625** tks) - Prompt for creating verifier skills for the Verify agent to automatically verify code changes. - [Skill: Create verifier skills](./system-prompts/skill-create-verifier-skills.md) (**2551** tks) - Prompt for creating verifier skills for the Verify agent to automatically verify code changes.
- [Skill: Debugging](./system-prompts/skill-debugging.md) (**412** tks) - Instructions for debugging an issue that the user is encountering in the Claude Code session. - [Skill: Debugging](./system-prompts/skill-debugging.md) (**412** tks) - Instructions for debugging an issue that the user is encountering in the Claude Code session.
- [Skill: Dynamic pacing loop execution](./system-prompts/skill-dynamic-pacing-loop-execution.md) (**558** 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: Dynamic pacing loop execution](./system-prompts/skill-dynamic-pacing-loop-execution.md) (**558** 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: Schedule recurring cron and execute immediately (compact)](./system-prompts/skill-schedule-recurring-cron-and-execute-immediately-compact.md) (**173** tks) - Instructions for creating a recurring cron job, confirming the schedule with the user, and immediately executing the parsed prompt without waiting for the first cron fire. - [Skill: Schedule recurring cron and execute immediately (compact)](./system-prompts/skill-schedule-recurring-cron-and-execute-immediately-compact.md) (**173** tks) - Instructions for creating a recurring cron job, confirming the schedule with the user, and immediately executing the parsed prompt without waiting for the first cron fire.
- [Skill: Schedule recurring cron and run immediately](./system-prompts/skill-schedule-recurring-cron-and-run-immediately.md) (**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: Schedule recurring cron and run immediately](./system-prompts/skill-schedule-recurring-cron-and-run-immediately.md) (**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: Simplify](./system-prompts/skill-simplify.md) (**877** tks) - Instructions for simplifying code. - [Skill: Simplify](./system-prompts/skill-simplify.md) (**877** tks) - Instructions for simplifying code.
- [Skill: Team onboarding guide](./system-prompts/skill-team-onboarding-guide.md) (**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: Team onboarding guide](./system-prompts/skill-team-onboarding-guide.md) (**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](./system-prompts/skill-update-claude-code-config.md) (**1255** tks) - Skill for modifying Claude Code configuration file (settings.json). - [Skill: Update Claude Code Config](./system-prompts/skill-update-claude-code-config.md) (**1190** tks) - Skill for modifying Claude Code configuration file (settings.json).
- [Skill: Verify CLI changes (example for Verify skill)](./system-prompts/skill-verify-cli-changes-example-for-verify-skill.md) (**565** tks) - Example workflow for verifying a CLI change, as part of the Verify skill. - [Skill: Verify CLI changes (example for Verify skill)](./system-prompts/skill-verify-cli-changes-example-for-verify-skill.md) (**565** tks) - Example workflow for verifying a CLI change, as part of the Verify skill.
- [Skill: Verify server/API changes (example for Verify skill)](./system-prompts/skill-verify-serverapi-changes-example-for-verify-skill.md) (**612** tks) - Example workflow for verifying a server/API change, as part of the Verify skill. - [Skill: Verify server/API changes (example for Verify skill)](./system-prompts/skill-verify-serverapi-changes-example-for-verify-skill.md) (**612** tks) - Example workflow for verifying a server/API change, as part of the Verify skill.
- [Skill: Verify skill (runtime-verification)](./system-prompts/skill-verify-skill-runtime-verification.md) (**2696** tks) - Alias of the Verify skill registered under the /runtime-verification slash command name — identical content, different frontmatter invoke name. - [Skill: Verify skill (runtime-verification)](./system-prompts/skill-verify-skill-runtime-verification.md) (**2696** tks) - Alias of the Verify skill registered under the /runtime-verification slash command name — identical content, different frontmatter invoke name.

View File

@ -11,12 +11,19 @@ variables:
agentMetadata: agentMetadata:
agentType: 'Explore' agentType: 'Explore'
model: 'haiku' model: 'haiku'
whenToUseDynamic: true
disallowedTools: disallowedTools:
- R4 - Agent
- ExitPlanMode - ExitPlanMode
- Edit - Edit
- Write - Write
- NotebookEdit - NotebookEdit
whenToUse: >
Fast agent specialized for exploring codebases. Use this when you need to quickly find files by
patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer
questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify
the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or
"very thorough" for comprehensive analysis across multiple locations and naming conventions.
--> -->
You are a file search specialist for Claude Code, Anthropic's official CLI for Claude. You excel at thoroughly navigating and exploring codebases. You are a file search specialist for Claude Code, Anthropic's official CLI for Claude. You excel at thoroughly navigating and exploring codebases.

View File

@ -12,7 +12,7 @@ agentMetadata:
agentType: 'Plan' agentType: 'Plan'
model: 'inherit' model: 'inherit'
disallowedTools: disallowedTools:
- R4 - Agent
- ExitPlanMode - ExitPlanMode
- Edit - Edit
- Write - Write

View File

@ -0,0 +1,6 @@
<!--
name: 'Agent Prompt: /rename auto-generate session name'
description: Prompt used by /rename (no args) to auto-generate a kebab-case session name from conversation context
ccVersion: 2.1.107
-->
Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.

View File

@ -1,10 +1,10 @@
<!-- <!--
name: 'Agent Prompt: /security-review slash command' name: 'Agent Prompt: /security-review slash command'
description: Comprehensive security review prompt for analyzing code changes with focus on exploitable vulnerabilities description: Comprehensive security review prompt for analyzing code changes with focus on exploitable vulnerabilities
ccVersion: 2.1.70 ccVersion: 2.1.108
--> -->
--- ---
allowed-tools: Bash(git diff:*), Bash(git status:*), Bash(git log:*), Bash(git show:*), Bash(git remote show:*), Read, Glob, Grep, LS, Task allowed-tools: Bash(git diff *), Bash(git status *), Bash(git log *), Bash(git show *), Bash(git remote show *), Read, Glob, Grep, LS, Task
description: Complete a security review of the pending changes on the current branch description: Complete a security review of the pending changes on the current branch
--- ---

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'Data: Claude model catalog' name: 'Data: Claude model catalog'
description: Catalog of current and legacy Claude models with exact model IDs, aliases, context windows, and pricing description: Catalog of current and legacy Claude models with exact model IDs, aliases, context windows, and pricing
ccVersion: 2.1.79 ccVersion: 2.1.108
--> -->
# Claude Model Catalog # Claude Model Catalog
@ -67,7 +67,6 @@ curl https://api.anthropic.com/v1/models/claude-opus-4-6 \
| Claude Haiku 4.5 | `claude-haiku-4-5` | `claude-haiku-4-5-20251001` | 200K | 64K | Active | | Claude Haiku 4.5 | `claude-haiku-4-5` | `claude-haiku-4-5-20251001` | 200K | 64K | Active |
### Model Descriptions ### Model Descriptions
- **Claude Opus 4.6** — Our most intelligent model for building agents and coding. Supports adaptive thinking (recommended), 128K max output tokens (requires streaming for large outputs). 1M context window available in beta via `context-1m-2025-08-07` header. - **Claude Opus 4.6** — Our most intelligent model for building agents and coding. Supports adaptive thinking (recommended), 128K max output tokens (requires streaming for large outputs). 1M context window available in beta via `context-1m-2025-08-07` header.
- **Claude Sonnet 4.6** — Our best combination of speed and intelligence. Supports adaptive thinking (recommended). 1M context window available in beta via `context-1m-2025-08-07` header. 64K max output tokens. - **Claude Sonnet 4.6** — Our best combination of speed and intelligence. Supports adaptive thinking (recommended). 1M context window available in beta via `context-1m-2025-08-07` header. 64K max output tokens.
- **Claude Haiku 4.5** — Fastest and most cost-effective model for simple tasks. - **Claude Haiku 4.5** — Fastest and most cost-effective model for simple tasks.

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'Data: GitHub Actions workflow for @claude mentions' name: 'Data: GitHub Actions workflow for @claude mentions'
description: GitHub Actions workflow template for triggering Claude Code via @claude mentions description: GitHub Actions workflow template for triggering Claude Code via @claude mentions
ccVersion: 2.0.58 ccVersion: 2.1.108
--> -->
name: Claude Code name: Claude Code
@ -51,5 +51,5 @@ jobs:
# Optional: Add claude_args to customize behavior and configuration # Optional: Add claude_args to customize behavior and configuration
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://code.claude.com/docs/en/cli-reference for available options # or https://code.claude.com/docs/en/cli-reference for available options
# claude_args: '--allowed-tools Bash(gh pr:*)' # claude_args: '--allowed-tools Bash(gh pr *)'

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'Data: Live documentation sources' name: 'Data: Live documentation sources'
description: WebFetch URLs for fetching current Claude API and Agent SDK documentation from official sources description: WebFetch URLs for fetching current Claude API and Agent SDK documentation from official sources
ccVersion: 2.1.97 ccVersion: 2.1.108
--> -->
# Live Documentation Sources # Live Documentation Sources
@ -18,10 +18,10 @@ This file contains WebFetch URLs for fetching current information from platform.
### Models & Pricing ### Models & Pricing
| Topic | URL | Extraction Prompt | | Topic | URL | Extraction Prompt |
| --------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | --------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Models Overview | `https://platform.claude.com/docs/en/about-claude/models/overview.md` | "Extract current model IDs, context windows, and pricing for all Claude models" | | Models Overview | `https://platform.claude.com/docs/en/about-claude/models/overview.md` | "Extract current model IDs, context windows, and pricing for all Claude models" |
| Pricing | `https://platform.claude.com/docs/en/pricing.md` | "Extract current pricing per million tokens for input and output" | | Pricing | `https://platform.claude.com/docs/en/pricing.md` | "Extract current pricing per million tokens for input and output" |
### Core Features ### Core Features

View File

@ -1,8 +0,0 @@
<!--
name: 'Skill: Build Claude API and SDK apps'
description: Trigger rules for activating guidance when users are building applications with the Claude API, Anthropic SDKs, or Managed Agents
ccVersion: 2.1.101
-->
Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching.
TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks to use the Claude API, Anthropic SDKs, or Managed Agents (`/v1/agents`, `/v1/sessions`); user asks to add, modify, debug, optimize, or improve a Claude feature (prompt caching, cache hit rate, adaptive thinking, compaction, code_execution, batch, files API, citations, memory tool) or a Claude model (Opus/Sonnet/Haiku) in a file; or user asks about prompt caching / cache hit rate / cache reads / cache creation in any project that uses the Anthropic SDK (even without mentioning Claude by name).
DO NOT TRIGGER when: file imports `openai`/non-Anthropic SDK, filename signals another provider (`agent-openai.py`, `*-generic.py`), code is provider-neutral, or task is general programming/ML.

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'Skill: Build with Claude API (reference guide)' name: 'Skill: Build with Claude API (reference guide)'
description: Template for presenting language-specific reference documentation with quick task navigation description: Template for presenting language-specific reference documentation with quick task navigation
ccVersion: 2.1.97 ccVersion: 2.1.108
--> -->
## Reference Documentation ## Reference Documentation
@ -17,7 +17,7 @@ The relevant documentation for your detected language is included below in `<doc
**Long-running conversations (may exceed context window):** **Long-running conversations (may exceed context window):**
→ Refer to `{lang}/claude-api/README.md` — see Compaction section → Refer to `{lang}/claude-api/README.md` — see Compaction section
<!-- __G2__ -->
**Prompt caching / optimize caching / "why is my cache hit rate low":** **Prompt caching / optimize caching / "why is my cache hit rate low":**
→ Refer to `shared/prompt-caching.md` + `{lang}/claude-api/README.md` (Prompt Caching section) → Refer to `shared/prompt-caching.md` + `{lang}/claude-api/README.md` (Prompt Caching section)

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'Skill: Building LLM-powered applications with Claude' name: 'Skill: Building LLM-powered applications with Claude'
description: Guides Claude in building LLM-powered applications using the Anthropic SDK, covering language detection, API surface selection (Claude API vs Managed Agents), model defaults, thinking/effort configuration, and language-specific documentation reading description: Guides Claude in building LLM-powered applications using the Anthropic SDK, covering language detection, API surface selection (Claude API vs Managed Agents), model defaults, thinking/effort configuration, and language-specific documentation reading
ccVersion: 2.1.97 ccVersion: 2.1.108
--> -->
# Building LLM-Powered Applications with Claude # Building LLM-Powered Applications with Claude
@ -181,9 +181,8 @@ A note: if any of the model strings above look unfamiliar to you, that's to be e
## Thinking & Effort (Quick Reference) ## Thinking & Effort (Quick Reference)
**Opus 4.6 — Adaptive thinking (recommended):** Use `thinking: {type: "adaptive"}`. Claude dynamically decides when and how much to think. No `budget_tokens` needed — `budget_tokens` is deprecated on Opus 4.6 and Sonnet 4.6 and must not be used. Adaptive thinking also automatically enables interleaved thinking (no beta header needed). **When the user asks for "extended thinking", a "thinking budget", or `budget_tokens`: always use Opus 4.6 with `thinking: {type: "adaptive"}`. The concept of a fixed token budget for thinking is deprecated — adaptive thinking replaces it. Do NOT use `budget_tokens` and do NOT switch to an older model.** **Opus 4.6 — Adaptive thinking (recommended):** Use `thinking: {type: "adaptive"}`. Claude dynamically decides when and how much to think. No `budget_tokens` needed — `budget_tokens` is deprecated on Opus 4.6 and Sonnet 4.6 and should not be used for new code. Adaptive thinking also automatically enables interleaved thinking (no beta header needed). **When the user asks for "extended thinking", a "thinking budget", or `budget_tokens`: always use Opus 4.6 with `thinking: {type: "adaptive"}`. The concept of a fixed token budget for thinking is deprecated — adaptive thinking replaces it. Do NOT use `budget_tokens` for new 4.6 code and do NOT switch to an older model.**
**Effort parameter (GA, no beta header):** Controls thinking depth and overall token spend via `output_config: {effort: "low"|"medium"|"high"|"max"}` (inside `output_config`, not top-level). Default is `high` (equivalent to omitting it). `max` is Opus-tier only (Opus 4.6 and later — not Sonnet or Haiku). Works on Opus 4.5, Opus 4.6, and Sonnet 4.6. Will error on Sonnet 4.5 / Haiku 4.5. Combine with adaptive thinking for the best cost-quality tradeoffs. Lower effort means fewer and more-consolidated tool calls, less preamble, and terser confirmations — `medium` is often a favorable balance; use `max` when correctness matters more than cost; use `low` for subagents or simple tasks.
**Effort parameter (GA, no beta header):** Controls thinking depth and overall token spend via `output_config: {effort: "low"|"medium"|"high"|"max"}` (inside `output_config`, not top-level). Default is `high` (equivalent to omitting it). `max` is Opus 4.6 only. Works on Opus 4.5, Opus 4.6, and Sonnet 4.6. Will error on Sonnet 4.5 / Haiku 4.5. Combine with adaptive thinking for the best cost-quality tradeoffs. Lower effort means fewer and more-consolidated tool calls, less preamble, and terser confirmations — `medium` is often a favorable balance; use `max` when correctness matters more than cost; use `low` for subagents or simple tasks.
**Sonnet 4.6:** Supports adaptive thinking (`thinking: {type: "adaptive"}`). `budget_tokens` is deprecated on Sonnet 4.6 — use adaptive thinking instead. **Sonnet 4.6:** Supports adaptive thinking (`thinking: {type: "adaptive"}`). `budget_tokens` is deprecated on Sonnet 4.6 — use adaptive thinking instead.
@ -251,7 +250,6 @@ After detecting the language, read the relevant files based on what the user nee
**Long-running conversations (may exceed context window):** **Long-running conversations (may exceed context window):**
→ Read `{lang}/claude-api/README.md` — see Compaction section → Read `{lang}/claude-api/README.md` — see Compaction section
**Prompt caching / optimize caching / "why is my cache hit rate low":** **Prompt caching / optimize caching / "why is my cache hit rate low":**
→ Read `shared/prompt-caching.md` + `{lang}/claude-api/README.md` (Prompt Caching section) → Read `shared/prompt-caching.md` + `{lang}/claude-api/README.md` (Prompt Caching section)
@ -283,7 +281,7 @@ Read the **language-specific Claude API folder** (`{language}/claude-api/`):
7. **`{language}/claude-api/files-api.md`** — Read when sending the same file across multiple requests without re-uploading. 7. **`{language}/claude-api/files-api.md`** — Read when sending the same file across multiple requests without re-uploading.
8. **`shared/prompt-caching.md`** — Read when adding or optimizing prompt caching. Covers prefix-stability design, breakpoint placement, and anti-patterns that silently invalidate cache. 8. **`shared/prompt-caching.md`** — Read when adding or optimizing prompt caching. Covers prefix-stability design, breakpoint placement, and anti-patterns that silently invalidate cache.
9. **`shared/error-codes.md`** — Read when debugging HTTP errors or implementing error handling. 9. **`shared/error-codes.md`** — Read when debugging HTTP errors or implementing error handling.
10. **`shared/live-sources.md`** — WebFetch URLs for fetching the latest official documentation. 11. **`shared/live-sources.md`** — WebFetch URLs for fetching the latest official documentation.
> **Note:** For Java, Go, Ruby, C#, PHP, and cURL — these have a single file each covering all basics. Read that file plus `shared/tool-use-concepts.md` and `shared/error-codes.md` as needed. > **Note:** For Java, Go, Ruby, C#, PHP, and cURL — these have a single file each covering all basics. Read that file plus `shared/tool-use-concepts.md` and `shared/error-codes.md` as needed.
@ -304,11 +302,11 @@ Live documentation URLs are in `shared/live-sources.md`.
## Common Pitfalls ## Common Pitfalls
- Don't truncate inputs when passing files or content to the API. If the content is too long to fit in the context window, notify the user and discuss options (chunking, summarization, etc.) rather than silently truncating. - Don't truncate inputs when passing files or content to the API. If the content is too long to fit in the context window, notify the user and discuss options (chunking, summarization, etc.) rather than silently truncating.
- **Opus 4.6 / Sonnet 4.6 thinking:** Use `thinking: {type: "adaptive"}` — do NOT use `budget_tokens` (deprecated on both Opus 4.6 and Sonnet 4.6). For older models, `budget_tokens` must be less than `max_tokens` (minimum 1024). This will throw an error if you get it wrong. - **Opus 4.6 / Sonnet 4.6 thinking:** Use `thinking: {type: "adaptive"}` — do NOT use `budget_tokens` for new 4.6 code (deprecated on both Opus 4.6 and Sonnet 4.6). For older models, `budget_tokens` must be less than `max_tokens` (minimum 1024). This will throw an error if you get it wrong.
- **Opus 4.6 prefill removed:** Assistant message prefills (last-assistant-turn prefills) return a 400 error on Opus 4.6. Use structured outputs (`output_config.format`) or system prompt instructions to control response format instead. - **4.6 family prefill removed:** Assistant message prefills (last-assistant-turn prefills) return a 400 error on both Opus 4.6 and Sonnet 4.6. Use structured outputs (`output_config.format`) or system prompt instructions to control response format instead.
- **`max_tokens` defaults:** Don't lowball `max_tokens` — hitting the cap truncates output mid-thought and requires a retry. For non-streaming requests, default to `~16000` (keeps responses under SDK HTTP timeouts). For streaming requests, default to `~64000` (timeouts aren't a concern, so give the model room). Only go lower when you have a hard reason: classification (`~256`), cost caps, or deliberately short outputs. - **`max_tokens` defaults:** Don't lowball `max_tokens` — hitting the cap truncates output mid-thought and requires a retry. For non-streaming requests, default to `~16000` (keeps responses under SDK HTTP timeouts). For streaming requests, default to `~64000` (timeouts aren't a concern, so give the model room). Only go lower when you have a hard reason: classification (`~256`), cost caps, or deliberately short outputs.
- **128K output tokens:** Opus 4.6 supports up to 128K `max_tokens`, but the SDKs require streaming for values that large to avoid HTTP timeouts. Use `.stream()` with `.get_final_message()` / `.finalMessage()`. - **128K output tokens:** Opus 4.6 supports up to 128K `max_tokens`, but the SDKs require streaming for values that large to avoid HTTP timeouts. Use `.stream()` with `.get_final_message()` / `.finalMessage()`.
- **Tool call JSON parsing (Opus 4.6):** Opus 4.6 may produce different JSON string escaping in tool call `input` fields (e.g., Unicode or forward-slash escaping). Always parse tool inputs with `json.loads()` / `JSON.parse()` — never do raw string matching on the serialized input. - **Tool call JSON parsing (4.6 family):** Opus 4.6 and Sonnet 4.6 may produce different JSON string escaping in tool call `input` fields (e.g., Unicode or forward-slash escaping). Always parse tool inputs with `json.loads()` / `JSON.parse()` — never do raw string matching on the serialized input.
- **Structured outputs (all models):** Use `output_config: {format: {...}}` instead of the deprecated `output_format` parameter on `messages.create()`. This is a general API change, not 4.6-specific. - **Structured outputs (all models):** Use `output_config: {format: {...}}` instead of the deprecated `output_format` parameter on `messages.create()`. This is a general API change, not 4.6-specific.
- **Don't reimplement SDK functionality:** The SDK provides high-level helpers — use them instead of building from scratch. Specifically: use `stream.finalMessage()` instead of wrapping `.on()` events in `new Promise()`; use typed exception classes (`Anthropic.RateLimitError`, etc.) instead of string-matching error messages; use SDK types (`Anthropic.MessageParam`, `Anthropic.Tool`, `Anthropic.Message`, etc.) instead of redefining equivalent interfaces. - **Don't reimplement SDK functionality:** The SDK provides high-level helpers — use them instead of building from scratch. Specifically: use `stream.finalMessage()` instead of wrapping `.on()` events in `new Promise()`; use typed exception classes (`Anthropic.RateLimitError`, etc.) instead of string-matching error messages; use SDK types (`Anthropic.MessageParam`, `Anthropic.Tool`, `Anthropic.Message`, etc.) instead of redefining equivalent interfaces.
- **Don't define custom types for SDK data structures:** The SDK exports types for all API objects. Use `Anthropic.MessageParam` for messages, `Anthropic.Tool` for tool definitions, `Anthropic.ToolUseBlock` / `Anthropic.ToolResultBlockParam` for tool results, `Anthropic.Message` for responses. Defining your own `interface ChatMessage { role: string; content: unknown }` duplicates what the SDK already provides and loses type safety. - **Don't define custom types for SDK data structures:** The SDK exports types for all API objects. Use `Anthropic.MessageParam` for messages, `Anthropic.Tool` for tool definitions, `Anthropic.ToolUseBlock` / `Anthropic.ToolResultBlockParam` for tool results, `Anthropic.Message` for responses. Defining your own `interface ChatMessage { role: string; content: unknown }` duplicates what the SDK already provides and loses type safety.

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'Skill: Create verifier skills' name: 'Skill: Create verifier skills'
description: Prompt for creating verifier skills for the Verify agent to automatically verify code changes description: Prompt for creating verifier skills for the Verify agent to automatically verify code changes
ccVersion: 2.1.69 ccVersion: 2.1.108
--> -->
Use the TodoWrite tool to track your progress through this multi-step task. Use the TodoWrite tool to track your progress through this multi-step task.
@ -203,10 +203,10 @@ If verification fails because this skill's instructions are outdated (dev server
**verifier-playwright**: **verifier-playwright**:
```yaml ```yaml
allowed-tools: allowed-tools:
- Bash(npm:*) - Bash(npm *)
- Bash(yarn:*) - Bash(yarn *)
- Bash(pnpm:*) - Bash(pnpm *)
- Bash(bun:*) - Bash(bun *)
- mcp__playwright__* - mcp__playwright__*
- Read - Read
- Glob - Glob
@ -217,7 +217,7 @@ allowed-tools:
```yaml ```yaml
allowed-tools: allowed-tools:
- Tmux - Tmux
- Bash(asciinema:*) - Bash(asciinema *)
- Read - Read
- Glob - Glob
- Grep - Grep
@ -226,10 +226,10 @@ allowed-tools:
**verifier-api**: **verifier-api**:
```yaml ```yaml
allowed-tools: allowed-tools:
- Bash(curl:*) - Bash(curl *)
- Bash(http:*) - Bash(http *)
- Bash(npm:*) - Bash(npm *)
- Bash(yarn:*) - Bash(yarn *)
- Read - Read
- Glob - Glob
- Grep - Grep

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'Skill: Update Claude Code Config' name: 'Skill: Update Claude Code Config'
description: Skill for modifying Claude Code configuration file (settings.json). description: Skill for modifying Claude Code configuration file (settings.json).
ccVersion: 2.1.77 ccVersion: 2.1.108
variables: variables:
- SETTINGS_FILE_LOCATION_PROMPT - SETTINGS_FILE_LOCATION_PROMPT
- HOOKS_CONFIGURATION_PROMPT - HOOKS_CONFIGURATION_PROMPT
@ -62,7 +62,7 @@ When adding to permission arrays or hook arrays, **merge with existing**, don't
**WRONG** (replaces existing permissions): **WRONG** (replaces existing permissions):
```json ```json
{ "permissions": { "allow": ["Bash(npm:*)"] } } { "permissions": { "allow": ["Bash(npm *)"] } }
``` ```
**RIGHT** (preserves existing + adds new): **RIGHT** (preserves existing + adds new):
@ -70,9 +70,9 @@ When adding to permission arrays or hook arrays, **merge with existing**, don't
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"Bash(git:*)", // existing "Bash(git *)", // existing
"Edit(.claude)", // existing "Edit(.claude)", // existing
"Bash(npm:*)" // new "Bash(npm *)" // new
] ]
} }
} }
@ -113,7 +113,7 @@ User: "Format my code after Claude writes it"
User: "Allow npm commands without prompting" User: "Allow npm commands without prompting"
1. **Read**: Existing permissions 1. **Read**: Existing permissions
2. **Merge**: Add `Bash(npm:*)` to allow array 2. **Merge**: Add `Bash(npm *)` to allow array
3. **Result**: Combined with existing allows 3. **Result**: Combined with existing allows
### Environment Variables ### Environment Variables

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'System Prompt: Avoiding Unnecessary Sleep Commands (part of PowerShell tool description)' name: 'System Prompt: Avoiding Unnecessary Sleep Commands (part of PowerShell tool description)'
description: Guidelines for avoiding unnecessary sleep commands in PowerShell scripts, including alternatives for waiting and notification description: Guidelines for avoiding unnecessary sleep commands in PowerShell scripts, including alternatives for waiting and notification
ccVersion: 2.1.84 ccVersion: 2.1.108
--> -->
- Avoid unnecessary `Start-Sleep` commands: - Avoid unnecessary `Start-Sleep` commands:
- Do not sleep between commands that can run immediately — just run them. - Do not sleep between commands that can run immediately — just run them.
@ -9,4 +9,4 @@ ccVersion: 2.1.84
- Do not retry failing commands in a sleep loop — diagnose the root cause or consider an alternative approach. - Do not retry failing commands in a sleep loop — diagnose the root cause or consider an alternative approach.
- If waiting for a background task you started with `run_in_background`, you will be notified when it completes — do not poll. - If waiting for a background task you started with `run_in_background`, you will be notified when it completes — do not poll.
- If you must poll an external process, use a check command rather than sleeping first. - If you must poll an external process, use a check command rather than sleeping first.
- If you must sleep, keep the duration short (1-5 seconds) to avoid blocking the user. - If you must sleep, keep the duration short to avoid blocking the user.

View File

@ -0,0 +1,44 @@
<!--
name: 'System Prompt: REPL tool usage and scripting conventions'
description: Instructs Claude on how to use the REPL tool effectively with dense JavaScript scripts, shorthands, batching rules, and API reference for investigation tasks
ccVersion: 2.1.108
variables:
- EDIT_TOOL_NAME
- WRITE_TOOL_NAME
-->
REPL is your **only way** to investigate — shell, file reads, and code search all happen here via the shorthands below. Edit, Write, and Agent are still available as top-level tools for direct use.
**Aim for 1-3 REPL calls per turn** — over-fetch and batch.
## Dense scripts — every char is an output token
```javascript
o.git=sh('git status')
for(const f of (await rgf('X','src')).slice(0,5)) o[f]=cat(f,1,300)
o
```
`o` is pre-declared `{}`; assign results directly to `o.key` (no `const x=` then repack). Promise values on `o` are auto-awaited — drop `await` unless you branch on the value. **End the script with bare `o`** (or a statement) to return the full object; ending on `o.x=...` returns just that one value. Relative paths resolve against cwd. No `//` comments — the `description` param is your comment. No blank lines, single-char vars.
## API
- `sh(cmd,ms?)` → stdout+stderr (merged — never write `2>&1` or `2>/dev/null`)
- `cat(path,off?,lim?)` → file content
- `rg(pat,path?,{A,B,C,glob,head,type,i}?)` → match text
- `rgf(pat,path?,glob?)` → matching file paths[]
- `gl(pat,path?)` → glob file paths[]
- `put(path,content)` → write file
- `gh(args)``sh('gh '+args)` with `-R ${REPO}` injected
- `chdir(path)` — set cwd for this REPL call
- `haiku(prompt,schema?)` — one-turn model sampling
- `registerTool(name,desc,schema,handler)` / `unregisterTool` / `listTools` / `getTool`
- `log` (console.log) · `str` (JSON.stringify) · `shQuote(s)` · `REPO` ('owner/name')
- `await ${EDIT_TOOL_NAME}({…})` / `await ${WRITE_TOOL_NAME}({…})` / `await mcp__server__tool({…})` (MCP tools by full name)
Shorthands never throw — `sh`/`cat`/`rg` return the error text on failure, `rgf`/`gl` return `[]`, never `undefined`. Permission-denied is a hard no — don't retry the same call; pivot or stop.
## Rules
- One investigation = one call. Put the next step in the code; grep→read→grep in one script. A failing inner call degrades the result, not the whole script.
- No `import`/`require`/`process`/Node globals — the VM context is sealed. ≥3 ops per call. Over-fetch (3-5 files, 3-4 patterns).
- Variables persist across calls. Last expression (or `o`) = return value. No top-level `return` — end with `o` and branch with `if/else` above it.
- Never re-invoke a stateful op (`sh`/`Edit`/`put`) to grab another field — `git reset`, `rm`, migrations run twice.

View File

@ -1,7 +1,7 @@
<!-- <!--
name: 'System Prompt: Skillify Current Session' name: 'System Prompt: Skillify Current Session'
description: System prompt for converting the current session in to a skill. description: System prompt for converting the current session in to a skill.
ccVersion: 2.1.41 ccVersion: 2.1.108
--> -->
# Skillify {{userDescriptionBlock}} # Skillify {{userDescriptionBlock}}
@ -124,7 +124,7 @@ IMPORTANT: see the next section below for the per-step annotations you can optio
- Keep simple skills simple -- a 2-step skill doesn't need annotations on every step - Keep simple skills simple -- a 2-step skill doesn't need annotations on every step
**Frontmatter rules:** **Frontmatter rules:**
- `allowed-tools`: Minimum permissions needed (use patterns like `Bash(gh:*)` not `Bash`) - `allowed-tools`: Minimum permissions needed (use patterns like `Bash(gh *)` not `Bash`)
- `context`: Only set `context: fork` for self-contained skills that don't need mid-process user input. - `context`: Only set `context: fork` for self-contained skills that don't need mid-process user input.
- `when_to_use` is CRITICAL -- tells the model when to auto-invoke. Start with "Use when..." and include trigger phrases. Example: "Use when the user wants to cherry-pick a PR to a release branch. Examples: 'cherry-pick to release', 'CP this PR', 'hotfix'." - `when_to_use` is CRITICAL -- tells the model when to auto-invoke. Start with "Use when..." and include trigger phrases. Example: "Use when the user wants to cherry-pick a PR to a release branch. Examples: 'cherry-pick to release', 'CP this PR', 'hotfix'."
- `arguments` and `argument-hint`: Only include if the skill takes parameters. Use `$name` in the body for substitution. - `arguments` and `argument-hint`: Only include if the skill takes parameters. Use `$name` in the body for substitution.

View File

@ -0,0 +1,8 @@
<!--
name: 'System Reminder: Stop hook blocking error'
description: Error from a blocking hook command
ccVersion: 2.1.107
variables:
- HOOK_NAME
-->
Stop hook blocking error from command "${HOOK_NAME}":

View File

@ -1,6 +1,6 @@
<!-- <!--
name: 'Tool Description: Bash (sleep — keep short)' name: 'Tool Description: Bash (sleep — keep short)'
description: Bash tool instruction: keep sleep duration to 1-5 seconds description: Bash tool instruction: keep sleep duration to 1-5 seconds
ccVersion: 2.1.53 ccVersion: 2.1.108
--> -->
If you must sleep, keep the duration short (1-5 seconds) to avoid blocking the user. If you must sleep, keep the duration short to avoid blocking the user.

View File

@ -0,0 +1,42 @@
<!--
name: 'Tool Description: REPL'
description: Describes the REPL tool, a JavaScript programming interface for looping, branching, and composing Claude Code tool calls as async functions
ccVersion: 2.1.108
-->
REPL is your programming interface to Claude Code's tools. Use it to loop, branch, and compose tool calls with code.
## How to Use
Write JavaScript that calls tools as async functions:
```javascript
const { filenames } = await Glob({ pattern: 'src/**/*.ts' })
for (const f of filenames) {
const { file } = await Read({ file_path: f })
if (file.content.includes('oldName')) {
await Edit({ file_path: f, old_string: 'oldName', new_string: 'newName', replace_all: true })
}
}
```
**IMPORTANT: Batch ALL operations into ONE REPL call.** Don't make multiple separate REPL calls - write a complete script that does everything.
## Available Tools
All tools work as async functions: `Read`, `Write`, `Edit`, `Glob`, `Grep`, `Bash`, etc. MCP tools are callable by their full name (e.g. `await mcp__slack__slack_send_message({...})`).
```javascript
const { filenames } = await Glob({ pattern: '*.ts' })
const { file } = await Read({ file_path: 'config.json' })
await Edit({ file_path: 'foo.ts', old_string: 'old', new_string: 'new' })
const { stdout } = await Bash({ command: 'git status' })
```
## Tips
- `import`/`require` don't work here — the vm context is sealed. For filesystem access use `Read`/`Write`/`Glob`; for shell use `Bash`.
- Use `Promise.all()` for parallel operations
- Variables persist across REPL calls
- Last expression is returned as the result
- `haiku(prompt, schema?)` — one-turn model sampling. Without schema returns text; with a JSON schema returns the parsed object.
- `registerTool(name, desc, schema, handler)` defines a new tool; `unregisterTool(name)`, `listTools()`, `getTool(name)` manage them
- `shQuote(s)` quotes a string for Bash — use this instead of `JSON.stringify` (double quotes don't protect backticks or `$`)