00 Canary

Observation 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.

kazukinagata Updated

File contents

00-canary

このスキルは観測基盤の生存確認です。後続のすべての probe の前提となるため、最初に走らせてください。

次の bash を1つずつ実行してください:

step 1: alive-check tag を skill body から出力

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 '[00-canary-body %s] tag=alive-check sid=%s\n' "$(date -Iseconds)" "$sid" | tee -a "$out_dir/probe.log"

step 2: log file の存在と中身を確認

proj="${CLAUDE_PROJECT_DIR:-$PWD}"
ver="${VERIFIER_VERSION_DIR:-v-unknown}"
sid="${CLAUDE_SESSION_ID:-no-sid}"
echo "=== hooks.log ($proj/findings/$ver/$sid/hooks.log) ==="
ls -la "$proj/findings/$ver/$sid/" 2>&1
echo
echo "=== probe.log ==="
cat "$proj/findings/$ver/$sid/probe.log" 2>&1
echo
echo "=== hooks.log (last 60 lines) ==="
tail -n 60 "$proj/findings/$ver/$sid/hooks.log" 2>&1

完了したら exit してください。./scripts/assert.sh 00 で観測基盤の生存判定が走ります。

kazukinagata/analyzing-claude-plugin/tree/main/verifier/skills/00-canary commit dffbee5813

Frequently asked questions

npx skillmds@latest add kazukinagata/00-canary