cinderx-env-bootstrap

cinderx-env-bootstrap is a skill for Claude Code, Codex from sisibeloved/cpython-optimize-skill. It costs 44 tokens per session (1,057 once invoked), scanned A, original, MIT.

A setup tool for creating a CPython and CinderX experiment lab from scratch or after cleanup. It prepares test environments, baseline Python, pyperformance, containers, and related dependencies.

In plain words
What is it for?
Use it to prepare CinderX editable installs, CPython baselines, pyperformance environments, Docker test lines, mirrors or caches, and debugging tools.
Why use it?
It avoids repeatedly assembling fragile experiment environments by hand and helps keep the reference and candidate setups consistent.

Skill for Claude CodeCodex

Part of the cpython-optimize-skill plugin — 35 skills, 9 agents, 2 hooks, 1 MCP server shipped together

Install

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.

agentmods
npx agentmods add skills/sisibeloved/cpython-optimize-skill/cinderx-env-bootstrap
Any agent
npx skills add sisibeloved/cpython-optimize-skill --skill cinderx-env-bootstrap
Clone the repo
git clone --depth 1 https://github.com/sisibeloved/cpython-optimize-skill

Made for: Claude Code, Codex.

Or install cpython-optimize-skill, the plugin that ships this one along with the rest of its 35 skills, 9 agents, 2 hooks, 1 MCP server.

Wrote 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.

agentmods badge for cinderx-env-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/skills/sisibeloved/cpython-optimize-skill/cinderx-env-bootstrap.svg)](https://agentmods.dev/skills/sisibeloved/cpython-optimize-skill/cinderx-env-bootstrap)
Your own site
<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>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 3d ago against content hash 4eab3adefc34, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/setup.sh, scripts/smoke.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/cpython-optimize-skill/skills/cinderx-env-bootstrap/SKILL.md · 59 lines

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 准备或补装 gdbripgrep / rgstraceperfbinutils 等关键工具;缺工具时先探测网络和 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 或中止。
  • 容器内补装 gdbripgrepstraceperfbinutils 等工具遇到网络慢、metadata 无输出或镜像源异常时,及时反馈并询问继续等待、切镜像、复用 cache、上传离线包或中止。
  • cinderx-testcpython-baseline 的目标线不明确时,询问是调试线还是正式对照线。
  • 本地 CPython 仓有未提交改动、需要切换 ref、需要 git fetch --tags 或要覆盖已有 worktree 时,询问用户。

内置资源

  • templates/cpython-baseline/Dockerfile
  • templates/cpython-baseline/docker-compose.yml
  • templates/cinderx-test/docker-compose.yml
  • scripts/setup.sh
  • scripts/smoke.sh

Read the full file on GitHub · 59 lines

Files

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.

Changes

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.

  1. 3d ago First seen · 59 lines · 44 tokens per session scan A 4eab3adefc34

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories