/verifier:01-env-propagationfrom verifier
Probe env propagation across 3 process tiers (§1.1). Compares which CLAUDE_* env vars are set in plugin-level hook vs skill frontmatter hook vs Bash tool subprocess.
Ships in verifier. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
§1.1 の env 伝播 3 階層を観測します。
次の bash を順に実行:
proj="${CLAUDE_PROJECT_DIR:-$PWD}"
ver="${VERIFIER_VERSION_DIR:-v-unknown}"
sid="${CLAUDE_SESSION_ID:-no-sid}"
out_dir="$proj/findings/$ver/$sid"
mkdir -p "$out_dir"
{
printf '[01-BODY %s] tag=alive-check\n' "$(date -Iseconds)"
printf '[01-BODY] CLAUDE_PLUGIN_ROOT=[%s]\n' "${CLAUDE_PLUGIN_ROOT-(unset)}"
printf '[01-BODY] CLAUDE_PLUGIN_DATA=[%s]\n' "${CLAUDE_PLUGIN_DATA-(unset)}"
printf '[01-BODY] CLAUDE_PROJECT_DIR=[%s]\n' "${CLAUDE_PROJECT_DIR-(unset)}"
printf '[01-BODY] CLAUDE_CODE_REMOTE=[%s]\n' "${CLAUDE_CODE_REMOTE-(unset)}"
printf '[01-BODY] CLAUDE_PLUGIN_OPTION_HELLO_MESSAGE=[%s]\n' "${CLAUDE_PLUGIN_OPTION_HELLO_MESSAGE-(unset)}"
printf '[01-BODY] CLAUDE_PLUGIN_OPTION_API_SECRET=[%s]\n' "${CLAUDE_PLUGIN_OPTION_API_SECRET-(unset)}"
printf '[01-BODY] CLAUDE_SKILL_DIR=[%s]\n' "${CLAUDE_SKILL_DIR-(unset)}"
printf '[01-BODY] CLAUDE_SESSION_ID=[%s]\n' "${CLAUDE_SESSION_ID-(unset)}"
printf '[01-BODY] CLAUDE_CODE_ENTRYPOINT=[%s]\n' "${CLAUDE_CODE_ENTRYPOINT-(unset)}"
printf '[01-BODY] CLAUDE_CODE_EXECPATH=[%s]\n' "${CLAUDE_CODE_EXECPATH-(unset)}"
printf '[01-BODY] ----- all CLAUDE_* -----\n'
env | grep '^CLAUDE_' | sort
} | tee -a "$out_dir/probe.log"
proj="${CLAUDE_PROJECT_DIR:-$PWD}"
ver="${VERIFIER_VERSION_DIR:-v-unknown}"
sid="${CLAUDE_SESSION_ID:-no-sid}"
echo "=== hooks.log tail (plugin-level env snapshot) ==="
tail -n 80 "$proj/findings/$ver/$sid/hooks.log"
echo
echo "=== probe.log tail (frontmatter + body env) ==="
tail -n 40 "$proj/findings/$ver/$sid/probe.log"
完了したら exit。./scripts/assert.sh 01 で 3 層の subclaim を判定します。
What SKILL.md sets; muted values are Claude Code's defaults
Bashsid="${CLAUDE_SESSION_ID:-no-sid}"; ver="${VERIFIER_VERSION_DIR:-v-unknown}"; out_dir="$CLAUDE_PROJECT_DIR/findings/$ver/$sid"; mkdir -p "$out_dir"; printf "[01-FM %s] tag=fm-registered ROOT=[%s] DATA=[%s] PROJECT_DIR=[%s] OPT_HELLO=[%s] OPT_SECRET=[%s] SESSION_ID=[%s]\n" "$(date -Iseconds)" "${CLAUDE_PLUGIN_ROOT:-(empty)}" "${CLAUDE_PLUGIN_DATA:-(empty)}" "${CLAUDE_PROJECT_DIR:-(empty)}" "${CLAUDE_PLUGIN_OPTION_HELLO_MESSAGE:-(empty)}" "${CLAUDE_PLUGIN_OPTION_API_SECRET:-(empty)}" "${CLAUDE_SESSION_ID:-(empty)}" >> "$out_dir/probe.log"24 skills in this plugin
/00-canaryObservation infrastructure canary. Verifies that plugin-level hooks fire (via session-start log), that skill frontmatter hooks register and fire after first invoke, and that bash tool subprocess can write to the findings directory. Run this BEFORE any other probe — if this FAILs, the verdict of every later probe is CANARY-FAILED./02-substitution-allowlistProbe ${VAR} substitution allowlist in skill body (§1.2). Tests CLAUDE_PLUGIN_ROOT/DATA/SKILL_DIR/SESSION_ID/PROJECT_DIR substitution at invoke time./03-shell-binshProbe that hook commands run under /bin/sh (dash on WSL Ubuntu), not bash (§1.3). Bash-specific constructs should produce Bad substitution / syntax errors.Other plugins' skills for the same job
npx claudepluginhub kazukinagata/analyzing-claude-plugin --plugin verifier