Add JIT compiler development skill to cpython-skills plugin#7
Merged
Conversation
Add a new 'jit' skill covering CPython's experimental JIT compiler development workflow. The skill provides guidance on: - LLVM 21 toolchain setup for stencil generation - JIT configure flags (--enable-experimental-jit options) - The copy-and-patch compilation pipeline (template.c → jit_stencils.h) - Key files in Tools/jit/ and Python/jit.c - Stencil regeneration after bytecode changes - Debugging JIT issues (PYTHON_JIT=0 vs PYTHON_JIT=1) - Supported target platforms and object formats - Key concepts: stencils, holes, preserve_none, musttail, GOT Also updates the dev skill to reference the jit skill as a loadable specialized skill, and updates plugin.json and README.md. https://claude.ai/code/session_01G1etZcjcrhEVk6rnLhJKZP
…g env vars to JIT skill Expand the JIT skill with additional details discovered during research: - Python/optimizer_analysis.c and Python/perf_jit_trampoline.c in key files - Lib/test/test_optimizer.py as the relevant test file - PYTHON_OPT_DEBUG environment variable table for debug tracing https://claude.ai/code/session_01G1etZcjcrhEVk6rnLhJKZP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new
jitskill to the cpython-skills plugin, providing comprehensive documentation and guidance for working on CPython's experimental JIT compiler.Key Changes
New skill file:
plugins/cpython-skills/skills/jit/SKILL.md- A detailed guide covering:--enable-experimental-jit(full JIT, interpreter-only, disabled variants)Tools/jit/) and runtime components (Python/jit.c, etc.)Updated plugin configuration:
plugins/cpython-skills/plugin.json- Registered the newjitskillUpdated README:
plugins/cpython-skills/README.md- Added documentation for the new skill and updated skill count from four to fiveUpdated dev skill description:
plugins/cpython-skills/skills/dev/SKILL.md- Updated to reference the new jit skill in the meta-skill coordination listImplementation Details
The JIT skill documentation is comprehensive and practical, covering the full development workflow from environment setup through debugging. It includes:
https://claude.ai/code/session_01G1etZcjcrhEVk6rnLhJKZP