UI はローカライズ済みです。スキルの紹介と説明文書は選択した言語へ AI が自動翻訳し、コード・コマンド・パス・専門用語は原文のままです。原作者の文書が優先されます。
スキルを探す
運用・デプロイ · SKILL.md

env-adoption

env-adoption

Use when checking tool availability (Codex, Antigravity CLI (agy), Copilot, gh, Docker), determining environment tier, reading cached inventory or session state, setting up missing tools, or when any skill needs to know what capabilities are available in the current environment.

Independent GitHub snapshot · Automated classification · Original documentation governs

スキルの説明

GitHub

name: env-adoption description: Use when checking tool availability (Codex, Antigravity CLI (agy), Copilot, gh, Docker), determining environment tier, reading cached inventory or session state, setting up missing tools, or when any skill needs to know what capabilities are available in the current environment.

Environment Adoption — Centralized Capability Registry

Overview

Single source of truth for tool detection, version tracking, and capability routing. Two-tier state model: persistent inventory (what is installed) and volatile session state (runtime connectivity, auth). Replaces scattered inline probing across forge, codex-orchestration, and other skills.

When to Use

  • Session start — probe environment, report tier
  • Before delegating to Codex/agy — check tools.codex.installed / capabilities.agy_analyst
  • When a skill needs to branch on tool availability — use get subcommand
  • After installing a new tool — run probe.sh check --force to update inventory

When NOT to Use

  • Do not re-probe on every skill invocation (read the manifest instead)
  • Do not use for Codex session management (use codex-orchestration)

Operations

OperationCommandPurpose
checkbash ~/.claude/skills/env-adoption/scripts/probe.sh checkProbe tools, write inventory + session state
getbash ~/.claude/skills/env-adoption/scripts/probe.sh get <path>Read a value from inventory or session state
contextbash ~/.claude/skills/env-adoption/scripts/probe.sh contextLive Q3 — main-loop | child-session | non-claude-host[:<id>]. Pure env eval, NEVER cached. See references/context-detection.md
setupbash ~/.claude/skills/env-adoption/scripts/probe.sh setupInteractive guided install for missing tools

check flags

FlagEffect
--inventory-onlySkip session state (connectivity checks)
--forceRe-probe even if inventory is fresh (<24h)
--silentNo stdout, just write state files
--jsonOutput combined inventory + session state as JSON

get paths

# Inventory (persistent)
probe.sh get tools.codex.installed    # true/false
probe.sh get tools.codex.version      # "0.120.0" or null
probe.sh get tier                     # 0, 1, or 2
probe.sh get tier_label               # minimal, standard, full

# Session state (volatile)
probe.sh get capabilities.triple_model     # true/false
probe.sh get capabilities.codex_challenger # true/false
probe.sh get capabilities.agy_analyst      # true/false

# Orchestration capabilities (S055 — workflow-adoption keystone)
probe.sh get capabilities.workflow_tool    # true/false  (Workflow tool surface, Q2)
probe.sh get capabilities.native_teams     # true/false  (experimental, env-gated)
probe.sh get capabilities.agent_spawn      # true/false  (Agent/subagent surface)
probe.sh get harness.workflow_tool         # true/false  (Q1 host capability, inventory)

Orchestration decision rule (restate verbatim in every consumer): can_orchestrate = capabilities.<surface> AND context == main-loop. capabilities.* alone NEVER authorizes orchestration — session files are shared with subagents (children inherit CLAUDE_CODE_SESSION_ID), so the probe.sh context conjunct is mandatory. probe.sh get capabilities.<name> is the ONLY capability read API — no raw jq on inventory.json, no inline claude --version. See references/context-detection.md.

Tier Model

TierLabelRequirementsWhat works
0minimalgit + python3All skills as reference, wiki agent
1standard+ gh + codex + agyforge/bob/alf with multi-model reviews
2full+ copilot + dockerEverything incl. containers

State Files

FileLifecycleContent
~/.claude/state/inventory.jsonPersistent, re-probed if >24h oldTools, versions, tier
$XDG_RUNTIME_DIR/env-adoption/session-<id>.jsonVolatile, per-sessionAuth, MCP, capabilities

Integration

Other skills consume the manifest instead of inline probing:

# Shell: via get subcommand
CODEX_OK=$(bash ~/.claude/skills/env-adoption/scripts/probe.sh get tools.codex.installed)

# Shell: via direct jq (faster, for hot paths)
CODEX_OK=$(jq -r '.tools.codex.installed' ~/.claude/state/inventory.json 2>/dev/null || echo false)

# Skill YAML/markdown: read ~/.claude/state/inventory.json
# Session routing: read $XDG_RUNTIME_DIR/env-adoption/session-*.json

See references/integration.md for full patterns.

Anti-Patterns

Don'tWhyDo Instead
Make state bash-sourceableShell-specific, security riskJSON canonical, get helper for shell
Single file for inventory + sessionDifferent lifecycles, session interferenceTwo-tier: persistent + volatile
Probe on every skill invocationPerformance death by 1000 probesProbe once, read many
Hard-fail when manifest missingBreaks fresh installsAuto-probe on first read, degrade gracefully
Bypass get with hardcoded pathsBreaks if state location changesUse get or read documented paths
保存したスキル