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-validatenpx skills add sisibeloved/cpython-optimize-skill --skill cinderx-env-validategit 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-validate)<a href="https://agentmods.dev/skills/sisibeloved/cpython-optimize-skill/cinderx-env-validate"><img src="https://agentmods.dev/badge/skills/sisibeloved/cpython-optimize-skill/cinderx-env-validate.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.00058 | $0.01440 |
| Opus 5 | $0.00029 | $0.00720 |
| Sonnet 5 | $0.00012 | $0.00288 |
| Haiku 4.5 | $0.00006 | $0.00144 |
Grade A, and why
cinderx-env-validate 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 4d 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 — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CinderX Env Validate
给 cinderx-environment-verifier 使用。结论只能是 reusable、needs_bootstrap 或 needs_clean_bootstrap。
版本事实源
目标 Python 版本固定为 Python 3.14.3。环境校验必须以目标解释器、容器内头文件和 patchlevel.h 为事实源,不能把更高 patchlevel 才有的 C API 当成可用能力。
当前 checkout 不是事实源本身。比如本地 CPython 仓当前显示 3.16.0a0,只能说明当前工作树不符合目标版本,不能直接判定本地 CPython 仓整体不可信,也不能立刻改走远端下载。先尝试安全切换到本地已有的 3.14.3 可信来源。
Baseline Source 门禁
涉及 A/B baseline 时,先读取 ../using-cpython-optimize/references/baseline-source-contract.md。远程 SSH、tmux、Docker 容器或 pyperformance 可运行,只能证明执行环境可用,不能自动证明远程 workspace 当前源码可作为 baseline。
baseline 必须单独校验:
- 口径 baseline 与提交 baseline:例如 CPython 解释执行、CPython JIT、CinderX JIT,以及 baseline commit/ref。
- 源码来源:用户指定的 baseline commit/ref、CPython 3.14.3 release source、干净 git worktree、可信 tarball/cache,或
cpython-baseline容器 bind mount 指向的明确源码。 - 仓库状态:
git status --short、git show -s --format=%H、git describe --tags --always --dirty。 - 版本证据:
patchlevel.h、SOABI、目标解释器和 include 路径。 - 污染检查:baseline 不能误继承 candidate editable install、CinderX
.pth、PYTHONPATH、JIT hook 或CINDERX_*。
若远程源码 dirty、ref 不明、版本不符、bind mount 指向不明或混入 candidate 污染,返回 baseline_source_untrusted 并要求用户指定 baseline、创建干净 worktree 或重建 baseline 环境;不能把该源码交给 A/B runner。
本地 CPython 仓安全切换
当用户给出 /opt/Codex/cpython、CPYTHON_ROOT 或其它本地 CPython clone 时,按顺序检查:
- 仓库身份:
git remote -v、git show -s --format=%H、git describe --tags --always --dirty。 - 污染风险:
git status --short;有未提交改动时不能直接git checkout。 - 本地 3.14.3 来源:本地 tag、branch、ref、现有 worktree、tarball/cache 或已有容器中的源码。
- 版本证据:
Include/patchlevel.h、目标解释器sys.version、SOABI和 include 路径。
安全切换规则:
- 优先用
git worktree add <dedicated-dir> <3.14.3-ref>或专用目录,不污染用户当前 checkout。 - 只有在专用目录或明确授权的干净仓库中,才能切换 ref。
- 切换后必须重新读取
Include/patchlevel.h并运行目标解释器校验;通过后才可作为 baseline 事实源。 - 本地没有 3.14.3 ref/cache、dirty 状态无法隔离或需要
git fetch --tags时,先询问用户。 - 外部网络不佳时,优先复用本地 clone、worktree、tarball/cache 和已有容器;远端下载/extract Python-3.14.3 只作为最后选项。
必查项
- Python:目标解释器路径、
Python 3.14.3、SOABI、include 路径、patchlevel.h。 - baseline source:按
baseline-source-contract.md校验口径 baseline、提交 baseline、source path、commit/ref、dirty 状态和唯一差异轴。 - AArch64 RuntimeTests TLS:检查
Py_ENABLE_SHARED、CONFIG_ARGS、LIBDIR、LIBRARY、LDLIBRARY和 CMake_Python_LIBRARY_RELEASE;若解析到libpython3.14.so、出现_PyThreadState_GetCurrent@plt、TLSDESC、DetectsThreadStateOffset失败或tstate_offset = -1,判定为环境形态不满足 CinderX AArch64 TLS offset 探测,不要继续用该环境跑 RuntimeTests。 - CinderX:commit、branch、
cinderx.__file__、cinderx.is_initialized()、cinderx.get_import_error()、_cinderx。 - pyperformance:路径、
pyperformance 1.13.0、benchmark 源码和 worker 能否继承环境。 - toolchain:GCC、libstdc++、openEuler / 宿主发行版、Docker 可用性。
- Docker 双线:
cinderx-test与cpython-baseline是否存在且 bind mount 指向正确源码。 - JIT flags:
PYTHONJITAUTO、PYTHONJITHUGEPAGES、HIR/JIT dump 变量是否污染正式跑分。
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.
- 4d ago First seen · 66 lines · 58 tokens per session scan A d6a70881b25d
cinderx-env-validate is a skill published in the GitHub repository sisibeloved/cpython-optimize-skill (2 stars, last pushed 6d ago), licensed MIT. It adds 58 tokens to every session and 1,440 once invoked, about $0.0003 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
jupyter-notebook
Use when the user asks to create, scaffold, or edit Jupyter notebooks (.ipynb) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script newnotebook.py to generate a clean starting notebook.
arxiv-search
Searches arXiv for preprints and academic papers, retrieves abstracts, and filters by topic. Use when the user asks to find research papers, search arXiv, look up preprints, find academic articles in physics, math, CS, biology, statistics, or related fields.
quantum-qiskit
Reference qiskit 2.x patterns for variational quantum machine learning. Covers data-encoding feature maps, variational quantum classifier (VQC) training, variational quantum eigensolver (VQE) for chemistry, matrix-product-state circuits, and noise model integration. Use when writing Python code that imports qiskit…
biology-biopython
Bioinformatics with Biopython for sequence manipulation, file parsing, BLAST, and phylogenetics. Use when working with DNA/RNA/protein sequences or biological databases.
chemistry-rdkit
Computational chemistry with RDKit for molecular analysis, descriptors, fingerprints, and substructure search. Use when working with SMILES, drug discovery, or cheminformatics tasks.
rocm-kernels
Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…