Install
openclaw skills install autogoalAutomates ongoing progress on user-defined long-term goals with periodic check-ins, adaptive strategies, and progress reporting.
openclaw skills install autogoalTurn user goals into self-improving automated pursuit loops.
User states goal
↓
1. INTAKE: Record goal + determine strategy
2. SCHEDULE: Create cron job for periodic check-ins
3. EXECUTE: Each cron run evaluates, acts, logs, adapts
4. CLOSE: Goal achieved or abandoned → clean up
5. REPORT: Surface progress to user periodically
When a user states a goal, immediately:
a) Run the goal engine to create a record:
python3 scripts/goal_engine.py create "<goal statement>" --channel "<channel-id>"
b) Determine the initial strategy. Consider:
references/goal-lifecycle.md for pattern guidance)c) Write the strategy to the goal:
python3 scripts/goal_engine.py adapt "<goal-id>" --strategy "<strategy description>"
Generate and create a cron job for the periodic check-in loop:
python3 scripts/goal_engine.py cron "<goal-id>"
This prints JSON. Use the output to create an OpenClaw cron job (cron tool → add action).
Default cadence: every 1 hour (3,600,000 ms). Adjust based on goal type — see references/goal-lifecycle.md.
The cron job's payload includes: goal statement, current strategy, and step-by-step instructions for the check-in agent turn.
Each cron-run agent turn should:
python3 scripts/goal_engine.py log-action "<goal-id>" --action "<what you did>" --result "<outcome>"
python3 scripts/goal_engine.py adapt "<goal-id>" --strategy "<new approach>"
python3 scripts/goal_engine.py close "<goal-id>" --status completed
Then disable or remove the cron job.If after 3 check-ins there's no measurable progress:
references/goal-lifecycle.md for adaptation heuristicsCheck-ins report to the channel where the goal was stated. Key reporting patterns:
scripts/goal_engine.py manages the goal registry (goals_registry.json).
| Command | Usage |
|---|---|
| create | create "<statement>" --channel "<id>" |
| plan | plan "<statement>" --depth L0-L4 [--strategy <type>] — create with planning depth |
| list | list [--status active|paused|completed|abandoned] |
| status | status <goal-id> — full JSON dump |
| update | update <goal-id> --key <path> --value <json> |
| log-action | log-action <goal-id> --action "<text>" --result "<text>" |
| adapt | adapt <goal-id> --strategy "<new strategy>" |
| advance | advance <goal-id> --milestone "<desc>" |
| close | close <goal-id> --status completed|abandoned |
| set-metrics | set-metrics <goal-id> --json '{"key": "value"}' |
| set-session-state | set-session-state <goal-id> --objective "..." --blocker "..." --next "..." |
| set-risk-rules | set-risk-rules <goal-id> --json '{"max_position_size": 100}' |
| log-outcome | log-outcome <goal-id> --action "..." --result "..." --lessons "..." |
| learn | learn <goal-id> --lesson "..." |
| report | report [--status active|paused|completed|abandoned] [--stalled] |
| cron | cron <goal-id> — print cron job JSON |
This skill combines the best patterns from three OpenClaw skills:
From Self-Improving Proactive Agent:
From Plan:
From Auto-Trading Strategy:
Each cron check-in automatically includes:
Read references/goal-lifecycle.md for detailed guidance on:
Read references/planning-depth.md for:
When a goal is completed or abandoned:
python3 scripts/goal_engine.py close "<goal-id>" --status completed~/self-improving/ project notes for Kalshi/Alpaca)