Install
openclaw skills install daily-introspectionAutonomous daily self-introspection and self-improvement for OpenClaw agents. Automatically reviews daily conversation logs, identifies mistakes and improvement opportunities, and upgrades core rules automatically. Trigger for daily self-improvement tasks, weekly rule refinement, and autonomous agent evolution.
openclaw skills install daily-introspectionEnables autonomous self-improvement for OpenClaw agents: automatically reviews daily conversation logs, identifies mistakes, extracts actionable rules, promotes mature lessons to permanent system rules, and continuously evolves the agent's behavior without manual intervention.
| Type | Location | Description |
|---|---|---|
| Private runtime data + all archived records | workspace/.daily-introspection/ | Private hidden directory (auto-created): |
introspection-YYYY-MM-DD.mdevolution-YYWW.md |scripts/daily-introspect.py to collect all sources:
memory/YYYY-MM-DD.md.learnings/*.mdSESSION-STATE.md, HEARTBEAT.md, working-buffer.mdworkspace/.daily-introspection/introspection-YYYY-MM-DD.md (private data directory)workspace/.daily-introspection/)workspace/.daily-introspection/ (private data directory)Mandatory Order: Do promotions → Verify promotions → Generate report → Send report
Never: Generate report → Do promotions (this causes missed writes when interrupted)
scripts/daily-introspect.pyMain entry point for daily self-introspection.
Usage:
python3 scripts/daily-introspect.py [--date YYYY-MM-DD]
If no date specified, uses today.
scripts/weekly-promote.pyWeekly promotion of lessons to permanent system files.
Usage:
python3 scripts/weekly-promote.py [--week WWYY]
Add these two cron entries via OpenClaw CLI:
# Daily introspection at 22:00
openclaw cron add --name "Daily Self-Introspection" --cron "0 22 * * *" --exact --tz "Asia/Shanghai" --session main --system-event "daily-introspection: Daily self-introspection is triggered. Follow the daily-introspection skill process:
1. Run the script $OPENCLAW_WORKSPACE/skills/daily-introspection/scripts/daily-introspect.py to collect all sources
2. Read the collected sources from the script output
3. Perform LLM introspection analysis following these rules:
- For errors in .learnings/ERRORS.md: if only recorded with corrective action, mark as '✅ Recorded, Rule Added'; only mark as '✅ Corrected' when verified no recurrence for >1 week
- Do not automatically assume recorded = corrected; reflect actual status accurately
- Identify any new errors from today's activities, add them to .learnings/ERRORS.md with corrective rules
- Write the final introspection result to ~/.openclaw/workspace/.daily-introspection/introspection-YYYY-MM-DD.md
4. Report completion status in this session when done"
# Weekly promotion at 20:00 every Sunday
openclaw cron add --name "Weekly Introspection Promotion" --cron "0 20 * * 0" --exact --tz "Asia/Shanghai" --session main --system-event "daily-introspection: Weekly promotion is triggered. Follow the weekly-promotion process:
1. Execute scripts/weekly-promote.py to collect all daily introspections from this week
2. Identify repeated patterns that have not recurred for >1 week
3. **MANDATORY EXECUTION ORDER**:
- FIRST: Perform all rule promotions one by one → write each mature rule to its target file (AGENTS.md/MEMORY.md/TOOLS.md)
- AFTER each write: Read the target file back to verify the rule is actually written successfully
- ONLY after ALL promotions are done and verified: Write the weekly evolution report to ~/.openclaw/workspace/.daily-introspection/evolution-YYWW.md
- Never reverse this order - do not write the report before promotions are complete
4. Report completion status in this session when done
Rules:
- Only promote rules that have been verified and no recurrence for 1+ week
- Keep new recorded errors/learnings in .learnings/ for further verification
- Do not promote immature rules prematurely
main session for interactive analysis and writingAsia/Shanghai, UTC, America/New_York)