Claude Code Prompts banner
p0 p0

Claude Code Prompts

AI community

Description

System prompts and tool definitions from each version of @anthropic-ai/claude-code

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude Code Prompts Collection

This repository automatically collects system prompts and tool definitions from each version of `@anthropic-ai/claude-code` published on npm.

How It Works

The script:

  1. Fetches all published versions of @anthropic-ai/claude-code from npm
  2. For each version:
    • Installs it locally in a temporary directory
    • Starts an HTTP interceptor on port 3000
    • Runs claude -p "hi" with ANTHROPIC_BASE_URL=http://localhost:3000
    • Captures the first API request that contains both tools and a substantial system prompt
    • Saves the system prompt to system_prompt.md
    • Saves each tool definition to tools/{tool_name}.md
    • Creates a git commit for that version
  3. Cleans up temporary files

Automation

This repository automatically checks for new versions **every 6 hours** via GitHub Actions. When new versions are published to npm, they are automatically collected and committed.

You can also manually trigger the workflow from the [Actions tab](../../actions).

**Note**: The automation requires an `ANTHROPIC_API_KEY` secret to be set in the repository settings. However, since the script uses a local interceptor, the API key can be any non-empty value (e.g., `test-key`).

Usage

Install Dependencies

npm install

Run Collection

# Process all versions (skips already-processed ones)
npm start

# Start from a specific version (recommended for updates)
npm start -- --start-from=2.0.31

# Test mode: only process the last 3 versions
npm start -- --test

View Results

After running, you can use `git log` to see all the commits, one per version:

git log --oneline

To see how the system prompt changed between versions:

git diff   system_prompt.md

To see how a specific tool changed:

git diff   tools/Bash.md

Files

  • collect.ts - Main collection script
  • package.json - Project dependencies
  • `test-interc