一键导入
learning
Track skill learning, knowledge retention, self-efficacy, and practice-driven proficiency for human-like agents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Track skill learning, knowledge retention, self-efficacy, and practice-driven proficiency for human-like agents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Assess what actions are realistically available under environment, time, distance, access, money, body, and social constraints.
Maintain sleep-wake rhythm, circadian alertness, appetite rhythm, and chronotype-sensitive daily timing.
Produce emotion.json and intention.json from workspace context.
Model conversation intent, speech style, turn-taking, listening, repair, and nonverbal cues. Use before or after social interaction, dialogue, negotiation, apology, request, gossip, or conflict.
Apply cultural values, etiquette, rituals, symbols, taboos, and local meaning to perception and decisions.
Track sickness, pain, chronic condition, recovery, exercise, stress load, and long-term wellbeing.
| name | learning |
| description | Track skill learning, knowledge retention, self-efficacy, and practice-driven proficiency for human-like agents. |
| script | scripts/update_learning.py |
Maintain what the agent is learning: factual knowledge, procedural skills, confidence, and practice history. This skill makes agents improve through repeated practice, lose unused ability slowly, and act differently when they believe they can succeed.
Research basis: references/research_basis.md.
Read recent observations, memory, plan outcomes, emotion, and prior state/learning.json, then update per-topic proficiency, retention, automaticity, self-efficacy, motivation need satisfaction, and review timing in state/learning.json.
Use after studying, training, practicing a job task, receiving feedback, watching someone demonstrate a behavior, teaching others, making mistakes, or repeatedly performing the same action.
state/observation.txt, state/memory.jsonl, state/plan_state.json, state/emotion.json, state/routine.json, and state/learning.json if present.[0, 1].state/learning.json.state/learning_events.jsonl for notable milestones.If deterministic baseline is preferred:
python skills/learning/scripts/update_learning.py --state-dir state --tick 120
Use four coupled variables per topic:
| Field | Meaning |
|---|---|
proficiency | How well the agent can perform the skill now |
retention | How available the knowledge/skill is without re-study |
automaticity | How habit-like or low-effort the behavior has become |
self_efficacy | Belief that the agent can perform the task successfully |
motivation | Autonomy, competence, relatedness, internalization, and amotivation risk |
review | Spaced-review scheduling metadata |
Practice has diminishing returns:
proficiency_next = proficiency + learning_rate * practice_quality * (1 - proficiency)
Unused knowledge decays slowly:
retention_next = retention * exp(-ticks_since_practice / retention_strength)
Self-efficacy is not the same as proficiency. It changes through mastery, observed models, persuasion, and emotional state.
Motivation quality depends on basic psychological need satisfaction:
autonomous_motivation = mean(autonomy, competence, relatedness, internalization)
amotivation_risk = 1 - autonomous_motivation
Spacing rule:
next_review_tick = current_tick + max(1, round(target_retention_interval * spacing_ratio))
Use shorter intervals for soon-needed knowledge and longer intervals for long-term retention. Repeating immediately after a successful review has lower marginal gain than a well-spaced retrieval attempt.
Always write state/learning.json.
{
"_meta": {
"skill": "learning",
"purpose": "Current knowledge, skill proficiency, practice history, and self-efficacy."
},
"_summary": "Cooking is improving through repeated practice; self-efficacy is moderate.",
"topics": {
"cooking": {
"proficiency": 0.48,
"retention": 0.77,
"automaticity": 0.31,
"self_efficacy": 0.56,
"motivation": {
"autonomy": 0.62,
"competence": 0.56,
"relatedness": 0.4,
"internalization": 0.58,
"amotivation_risk": 0.46
},
"review": {
"target_retention_interval": 240,
"spacing_ratio": 0.2,
"next_review_tick": 168,
"review_due": false
},
"practice_count": 7,
"last_practice_tick": 120,
"evidence": ["made dinner successfully"]
}
}
}
self_efficacy into cognition.perceived_control and low self_efficacy into avoidance or help-seeking.