A Claude Code plugin providing specialized skills for working with the CPython repository - the reference implementation of the Python programming language.
This plugin provides AI agents (Claude and others) with deep knowledge about CPython's codebase structure, build system, testing infrastructure, and coding standards. While expressed in Claude Skills format, they are designed to be usable by any AI agent, not just Claude.
When to use: Working in the CPython repository, managing engineering notebooks
Provides essential context including:
- Recommended tools (gh, ripgrep, jq, pre-commit)
- File size considerations
- Engineering notebook management for PRs and branches as a task specific long term memory.
- Developer guide and PEP references
When to use: Finding code, understanding codebase structure, locating tests
Covers:
- Source code organization (Lib/, Modules/, Objects/, Python/, Include/)
- Test location and naming conventions
- Argument Clinic overview
- Scratch space usage
- Documentation structure
When to use: Configuring, building, or rebuilding CPython
Includes:
- Build directory setup
- Platform-specific configuration (Linux, macOS, Windows)
- Incremental builds
- Argument Clinic code generation
- Build verification and troubleshooting
When to use: Running tests, collecting coverage, debugging test failures
Details:
- unittest-based testing (not pytest!)
- Running individual tests and test suites
- Using
--matchfor test filtering - Code coverage collection
- Test package handling
- Interactive debugging with tmux
When to use: Writing code, ensuring style compliance, preparing commits
Covers:
- PEP 7 (C code) and PEP 8 (Python code) compliance
- Trailing whitespace and file ending rules
- Type annotation policy (no annotations in Lib/!)
- Pre-commit hooks and patchcheck
- Documentation formatting
While the skills are designed to work with or without these tools, having them installed can significantly improves the agentic development experience:
Why: Significantly faster than grep or find for searching large codebases
- CPython has extensive C and Python source files
- ripgrep is optimized for source code searching with smart defaults
- Install: Most package managers have
ripgrep(command isrg)
Why: Streamlined access to PR and issue information
- Query PR details, comments, and status directly from command line
- Use GraphQL API for complex queries
- Install: https://cli.github.com/
- You must manually pre-authorize this in line with your comfort level. For example, you could use a fine grained GitHub access token if you want to limit it to read-only access or only some of your repos if you are afraid of giving less trustworthy agents write access to interact with the world.
Why: Process JSON responses from APIs and tools
- Parse and filter GitHub and other tool and API responses
- Process structured tool output
- Install: Available in most package managers
Why: Automated code quality checks before commits
- Catches trailing whitespace, file endings, and syntax errors
- Runs configured linters and formatters
- Prevents common mistakes from being committed
- Install:
pip install pre-commitor via package manager
Note: The skills gracefully handle missing tools, but will recommend installation when relevant tasks arise.
- Clone or copy this directory to your Claude Code plugins location
- The plugin will be automatically discovered if placed in the right location
- Claude will automatically invoke these skills when relevant
This plugin follows the Claude Skills specification, making it usable by any AI agent that supports this format.
Each skill is a self-contained directory under skills/ with a SKILL.md file containing:
- YAML frontmatter with
nameanddescription - Markdown content with detailed instructions
Agents can:
- Read the skill descriptions to determine when to use them
- Load the skill content when relevant to the task
- Follow the instructions within each skill
cpython-skills/
├── plugin.json # Plugin manifest
├── README.md # This file
└── skills/ # Skills directory
├── cpython-context/
│ └── SKILL.md
├── cpython-navigation/
│ └── SKILL.md
├── cpython-build/
│ └── SKILL.md
├── cpython-testing/
│ └── SKILL.md
└── cpython-code-style/
└── SKILL.md
This plugin was converted from the original cpython/CLAUDE.local.md file, which provided similar context as a monolithic Markdown document. The skills-based approach provides:
- Modularity: Each skill focuses on a specific domain
- Discoverability: AI agents can find relevant skills based on task descriptions
- Reusability: Skills can be used independently or together
- Interoperability: Works with any agent supporting Claude Skills format
When working with CPython, the AI agent will automatically:
- Load
cpython-contextwhen starting work in the repo - Use
cpython-navigationto find relevant source files - Apply
cpython-buildknowledge when compiling - Follow
cpython-testingguidance when running tests - Enforce
cpython-code-stylerules when writing code
To extend these skills:
- Add new skills in the
skills/directory - Follow the SKILL.md format with YAML frontmatter
- Write clear descriptions so agents know when to use the skill
- Include examples and common workflows
CC0 1.0 Universal