npx claudepluginhub kazukinagata/analyzing-claude-pluginRe-verification probes for Claude Code plugin machinery (envs, substitution, hooks, userConfig, slash vs natural, blocks, Cowork-specific behavior). Source: sandbox/research.md targeting v2.1.118-119; this plugin re-tests claims against the current Claude Code version.
Companion plugin used to trigger validator errors. Provides multiple skills/hooks that intentionally violate substitution rules and naming conventions, used by probes 02 (substitution-allowlist) and 20 (cowork-validation).
Standalone plugin that registers UserPromptExpansion. CLI should accept it; Cowork validation should reject the whole plugin (research section 2.3).
Re-probe of userConfig against the post-2.1.207 spec: shell-form hooks now REJECT ${user_config.*} while exec form substitutes it, values reach hooks as CLAUDE_PLUGIN_OPTION_<KEY>, and non-sensitive values substitute in skill/agent content. Declares every documented option field (type string/number/boolean, required, sensitive, default, multiple, min/max) so the input UI itself can be inspected on Claude Desktop Code vs Cowork.
Isolated violator: a SHELL-FORM hook command that references ${user_config.*}. Post-2.1.207 the docs say such a component fails with an error instead of running. Kept as a separate plugin so the failure cannot take down cowork-userconfig2-probe.
Does a plugin-level SubagentStart hook fire on Cowork, and does its JSON additionalContext reach the subagent? Compares plain stdout, matcher-less JSON and matcher-scoped JSON in one launch; a PostToolUse replay of a host exec log separates never-fired from fired-but-dropped.
7-day visitors to each marketplace page
Claude Code plugin 機構の挙動を 22 個の probe skill で実機検証し、公式ドキュメントには書かれていない仕様や、ドキュメントと挙動が矛盾する箇所を洗い出したレポジトリ。
Claude Desktop 2.16120.0.0 のローカル Cowork に ZIP で probe をアップロードして再検証した結果、以前の環境変数・スクリプト起動・ブロックに関する観測から変化を確認しました。
| 検証 | 今回の結果 |
|---|---|
| 最小 SessionStart | 固有マーカーがコンテキストに届いた |
| 環境変数 | shell形式のhookではROOT/DATA/PROJECTが設定済み。sandbox Bashでは未設定 |
| 引用符・変数展開 | 引用符の処理とHOME/PATH展開が成功。Git Bash/MSYS系の実行環境を示す出力 |
| bundled script | shell形式で直接起動・bash経由とも成功 |
| command+args形式 | Bash対照は成功。独立したprintenvとenvによる再試験でBash内のROOT/DATA/PROJECT未設定を確認。ログで直接.shの形式エラー・bash経由のパス破損・echoの実行ファイル未検出を確認。WSL側を示す出力 |
| plugin PreToolUse | decision:block・permissionDecision:deny・exit 2の3方式ともブロック。対照だけ実行 |
詳細は 最小SessionStart追試、追試1〜4の記録、実行ログによる確認と原因の訂正。画面確認後、各タスクの監査ログでstdout/stderr/終了コードとブロック結果を確認しました。5つのprobeを同時に有効化したため、単独pluginでの再現ではありません。skill frontmatter・環境ファイル・永続化・resume等の追試5〜7は未実施です。
追加の 環境変数再試験 では新規pluginでコマンド置換を避けて直接読み取り、ログから「空文字」ではなく対象Bash環境での「未設定」を確認しました。
以下と docs/team-report.md の旧Cowork記述は当時の検証環境における履歴です。特に「env strip」「PreToolUse blockの無効化」「hookはWSLで実行」を現在のWindows Cowork全般の仕様として扱わないでください。
検証対象:
⚠ 検証環境は「Windows ホスト + WSL2 Ubuntu」1 台に特化。CLI は WSL2 上、Cowork は同ホストの Claude Desktop アプリ(GUI)で実施。第 2 章で出てくる
/usr/lib/wsl/lib・/mnt/c・HOME=/home/<user>・hook が WSL2 で動く事実はこのマシン構成固有で、Cowork が WSL に依存する意味ではない(Windows 上で Claude が hook の POSIX シェルを WSL2 に委譲した結果と推定)。WSL 無し Windows / macOS は未検証。一般化できるのは「hook は VM 外のホスト側で動く / env strip / hook FS ≠ VM FS / hook はホスト権限を持つ」まで。詳細はdocs/team-report.md冒頭「検証環境の前提」。
docs/team-report.md に 約 2,400 行の落とし穴まとめがあります。主なトピック:
CLAUDE_PLUGIN_ROOT / CLAUDE_PLUGIN_DATA / CLAUDE_PROJECT_DIR 等が plugin-level hook / skill frontmatter hook / Bash tool subprocess の 3 階層で非対称に渡される${VAR} 事前置換の tier 別 allowlist:skill body は最も広い、skill frontmatter は ${CLAUDE_PLUGIN_ROOT} のみsensitive: true userConfig の挙動:plugin-level hook には平文で env 渡し、skill body は Claude Code 本体が block 文字列に置換して leak 防止PreToolUse:Skill は自然言語のみ、UserPromptExpansion は slash のみclaude_code.skill_activated event による 3 経路 (user-slash / claude-proactive / nested-skill) の追跡方法verifier/ # 22 probe skill を持つ検証用 plugin 本体
verifier-violator/ # validator block を意図的にトリガーする違反 plugin
docs/
team-report.md # 全 finding をまとめた本文(一番読むべき)
check-matrix.md # probe 別 verdict 表
cowork-runbook.md # Cowork 実機検証手順
methodology.md # 検証手法
scripts/ # log 解析 / assert / Cowork zip 生成
findings/ # 実行結果(per-version observations.md / report.md のみ git 管理)
MASTER-RUNBOOK.md # 22 probe を順に回すための手動手順
LICENSE
claude --print 等の自動化は採用しない。人間が claude 対話セッションを起動し、/verifier:NN-... を順に叩くscripts/assert.sh)のみ~/.claude/ を汚さないよう CLAUDE_CONFIG_DIR=$(pwd)/findings/claude-home/ で project-local に閉じ込めるfindings/v<version>/report.md に verdict 6+1 種(PASS / FAIL / DOC-ALIGNED / PARTIAL / UNKNOWN / CANARY-FAILED / MANUAL-OK)で残すcd /path/to/analyzing-claude-plugin
. scripts/_env.sh
./scripts/capture-cli-help.sh
# findings/cli-help/*.log と STEP0-SUMMARY.md を生成
. scripts/_env.sh
bash scripts/install-marketplace.sh
別 terminal で:
. scripts/_env.sh
claude
claude prompt 内で:
/verifier:00-canary
完了後に exit して:
./scripts/assert.sh 00
# PASS が返れば観測基盤 OK
MASTER-RUNBOOK.md を順に追って 22 probe を回す。各 probe で assert.sh NN を叩いて verdict を確認。
最後に ./scripts/assert-all.sh で findings/v<version>/report.md を生成。
./scripts/package-cowork.sh
で zip を作成、docs/cowork-runbook.md の手順で Claude Desktop にアップロード。
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations
Plugins with agents, skills, and commands for Claude Code and six other coding tools. Local plugins are maintained as one Markdown source and adapted to each tool.