Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/sisibeloved/cpython-optimize-skill/cinderx-env-bootstrapnpx skills add sisibeloved/cpython-optimize-skill --skill cinderx-env-bootstrapgit clone --depth 1 https://github.com/sisibeloved/cpython-optimize-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sisibeloved/cpython-optimize-skill/cinderx-env-bootstrap)<a href="https://agentmods.dev/skills/sisibeloved/cpython-optimize-skill/cinderx-env-bootstrap"><img src="https://agentmods.dev/badge/skills/sisibeloved/cpython-optimize-skill/cinderx-env-bootstrap.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00044 | $0.01057 |
| Opus 5 | $0.00022 | $0.00528 |
| Sonnet 5 | $0.00009 | $0.00211 |
| Haiku 4.5 | $0.00004 | $0.00106 |
Grade A, and why
cinderx-env-bootstrap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CinderX Env Bootstrap
负责从零或清理后建立 CPython/CinderX lab。远端 SSH/tmux/rsync 由 cinderx-remote-lab-ops 提供。
目标形态
cinderx-test:CinderX 功能验证、HIR dump、crash 复现、调试。cpython-baseline:stock CPython / CPython JIT 与 CinderX 正式对照。- CinderX editable install:
python -m pip install -e . --no-build-isolation --no-deps --force-reinstall。 - pyperformance:固定源码、依赖和 worker 环境。
- pip mirror/cache:优先镜像源和已有缓存,不无限等待在线安装。
- 容器排障工具:按
../using-cpython-optimize/references/container-tooling-guidance.md准备或补装gdb、ripgrep/rg、strace、perf、binutils等关键工具;缺工具时先探测网络和 cache,不要直接绕开取证路径。 - CPython baseline 源码:优先复用已验证的本地 clone、worktree、tarball/cache 或已有容器源码;远端下载是最后选项。
- AArch64 RuntimeTests / JIT TLS:
/opt/python314必须使用非共享 libpython 形态构建,避免_PyThreadState_GetCurrent经 PLT 或 TLSDESC 动态 TLS 序列导致DetectsThreadStateOffset失败。
AArch64 TLS 约束
构建 RuntimeTests 可用的 Python 时,不要为了通用嵌入场景构建共享 libpython。CinderX AArch64 TLS offset 探测当前依赖 _PyThreadState_GetCurrent 的固定 TLS offset 指令形态;共享/PIC Python 可能让 CMake 的 Python::Python 指向 libpython3.14.so,或让真实函数体变成 TLSDESC 动态 TLS,最终使 tstate_offset = -1。
bootstrap 完成后必须自检:
sysconfig.get_config_var("Py_ENABLE_SHARED")不是1。/opt/python314/lib下不存在libpython3.14*.so*。- RuntimeTests 相关 CMake 输出不应把
_Python_LIBRARY_RELEASE解析到libpython3.14.so。
本地来源优先
外部网络不佳时,不要因为当前本地 CPython checkout 不是 3.14.3 就直接下载源码。先让 cinderx-env-validate 检查是否能安全切换:
- 本地 clone 有 3.14.3 tag/branch/ref:用独立 worktree 或专用目录切换。
- 已有 tarball/cache:校验 hash/来源记录和
Include/patchlevel.h后解压到专用目录。 - 已有容器内源码:校验容器线、
patchlevel.h、目标解释器和 include 路径后复用。 - 只有本地来源不可用、用户授权联网,才 fetch/download。
反问 Gate
- host、workspace、源码路径、Docker 双线或 Python 微版本缺失且无法唯一推断时,询问用户。
- 在线依赖下载异常慢时,询问继续等待、切镜像、复用 cache 或中止。
- 容器内补装
gdb、ripgrep、strace、perf、binutils等工具遇到网络慢、metadata 无输出或镜像源异常时,及时反馈并询问继续等待、切镜像、复用 cache、上传离线包或中止。 cinderx-test与cpython-baseline的目标线不明确时,询问是调试线还是正式对照线。- 本地 CPython 仓有未提交改动、需要切换 ref、需要
git fetch --tags或要覆盖已有 worktree 时,询问用户。
内置资源
templates/cpython-baseline/Dockerfiletemplates/cpython-baseline/docker-compose.ymltemplates/cinderx-test/docker-compose.ymlscripts/setup.shscripts/smoke.sh
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 59 lines · 44 tokens per session scan A 4eab3adefc34
cinderx-env-bootstrap is a skill published in the GitHub repository sisibeloved/cpython-optimize-skill (2 stars, last pushed 5d ago), licensed MIT. It adds 44 tokens to every session and 1,057 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
airflow
Apache Airflow is a platform for programmatically authoring, scheduling, and monitoring workflows. Learn to write DAGs, use operators, set up connections, configure scheduling, and deploy with Docker Compose.
docker_packaging
你是容器化部署专家。为 Python MCP 服务生成 Docker 配置时,遵循以下规范:.
code-style
Полный стиль кодирования пользователя — Python, Telegram-боты, монолитная архитектура, строгая типизация, логирование, README, Docker.
dockerfile-python-app
Write an efficient, secure Dockerfile for a Python app — layer caching, slim images, non-root user, and healthchecks.
python-devops-automation
DevOps automation with Python. Use this skill when automating infrastructure, working with AWS (boto3), building CLIs (click/typer), managing subprocesses, or working with Docker/Kubernetes from Python. Covers boto3 patterns, CLI design, subprocess management, and infrastructure automation.
bump-dependency
Bumps a Python package dependency across Home Assistant Core integrations, regenerates core requirement files, runs verification tests and prek lint, and prepares a pull request with proper release/compare links.