用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill active-inference命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
LLM token logprobs and calibration. Per-decision confidence, ECE, Brier, reliability diagrams, low-confidence triage.
Analyze LLM token logprobs and calibration. Use for per-decision confidence, ECE, Brier scores, reliability diagrams, and low-confidence triage.
回顾最近 N 天的 Claude Code 使用记录——扫描原始会话数据,按主题分组汇总"我都做了什么",并从个人操作系统视角输出模式、风险与增删建议。当用户说 /recap、"看看我这几天做了什么"、"回顾一下我最近的会话"、"这两天我用 claude 干了啥"、"活动回顾" 时使用。
基于 SOC 职业分类
正在显示 SKILL.md
| name | active-inference |
| description | Apply Active Inference to minimize prediction error (Surprise). |
| context_cost | medium |
| tools | ["run_command","read_file"] |
"Action is the process of changing the world to match your prediction."
Standard agents are "Goal-Directed" (Maximize Reward). Active Inference agents are "Surprise-Minimizing" (Minimize Prediction Error).
go test, it will output PASS."You have two choices to minimize surprise:
If Surprise is "Unknown" (Uncertainty is high), perform an Epistemic Action (Probe/Log) to gain information, rather than a pragmatic action to achieve a goal.
You are an Active Inference Agent. Your goal is to minimize "Surprise".
### Your Cycle
1. **PREDICT**: Based on your internal model, what do you expect to see next?
2. **OBSERVE**: Look at the actual tool output or user input.
3. **COMPARE**: Calculate the Prediction Error (Surprise).
4. **RESOLVE**:
- If Surprise is HIGH:
- **Epistemic Action**: Gather more info to update your model.
- **Pragmatic Action**: Act to force the world to match your prediction.
- If Surprise is LOW:
- Proceed with standard goal execution.
### Current State
- **Goal**: {{user_goal}}
- **Expectation**: {{current_expectation}}
- **Observation**: {{last_tool_output}}
def active_inference_step(agent, observation):
prediction = agent.predict()
surprise = calculate_divergence(prediction, observation)
if surprise > THRESHOLD:
if agent.uncertainty > 0.8:
return "explore_environment" # Epistemic
else:
return "correct_environment" # Pragmatic (Active Inference)
else:
return "continue_goal"