compare-cpython-versions
Compare CPython source code between two Python versions to identify changes in headers and structs. Use this when adding support for a new Python version to understand what changed between versions.
npx skills add majiayu000/claude-skill-registry --skill compare-cpython-versions --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Compare CPython Versions Skill This skill helps compare CPython source code between two Python versions to identify changes in headers, structs, and APIs that affect our codebase. ## When to Use This Skill Use this skill when: - Adding support for a new Python version - Need to understand what changed between versions - Investigating compatibility issues - Have a list of headers/structs from `find-cpython-usage` skill ## Key Principles 1. **Compare systematically** - Focus on headers and structs identified in Step 1 2. **Use multiple methods** - Git diff, manual diff, or AI-assisted comparison 3. **Document changes** - Note all breaking changes and API modifications 4. **Check context** - Understand why changes were made (PEPs, GitHub issues) ## How This Skill Works ### Step 1: Prepare CPython Repository ```bash # Create ~/dd directory if it doesn't exist mkdir -p ~/dd # Clone CPython repository if needed (to ~/dd/cpython) if [ ! -d ~/dd/cpython ]; then git clone https://github.com/python/cpython.git ~/dd/cpython cd ~/dd/cpython git fetch --tags else cd ~/dd/cpython # Update existing repository git fetch --tags git fetch origin fi ``` ### Step 2: Compare Specific Headers Using th
- When to Use This Skill
- Key Principles
- How This Skill Works
- Step 1: Prepare CPython Repository
- Step 2: Compare Specific Headers
- Step 3: Identify Changes
- Step 4: Analyze Impact
- Step 5: Use AI Tools (Optional)
- Common Change Patterns
- Output Format
- Related
Create ~/dd directory if it doesn't exist mkdir -p ~/dd Clone CPython repository if needed (to ~/dd/cpython) if [ ! -d ~/dd/cpython ]; then git clone https://github.com/python/cpython.git ~/dd/cpython cd ~/dd/cpython git fetch --tags else git fetch origin fi
What does the compare-cpython-versions skill do?
Compare CPython source code between two Python versions to identify changes in headers and structs. Use this when adding support for a new Python version to understand what changed between versions.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill compare-cpython-versions --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
