skills/reflect/SKILL.md
Surprise-triggered reflection. When a PostToolUse hook reports high prediction error (surprise >= 0.6), invoke /reflect to update beliefs via the belief-reviser and decide whether to continue, replan, reclarify, or ask the user.
npx skillsauth add jason-hchsieh/predictive-mind reflectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Implements the surprise-triggered (not time-triggered) reflection pattern: reflection is cheap when it is rare and well-targeted, and wasteful when it fires on a schedule.
Do NOT use /reflect:
action_id, the expected text,
the actual text, and the surprise_score. The hook's
additionalContext has these.task_id,
the surprise report, and any recent narrative context. The subagent
will call list_beliefs, recall_similar_episodes, and
update_belief as needed. Capture its full changelog JSON.recall_similar_episodes calls can
see what this surprise taught us.$ARGUMENTS — optional free-text note about the surprise. If absent,
use the most recent PostToolUse additionalContext.
/predict + run, /probe,
/plan-efe, ask-user, or re-run cartographer).testing
Run a cheap, reversible real probe to ground a belief instead of hallucinating. Use when dreamer confidence is low or when you catch yourself guessing about repository state.
tools
Record an explicit predicted observation before a side-effecting tool call. Use whenever you are about to run a command, edit a file, or invoke any tool whose outcome you have not already observed. Upholds the predict-before-act invariant.
development
Given a goal and a set of candidate next actions, rank them by Expected Free Energy (pragmatic + epistemic value) using past similar episodes, and pick the winner. Delegates scoring to the policy-selector subagent.
testing
Snapshot the current belief state (and optionally git-stash the working tree) under a label, so a risky action can be rolled back if it produces high surprise or breaks acceptance tests.