skills/plan-efe/SKILL.md
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.
npx skillsauth add jason-hchsieh/predictive-mind plan-efeInstall 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.
Upholds Invariant 3 of predictive-mind: pragmatic and epistemic value are scored separately. Use this skill when multiple candidate actions are on the table and the "first plausible one" is not obviously the best.
/probe, /reflect, or a new action./probe call that would disambiguate an open
hypothesis).task_id (so the subagent can call retrieve_beliefs).ask-user, stop and ask. If the pick is
probe-first, invoke /probe. Otherwise proceed with
/predict then the chosen action.recall_similar_episodes for each candidate, so prior surprises
actually discount similar-looking plans.$ARGUMENTS — the current goal (free text). The skill will ask you
for the candidate list if you did not include it.
ranked: [ { action, pragmatic, epistemic, total, recommendation, ... } ]
pick: { action, rationale }
notes_on_calibration: <honest caveats>
Use the pick's recommendation field to decide the next skill:
execute → /predict then run the actionprobe-first → /probedream-first → invoke the dreamer on the picked action before actingskip → drop this candidate, re-plantools
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.
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.
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.