cinderx-env-validate

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

An environment checker for CPython and CinderX performance experiments. It determines whether an existing setup can be reused, needs basic setup, or needs a clean rebuild.

In plain words
What is it for?
Use it before CPython/CinderX A/B speed tests, pyperformance runs, Docker work, or JIT experiments to verify Python 3.14.3, CinderX, CPU and worker settings, and the baseline source.
Why use it?
It prevents tests from using the wrong Python version, headers, source tree, editable install, JIT settings, or contaminated baseline environment.

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-validate
Any agent
npx skills add sisibeloved/cpython-optimize-skill --skill cinderx-env-validate
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-validate

README.md
[![agentmods](https://agentmods.dev/badge/skills/sisibeloved/cpython-optimize-skill/cinderx-env-validate.svg)](https://agentmods.dev/skills/sisibeloved/cpython-optimize-skill/cinderx-env-validate)
Your own site
<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>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,440 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.00058 $0.01440
Opus 5 $0.00029 $0.00720
Sonnet 5 $0.00012 $0.00288
Haiku 4.5 $0.00006 $0.00144

Measured 4d ago against content hash d6a70881b25d, 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-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.

plugins/cpython-optimize-skill/skills/cinderx-env-validate/SKILL.md · 66 lines

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 使用。结论只能是 reusableneeds_bootstrapneeds_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 --shortgit show -s --format=%Hgit describe --tags --always --dirty
  • 版本证据:patchlevel.hSOABI、目标解释器和 include 路径。
  • 污染检查:baseline 不能误继承 candidate editable install、CinderX .pthPYTHONPATH、JIT hook 或 CINDERX_*

若远程源码 dirty、ref 不明、版本不符、bind mount 指向不明或混入 candidate 污染,返回 baseline_source_untrusted 并要求用户指定 baseline、创建干净 worktree 或重建 baseline 环境;不能把该源码交给 A/B runner。

本地 CPython 仓安全切换

当用户给出 /opt/Codex/cpythonCPYTHON_ROOT 或其它本地 CPython clone 时,按顺序检查:

  • 仓库身份:git remote -vgit show -s --format=%Hgit describe --tags --always --dirty
  • 污染风险:git status --short;有未提交改动时不能直接 git checkout
  • 本地 3.14.3 来源:本地 tag、branch、ref、现有 worktree、tarball/cache 或已有容器中的源码。
  • 版本证据:Include/patchlevel.h、目标解释器 sys.versionSOABI 和 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.3SOABI、include 路径、patchlevel.h
  • baseline source:按 baseline-source-contract.md 校验口径 baseline、提交 baseline、source path、commit/ref、dirty 状态和唯一差异轴。
  • AArch64 RuntimeTests TLS:检查 Py_ENABLE_SHAREDCONFIG_ARGSLIBDIRLIBRARYLDLIBRARY 和 CMake _Python_LIBRARY_RELEASE;若解析到 libpython3.14.so、出现 _PyThreadState_GetCurrent@pltTLSDESCDetectsThreadStateOffset 失败或 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-testcpython-baseline 是否存在且 bind mount 指向正确源码。
  • JIT flags:PYTHONJITAUTOPYTHONJITHUGEPAGES、HIR/JIT dump 变量是否污染正式跑分。

Read the full file on GitHub · 66 lines

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. 4d ago First seen · 66 lines · 58 tokens per session scan A d6a70881b25d

Subscribe to this mod's changes

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.

Related

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.

microsoft/ai-agents-for-beginners · 57 tokens

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.

langchain-ai/deepagents · 62 tokens

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…

aiming-lab/AutoResearchClaw · 102 tokens

biology-biopython

Bioinformatics with Biopython for sequence manipulation, file parsing, BLAST, and phylogenetics. Use when working with DNA/RNA/protein sequences or biological databases.

aiming-lab/AutoResearchClaw · 40 tokens

chemistry-rdkit

Computational chemistry with RDKit for molecular analysis, descriptors, fingerprints, and substructure search. Use when working with SMILES, drug discovery, or cheminformatics tasks.

aiming-lab/AutoResearchClaw · 41 tokens

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…

huggingface/kernels · 93 tokens