一键导入
phira-env-contract
Procedural checklist to infer and state the repo's effective runtime environment and dependency policy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Procedural checklist to infer and state the repo's effective runtime environment and dependency policy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deterministic Graphviz/DOT derivation + validation for archive records.
Canonical per-record archive format (YAML front matter + Markdown body).
Pointer semantics for "since last record" and detected-change bookkeeping.
Checklist for proving baseline behavior is unchanged (or changes are intentional) via controlled A/B runs.
Fast, compute-aware verification checklist for implementation changes (imports, configs, tiny runs).
Workflow for conference/venue paper search and short reading lists.
| name | phira-env-contract |
| description | Procedural checklist to infer and state the repo's effective runtime environment and dependency policy. |
Use this skill whenever you are about to implement code that could be sensitive to Python/library versions, GPU/CPU availability, or dependency policy.
Goal: produce an explicit "environment contract" that constrains implementation choices and makes later failures reproducible.
Provide this block near the top of your implementation report:
Environment contract
- Python: <version or "unknown">
- Platform: <os/arch or "unknown">
- Key deps: <package>=<version> (only those that matter)
- Dependency policy: <"no new deps" | "deps allowed" | "unknown">
- Hardware: <"cpu" | "gpu" | "unknown"> (only if relevant)
- Provenance: <how you inferred this>
pyproject.toml, requirements*.txt, poetry.lock, uv.lock, Pipfile.lock, environment.yml, conda*.yml, Dockerfile, docker-compose.yml, Makefile, noxfile.py, tox.ini, .python-version, .tool-versions, setup.cfg, setup.py..github/workflows/**, ci/**.README*, docs/**..python-version / .tool-versions exists: trust it.unknown and constrain implementation to broadly compatible code.torch, jax, transformers, numpy, pydantic, hydra, lightning, accelerate, datasets).deps allowed.no new deps.unknown and stop to ask phira only if it changes the implementation approach..github/workflows/ci.yml", "from pyproject.toml", "ran python --version in this env").phira one targeted question that requests only the missing constraint(s).