environment-bootstrap

environment-bootstrap is a skill for Codex from ooooooooooooooooooop/agent-tools. It costs 75 tokens per session (558 once invoked), scanned A, original, MIT.

A read-only and approval-based process for restoring registered Codex skills from a source repository to another device or user-level skills folder.

In plain words
What is it for?
It helps audit differences, apply selected skill profiles or individual skills, verify the restored files, and report remaining differences.
Why use it?
It makes environment recovery safer by checking files and SHA-256 hashes, preserving extra destination files, and avoiding unrequested installs or deletions.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/validate_repo.py --strict.

Good fit It helps audit differences, apply selected skill profiles or individual skills, verify the restored files, and report remaining differences.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ooooooooooooooooooop/agent-tools
agentmods
npx agentmods add skills/ooooooooooooooooooop/agent-tools/environment-bootstrap

Made for: Codex.

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 environment-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/skills/ooooooooooooooooooop/agent-tools/environment-bootstrap/github.svg)](https://agentmods.dev/skills/ooooooooooooooooooop/agent-tools/environment-bootstrap)
Your own site
<a href="https://agentmods.dev/skills/ooooooooooooooooooop/agent-tools/environment-bootstrap"><img src="https://agentmods.dev/badge/skills/ooooooooooooooooooop/agent-tools/environment-bootstrap/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for environment-bootstrap

Your own site · 80×15
<a href="https://agentmods.dev/skills/ooooooooooooooooooop/agent-tools/environment-bootstrap"><img src="https://agentmods.dev/badge/skills/ooooooooooooooooooop/agent-tools/environment-bootstrap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 558 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00075 $0.00558
Opus 5.5 $0.00030 $0.00223
Sonnet 5.5 $0.00015 $0.00112
Haiku 4.5 $0.00007 $0.00056

Measured 1mo ago against content hash a6958912d710, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

environment-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 1mo 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.

skills/environment-bootstrap/SKILL.md · 54 lines

What it actually says

环境恢复

适用范围

只负责把仓库中的已登记 Skill 恢复到明确的用户级或设备级目的地。源仓库是权威源;仓库审计和包质量检查分别由 skill-repository-maintainer 与 skill-quality-gate 负责。

工作流程

  1. 确认源仓库存在 skills.json 和已登记包。

  2. 运行源端严格校验:

    python3 scripts/validate_repo.py --strict
    
  3. 明确目的地。Windows 常见路径是 C:\Users\<user>\.codex\skills,不得猜测其他用户的目录。

  4. 先做只读差异检查:

    python3 scripts/sync_skills.py --destination "<destination>" --profile core --check
    
  5. 用户明确要求恢复时,选择 --profile core、--profile full 或窄范围 --skill,运行 --apply,再对同一个目的地运行 --check。

安全边界

  • 永不通过恢复删除目的地额外文件;旧的未登记 Skill 应单独审查。
  • 不隐式安装插件、MCP、包、hooks 或全局配置。
  • 不用旧目的地文件、stdout 或 apply exit code 单独报告成功。
  • 源端校验失败时停止恢复并保留原始错误。
  • 回滚应从已知稳定提交或备份重新复制,不使用递归删除。

输出契约

报告源端、目的地、模式(check 或 apply)、profile/包数量、missing/different/extra、SHA-256 结果和剩余风险。只有 post-apply 检查干净时才报告 PASS;有明确的非阻塞目的地差异时报告 PARTIAL。

验证

成功恢复的最低证据:

strict source validation: PASS
apply: completed
post-apply hash check: PASS
destination-only files: preserved and reported

跨设备清单见 restore-profile.md。

Files

What ships with it

3 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. 1mo ago First seen · 54 lines · 75 tokens per session scan A a6958912d710

Subscribe to this mod's changes

environment-bootstrap is a skill published in the GitHub repository ooooooooooooooooooop/agent-tools (3 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 558 once invoked, about $0.0003 per session on Opus 5.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