environment-bootstrap

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 Claude CodeCodex

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/ooooooooooooooooooop/agent-tools/environment-bootstrap
Any agent
npx skills add ooooooooooooooooooop/agent-tools --skill environment-bootstrap
Clone the repo
git clone --depth 1 https://github.com/ooooooooooooooooooop/agent-tools

Made for: Claude Code, Codex.

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. 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.00075 $0.00558
Opus 5 $0.00037 $0.00279
Sonnet 5 $0.00015 $0.00112
Haiku 4.5 $0.00007 $0.00056

Measured 2d ago against content hash a6958912d710, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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-maintainerskill-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 单独报告成功。
  • 源端校验失败时停止恢复并保留原始错误。
  • 回滚应从已知稳定提交或备份重新复制,不使用递归删除。

输出契约

报告源端、目的地、模式(checkapply)、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. 2d 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 (2 stars, last pushed 4d ago), licensed MIT. It adds 75 tokens to every session and 558 once invoked, about $0.0004 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

agent-workflow-designer

../../../engineering/skills/agent-workflow-designer/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

ai-security

../../../engineering-team/skills/ai-security/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

skills-manager-cli

Drive the Skills Manager CLI (skm) to initialize the hub, adopt unmanaged skills, list/enable/disable skills per AI tool, and doctor/fix symlink sync. Use whenever the user or an agent needs to manage skills from a terminal, SSH session, CI job, or headless machine; when a skill is missing in Claude Code, Codex…

jiweiyeah/Skills-Manager · 151 tokens

docs-check

CONTRIBUTOR TOOL - Validate plugin against latest Claude Code documentation. Catches breaking changes, deprecations, discovers new features. Run before releases or periodically. NOT part of the distributed plugin.

oliver-kriska/claude-elixir-phoenix · 43 tokens

plugin-dev-workflow

Guide plugin development workflow — editing skills, agents, hooks, or eval framework in this repo. Use when modifying files in plugins/elixir-phoenix/, lab/eval/, or lab/autoresearch/. Ensures changes pass eval, lint, and tests before committing.

oliver-kriska/claude-elixir-phoenix · 59 tokens

lab:autoresearch

Self-improving loop for plugin skills. Reads program.md, proposes one mutation per iteration, evaluates against deterministic scorer, keeps improvements via git, reverts failures. Targets weakest skill+dimension. Use with /loop for overnight runs.

oliver-kriska/claude-elixir-phoenix · 52 tokens