commands/plan-attest.md
Run the plan attestation helper for the active plan.
Steps:
${PLAN_ID} env var, then .planning/.active_plan, then newest .planning/<dir>/, then legacy ./task_plan.md.task_plan.md..planning/<active-plan>/.attestation (parallel-plan mode) or ./.plan-attestation (legacy mode).Implementation:
sh ${CLAUDE_PLUGIN_ROOT}/scripts/attest-plan.sh& "$env:USERPROFILE\.claude\skills\planning-with-files\scripts\attest-plan.ps1"Flags:
--show — print the currently stored hash and where it lives.--clear — remove the attestation (re-open the plan to free editing).After running this command, every UserPromptSubmit and PreToolUse hook fire compares task_plan.md against the stored hash. If they diverge, the hook emits [PLAN TAMPERED — injection blocked] instead of feeding plan content into the model. Re-run /plan-attest whenever you intentionally edit and re-approve the plan.