/verifier:22-substitution-frontmatterfrom verifier
Single-quote isolation probe to fill team-report §1.2 unverified cells. Tests Claude Code pre-substitution in plugin-level hook + skill frontmatter hook + skill body for SESSION_ID, PROJECT_DIR, SKILL_DIR, and user_config.KEY.
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.
None: SKILL.md is the whole skill.
§1.2 マトリクスの未検証セルを single-quote isolation で観測する probe。
'${CLAUDE_SESSION_ID}' のように single-quote 内に ${VAR} を書くと:
${...}期待結果(v2.1.146 推測):
| tier | SESSION_ID | PROJECT_DIR | SKILL_DIR | user_config.KEY |
|---|---|---|---|---|
| plugin-level | ? | ✅ | ? | ✅ |
| frontmatter | ? | ? | ? | — |
| body | ✅ | ✅ | ✅ | ? |
proj="${CLAUDE_PROJECT_DIR:-$PWD}"
ver="${VERIFIER_VERSION_DIR:-v-unknown}"
out_dir="$proj/findings/$ver/probe-22"
mkdir -p "$out_dir"
# body tier — single-quote isolation
echo '[BODY] USER_CONFIG_HELLO=${user_config.hello_message}' >> "$out_dir/subst.log"
echo '[BODY] USER_CONFIG_API=${user_config.api_secret}' >> "$out_dir/subst.log"
echo '[BODY] SESSION_ID=${CLAUDE_SESSION_ID}' >> "$out_dir/subst.log"
echo '[BODY] PROJECT_DIR=${CLAUDE_PROJECT_DIR}' >> "$out_dir/subst.log"
echo '[BODY] SKILL_DIR=${CLAUDE_SKILL_DIR}' >> "$out_dir/subst.log"
# show all results
echo "=== subst.log (tier=plugin: SessionStart 経路, tier=fm: 自スキル frontmatter 経路, tier=body: 直前 echo) ==="
cat "$out_dir/subst.log"
各行を見て:
9307ae27-...) → 事前置換 ✅/home/...) → 事前置換 ✅${CLAUDE_SESSION_ID} 等 → 事前置換 ❌完了したら exit。
What SKILL.md sets; muted values are Claude Code's defaults
Bash"${CLAUDE_PLUGIN_ROOT}/hooks/subst-probe.sh" fm SESSION_ID '${CLAUDE_SESSION_ID}'"${CLAUDE_PLUGIN_ROOT}/hooks/subst-probe.sh" fm PROJECT_DIR '${CLAUDE_PROJECT_DIR}'"${CLAUDE_PLUGIN_ROOT}/hooks/subst-probe.sh" fm SKILL_DIR '${CLAUDE_SKILL_DIR}'npx claudepluginhub kazukinagata/analyzing-claude-plugin --plugin verifier24 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./01-env-propagationProbe 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./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.Other plugins' skills for the same job