agent-skills
Portable, agent-neutral skills for Python packaging and compiled-extension
work: choosing a build backend, modernizing packaging metadata, porting C/C++
extension ABIs (stable ABI / abi3, free-threading, PyTorch), building a secure
release pipeline, and auditing crypto/FIPS use. A skill is a small folder of
Markdown with a defined workflow, on the open Agent Skills standard — so the same
files work across Claude Code, Codex, and other coding agents. They are
AI-generated but grounded, hand-reviewed by a CPython core developer
(how).
Skills
Grouped by topic — project bootstrap, then build backends, then packaging
metadata, then compiled-extension and ABI ports, then release and auditing:
| Skill | Status | What it does |
|---|
bootstrap-python-project | Beta | Scaffold a new project from zero — or bring an existing one up to standard — modern src/ layout, PEP 621 metadata, VCS versioning, type checking, lint/format, tests, and hardened GitHub CI. Orchestrates the build-backend, metadata, type-information, and release skills. |
choose-python-build-backend | Exp | Recommend the right build backend (uv-build, flit, hatchling, meson-python, scikit-build-core, maturin, setuptools) by purelib/platlib, static/dynamic metadata, and language — with migration context. |
port-to-scikit-build-core | Exp | Migrate a package's build from bespoke setup.py to scikit-build-core + CMake (PEP 517/621, standards-based wheels, editable installs). |
port-to-meson-python | Exp | Build a package with the meson-python + Meson backend, or port one off setup.py (PEP 517/621, VCS versioning, abi3 wheels). |
modernize-python-metadata | Beta | Improve packaging metadata and move it into a PEP 621 [project] table — readme, SPDX license, classifiers, well-known URLs, dependency groups, no version caps. Includes a Poetry (and PDM) → PEP 621 migration lens. |
port-to-python-limited-api | Exp | Port a hand-written C/C++ extension to the Limited API / stable ABI — one abi3 wheel across Python versions instead of one per version; optionally target 3.15 abi3t for free-threaded builds. |
port-to-free-threaded-python | Exp | Make a package work on the free-threaded (no-GIL) CPython build (PEP 703) and declare support so import doesn't re-enable the GIL — thread-safety pass, Py_mod_gil, cp3Xt wheels, TSan. Fixes simple races, reports the rest. |
pybind11-to-nanobind | Exp | Port a C++ extension's bindings from pybind11 to nanobind — smaller/faster bindings and one abi3 wheel across Python versions. |
port-to-torch-stable-abi | Beta | Port a compiled PyTorch C++/CUDA/ROCm extension to the stable ABI (one wheel across Torch versions), then assess Python abi3. |
ship-type-information | Exp | Ship verified type info — annotate untyped code, add py.typed, generate .pyi stubs for C/C++/Rust extensions, verify with mypy/pyright/ty/pyrefly + stubtest, and package so the wheel carries them. |
secure-python-release-pipeline | Exp | A secure GitHub Actions build/release pipeline — sdist + wheels (cibuildwheel), Trusted Publisher to PyPI, minimal permissions, zizmor. |
crypto-fips-audit | Beta | Audit a Python package — and any C/C++/Go/Rust it ships — for its cryptography: inventory usage, find insecure/weak crypto, and assess FIPS 140-3 compliance. Source-first, confirmed against the built artifact. Gathers evidence; does not certify. |
Status reflects how battle-tested a skill is:
- Stable — applied across many projects; workflow and references verified.
- Beta — built from real, source-verified cases and used on a few; solid but
expect rough edges, and check its output.
- Experimental (
Exp in the table) — early draft, not yet run end-to-end.
All skills share a common skills/GUARDRAILS.md —
operating rules the agent follows unless you say otherwise: use uv + a project
.venv (never global installs), don't delete content or commit/push without
approval, ask before heavy installs/compiles, and match the project's style.
Requirements