Execute intentions through the environment.
46
47%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./agentsociety/packages/agentsociety2/agentsociety2/agent/skills/plan/SKILL.mdExecute intentions by generating environment actions via codegen.
Activate this skill when you have an intention to execute.
Human decisions arise from two systems:
| Condition | System |
|---|---|
| Routine time + routine action | System 1 |
| Familiar location + known action | System 1 |
| New intention + complex goal | System 2 |
| Multiple options + uncertainty | System 2 |
| Urgent need + known solution | System 1 |
| Conflict detected | System 2 |
| File | Use |
|---|---|
state/intention.json | Current goal |
state/observation.txt | Environment context |
state/plan_state.json | Ongoing multi-step plan |
{
"goal": "Buy groceries at the supermarket",
"steps": ["walk to supermarket", "enter store", "pick items", "pay"],
"current_step": 1,
"started_tick": 42,
"status": "in_progress",
"decision_mode": "system2",
"estimated_ticks": 4
}Most routine intentions execute in one codegen call:
{
"tool_name": "codegen",
"arguments": {
"instruction": "Move to the café on Main Street.",
"ctx": {}
}
}No plan_state.json needed for single-step actions.
For complex goals, maintain state/plan_state.json:
plan_state.json existscodegenplan_state.json with progress| Status | Meaning |
|---|---|
pending | Not started |
in_progress | Currently executing |
completed | Successfully finished |
failed | Cannot complete |
| Steps | Use Case |
|---|---|
| 1-2 | Simple location change, simple interaction |
| 3-4 | Multi-location trip, task with preparation |
| 5-6 | Complex project, event with multiple phases |
Plans adapt to changing physiological states.
| Trigger | Action |
|---|---|
satiety < 0.2 | Pause plan, find food |
energy < 0.2 | Pause plan, rest |
safety < 0.2 | Pause plan, seek safety |
| Need satisfied mid-plan | Resume original plan |
{
"goal": "Work on project",
"status": "interrupted",
"interrupted_at_step": 2,
"interrupt_reason": "satiety_critical",
"resumable": true,
"resume_conditions": ["satiety > 0.5"]
}resumable flagresume_conditions metinterrupted_at_stepin_progressInterrupt ongoing plan when:
| Type | Condition | Recovery |
|---|---|---|
forced | Critical need | Resume when satisfied |
voluntary | Better option | May abandon plan |
When a plan becomes routine, convert to habit.
| Repetitions | Status |
|---|---|
| 1-2 | Novel (System 2) |
| 3-5 | Learning (mix) |
| 6+ | Habit (System 1) |
For habitual actions, add to intention.json:
{
"intention": "Morning commute to work",
"is_habit": true,
"habit_strength": 0.8,
"automatic": true
}state/intention.json and state/plan_state.jsoncodegen with action instructionplan_state.jsoncodegen returns status: "success" or status: "in_progress" after an environment action, call donecodegen returns status: "fail", either try one clearly different correction or call done with the failure summarydonefailed after 3 consecutive failuresAfter each codegen action:
done4fd5cfc
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.