一键导入
env-check
Dump CLAUDE_PLUGIN env vars across plugin-level hook, skill frontmatter hook, and skill body for Cowork env propagation re-verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dump CLAUDE_PLUGIN env vars across plugin-level hook, skill frontmatter hook, and skill body for Cowork env propagation re-verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Mac Cowork で、plugin-level SessionStart hook(host 側)から $CLAUDE_PLUGIN_DATA に書いた値が「別の chat session を跨いで」残るかを検証する probe。書き込み&読み戻しは hook(persist.sh)側で行い、その結果は SessionStart の stdout として context に出る。この skill body は対比用に「VM Bash 側から DATA が見えるか/hook が書いたファイルを読めるか」を確認する。
Surfaces UPE_PROBE_* marker lines to test whether the plugin-level UserPromptExpansion hook fires on Cowork. Invoking this skill via slash is itself the trigger; compares against UserPromptSubmit and SessionStart controls.
Triggers the plugin-level PreToolUse hooks by running a sentinel bash command, to test (via session export) whether Cowork runs PreToolUse hook commands through cmd.exe or a POSIX shell, and whether the inline block pattern actually blocks the bash tool.
Surfaces the EXEC_* marker lines emitted by the plugin-level SessionStart hooks, which run hook commands in EXEC FORM (args present). Used to test whether exec form resolves ${CLAUDE_PLUGIN_ROOT} to a real path and exports it as an env var on Cowork, where shell form (§2.1/§2.2) failed both.
Shows what skill-body CLAUDE_PLUGIN_ROOT and friends substitute to on Mac Cowork, whether the VM Bash tool can use that path, and whether the Read tool can read a bundled file at that host path.
Proves whether a skill frontmatter PreToolUse Bash hook fires on Cowork by emitting only a block decision (no echo). A marked bash should be blocked even though no frontmatter stdout surfaces.
| name | env-check |
| description | Dump CLAUDE_PLUGIN env vars across plugin-level hook, skill frontmatter hook, and skill body for Cowork env propagation re-verification. |
| user-invocable | true |
| hooks | {"SessionStart":[{"matcher":"startup|resume|clear|compact","hooks":[{"type":"command","command":"bash -c 'echo \"[FRONTMATTER-SessionStart] ROOT=[$CLAUDE_PLUGIN_ROOT] DATA=[$CLAUDE_PLUGIN_DATA] PROJECT=[$CLAUDE_PROJECT_DIR] OPT_HELLO=[$CLAUDE_PLUGIN_OPTION_HELLO_MESSAGE] HOST=[$(hostname)]\"'"}]}],"PreToolUse":[{"matcher":"Bash|mcp__workspace__bash","hooks":[{"type":"command","command":"bash -c 'echo \"[FRONTMATTER-PreToolUse] ROOT=[$CLAUDE_PLUGIN_ROOT] DATA=[$CLAUDE_PLUGIN_DATA] PROJECT=[$CLAUDE_PROJECT_DIR] HOST=[$(hostname)]\"'"}]}]} |
Cowork の env 伝播を再検証する probe です。frontmatter hook を SessionStart と PreToolUse の両方で仕掛けてあります。
echo "[BODY] ROOT=[${CLAUDE_PLUGIN_ROOT:-(unset)}] DATA=[${CLAUDE_PLUGIN_DATA:-(unset)}] PROJECT=[${CLAUDE_PROJECT_DIR:-(unset)}] ENTRY=[${CLAUDE_CODE_ENTRYPOINT:-(unset)}] HOST=[$(hostname)]"
画面に出た以下の行をすべて貼ってください。
[PLUGIN-HOOK SessionStart] ...(plugin-level hook、session 開始 / resume 時)[PLUGIN-HOOK PreToolUse] ...(plugin-level hook、bash 直前)[FRONTMATTER-SessionStart] ...(この skill の frontmatter hook、SessionStart 経路)← 今回の主役[FRONTMATTER-PreToolUse] ...(この skill の frontmatter hook、PreToolUse 経路)[BODY] ...(skill body の bash)[FRONTMATTER-SessionStart] 行が出れば frontmatter hook の env を直接観測できます。ROOT 等が空かどうかで判定します。