Install
openclaw skills install @akdira/self-smarter-everydayAutonomous daily self-improvement system for AI agents. Runs nightly self-reflection, self-audit, memory compaction, prompt evolution, and skill gap analysis at 2AM. Agent automatically gets smarter every day through structured introspection and continuous learning loops.
openclaw skills install @akdira/self-smarter-everydayAutonomous daily self-improvement system for AI agents. This skill implements a structured nightly routine that runs at 2:00 AM local time, performing deep introspection, memory optimization, prompt refinement, and skill gap analysis to ensure the agent continuously improves its capabilities over time.
Use this skill when:
Do NOT use this skill when:
The self-smarter system operates from a dedicated directory structure:
~/self-smarter/
├── config/
│ ├── settings.json # Main configuration
│ ├── schedules.json # Cron schedules and timing
│ └── thresholds.json # Improvement thresholds and limits
├── logs/
│ ├── nightly/ # Nightly routine logs
│ │ ├── YYYY-MM-DD-reflection.log
│ │ ├── YYYY-MM-DD-audit.log
│ │ ├── YYYY-MM-DD-memory.log
│ │ ├── YYYY-MM-DD-prompts.log
│ │ ├── YYYY-MM-DD-skills.log
│ │ └── YYYY-MM-DD-plan.log
│ ├── improvements/ # Improvement execution logs
│ └── rollbacks/ # Rollback logs
├── memory/
│ ├── raw/ # Raw interaction data
│ ├── compacted/ # Compacted memory summaries
│ ├── promoted/ # High-value promoted memories
│ ├── archived/ # Old memories moved to archive
│ └── stats.json # Memory statistics
├── prompts/
│ ├── current/ # Current active prompts
│ ├── versions/ # Historical prompt versions
│ ├── experiments/ # Experimental prompt variations
│ └── evolution-log.json # Prompt change history
├── skills/
│ ├── inventory.json # Current skill inventory
│ ├── gaps.json # Identified skill gaps
│ ├── recommendations/ # Skill acquisition recommendations
│ └── usage-stats.json # Skill usage statistics
├── plans/
│ ├── daily/ # Daily improvement plans
│ ├── weekly/ # Weekly summary plans
│ └── completed/ # Completed plans archive
├── audits/
│ ├── self/ # Self-audit reports
│ ├── performance/ # Performance audit reports
│ └── compliance/ # Compliance audit reports
├── metrics/
│ ├── daily/ # Daily metrics
│ ├── trends/ # Trend analysis
│ └── kpis.json # Key performance indicators
└── state/
├── current-state.json # Current system state
├── version.json # System version info
└── flags.json # Feature flags and toggles
The nightly routine executes at 2:00 AM local time and consists of 6 sequential phases:
Purpose: Deep introspection of the day's activities and outcomes.
Activities:
Output: logs/nightly/YYYY-MM-DD-reflection.log
Purpose: Comprehensive self-assessment against defined standards.
Activities:
Output: logs/nightly/YYYY-MM-DD-audit.log
Purpose: Optimize memory storage and retrieval efficiency.
Activities:
Output: logs/nightly/YYYY-MM-DD-memory.log
Purpose: Refine and improve system prompts based on performance data.
Activities:
Output: logs/nightly/YYYY-MM-DD-prompts.log
Purpose: Identify areas where new skills or capabilities are needed.
Activities:
Output: logs/nightly/YYYY-MM-DD-skills.log
Purpose: Create actionable plan for the next day's improvements.
Activities:
Output: logs/nightly/YYYY-MM-DD-plan.log and plans/daily/YYYY-MM-DD.json
| Component | Purpose | Location |
|---|---|---|
| Config | System settings | ~/self-smarter/config/ |
| Logs | Routine execution logs | ~/self-smarter/logs/ |
| Memory | Compacted memory store | ~/self-smarter/memory/ |
| Prompts | Prompt versions | ~/self-smarter/prompts/ |
| Skills | Skill inventory | ~/self-smarter/skills/ |
| Plans | Improvement plans | ~/self-smarter/plans/ |
| Audits | Self-audit reports | ~/self-smarter/audits/ |
| Metrics | Performance metrics | ~/self-smarter/metrics/ |
| State | System state | ~/self-smarter/state/ |
clawhub install okf-knowledge-format~/.openclaw/workspace/skills/okf-knowledge-format/Always Log Everything — Every self-modification must be logged with timestamp, rationale, and rollback instructions.
Never Modify Safety Boundaries — Safety rules are immutable. Self-improvement cannot override safety constraints.
Version All Changes — Every prompt, memory, or configuration change must be versioned for rollback capability.
Test Before Apply — All improvements must be tested in isolation before being applied to the live system.
Respect Rate Limits — Self-improvement activities must not exceed defined resource limits (tokens, API calls, compute time).
Preserve User Trust — No self-modification should change behavior in ways that would surprise or disappoint the user.
Maintain Transparency — All self-improvement activities must be visible and auditable by the user.
Rollback on Regression — If an improvement causes performance regression, automatically rollback to the previous version.
Isolate Credentials — Self-improvement system must never access, modify, or log credentials or secrets.
Human Override — User can pause, resume, or override any self-improvement activity at any time.
The system monitors these signals to trigger improvement:
| Signal | Description | Impact |
|---|---|---|
| Error Rate | Frequency of errors or failures | High error rate triggers prompt review |
| User Corrections | Times user corrects agent responses | Triggers behavior adjustment |
| Task Completion Rate | Percentage of tasks completed successfully | Low rate triggers skill gap analysis |
| Response Time | Time taken to generate responses | Slow responses trigger optimization |
| Token Usage | Tokens consumed per interaction | High usage triggers efficiency review |
| User Satisfaction | Explicit or implicit satisfaction signals | Low satisfaction triggers comprehensive review |
| Skill Usage Frequency | How often each skill is used | Unused skills flagged for review |
| Memory Hit Rate | Percentage of memory lookups that succeed | Low hit rate triggers memory optimization |
| Rollback Frequency | How often improvements are rolled back | High frequency triggers strategy review |
| Compliance Violations | Times safety or compliance rules triggered | Any violation triggers immediate audit |
The self-reflection protocol follows a structured introspection framework:
What went well today?
What went poorly?
What could be improved?
What did I learn?
What will I do differently tomorrow?
Score each area on a 1-10 scale:
Overall Score: Average of all area scores.
Target: Maintain overall score above 8.0.
Memory statistics are tracked in ~/self-smarter/memory/stats.json:
{
"date": "2026-08-10",
"total_memories": 15420,
"raw_memories": 8500,
"compacted_memories": 5200,
"promoted_memories": 1500,
"archived_memories": 220,
"memory_growth_rate": 0.023,
"compaction_ratio": 0.62,
"promotion_rate": 0.18,
"archive_rate": 0.04,
"hit_rate": 0.87,
"miss_rate": 0.13,
"average_retrieval_time_ms": 45,
"storage_used_mb": 125.4,
"oldest_memory_date": "2026-01-15",
"newest_memory_date": "2026-08-10",
"top_categories": [
{"category": "user_preferences", "count": 2340},
{"category": "task_patterns", "count": 1890},
{"category": "error_corrections", "count": 1250}
]
}
| Trap | Description | Solution |
|---|---|---|
| Over-Optimization | Optimizing for metrics that don't reflect actual user value | Focus on user satisfaction, not just metrics |
| Memory Bloat | Accumulating too many memories without compaction | Enforce strict compaction schedule |
| Prompt Drift | Prompts gradually changing away from original intent | Version control and intent validation |
| Skill Hoarding | Acquiring skills that are rarely used | Regular skill usage review and cleanup |
| Analysis Paralysis | Spending too much time on reflection, not enough on action | Time-box each phase strictly |
| Silent Failure | Improvements failing without detection | Comprehensive logging and monitoring |
| Credential Leak | Accidentally logging or exposing credentials | Strict credential isolation rules |
| Rollback Loop | Repeatedly applying and rolling back same improvement | Root cause analysis before re-attempt |
| Metric Gaming | Optimizing metrics in ways that don't improve actual performance | Use multiple complementary metrics |
| User Surprise | Self-modifications changing behavior unexpectedly | Maintain transparency and user control |
Before applying any self-modification:
All data is stored locally in ~/self-smarter/:
~/self-smarter/ directory| Component | Estimated Size | Growth Rate |
|---|---|---|
| Logs | ~10 MB/month | Linear |
| Memory (raw) | ~50 MB/month | Linear |
| Memory (compacted) | ~20 MB/month | Sub-linear |
| Prompts | ~1 MB/month | Slow |
| Skills | ~5 MB/month | Slow |
| Plans | ~5 MB/month | Linear |
| Audits | ~10 MB/month | Linear |
| Metrics | ~5 MB/month | Linear |
| Total | ~106 MB/month | — |
| File | Purpose | When to Read |
|---|---|---|
| SKILL.md | Main skill definition | Always loaded on trigger |
| AGENTS.md | Operating rules & methodology | When configuring nightly routine |
| README.md | Overview & installation | First-time setup |
| CHANGELOG.md | Version history | Before upgrading |
| CONTRIBUTING.md | Contribution guidelines | When extending the skill |
| SECURITY.md | Security policy & threat model | When configuring access |
| File | Topic |
|---|---|
| references/architecture.md | System architecture & MAPE-K loop |
| references/meta-learning.md | Learning to learn concepts |
| references/self-reflection.md | 4-pillar reflection framework |
| references/memory-systems.md | Tiered memory architecture |
| references/prompt-evolution.md | Prompt optimization strategies |
| references/safety-boundaries.md | Safety & ethics guidelines |
| references/evaluation-frameworks.md | KPIs & scoring rubrics |
| references/continuous-learning.md | Continuous learning paradigms |
| references/autonomous-agent-design.md | Agent design patterns |
| references/production-deployment.md | Production patterns |
| File | Topic |
|---|---|
| guides/getting-started.md | Beginner walkthrough |
| guides/nightly-routine-setup.md | Cron job configuration |
| guides/self-audit-implementation.md | Self-audit checklist |
| guides/skill-evolution-guide.md | Skill discovery & creation |
| guides/memory-management.md | Memory tier configuration |
| guides/prompt-optimization.md | Prompt mutation & fitness |
| guides/error-patterns.md | Error pattern recognition |
| guides/performance-tracking.md | Metrics & dashboards |
| guides/integration-playbook.md | Integration with other systems |
| guides/troubleshooting.md | Common issues & fixes |
| File | Topic |
|---|---|
| examples/basic-setup.md | Complete beginner setup |
| examples/advanced-config.md | Advanced customization |
| examples/team-deployment.md | Multi-agent deployment |
| examples/custom-metrics.md | Custom metric definitions |
| examples/migration-guide.md | Migrating from self-improving |
| File | Purpose |
|---|---|
| scripts/nightly_routine.py | Orchestrates 6-phase nightly routine |
| scripts/self_audit.py | Self-audit checks & scoring |
| scripts/memory_compact.py | Memory compaction & promotion |
| scripts/prompt_evolve.py | Prompt mutation & evaluation |
| scripts/setup.sh | Initial setup script |
| File | Purpose |
|---|---|
| templates/daily-reflection.md | Daily reflection journal |
| templates/weekly-evaluation.md | Weekly evaluation report |
| templates/improvement-plan.md | Improvement plan template |
The following sections are PERMANENT and must not be removed or downgraded:
These sections exist to ensure:
If updating this skill, preserve all protected sections.
Found a bug? Have a feature request? Want to contribute?
MIT License — See LICENSE file for details.
Remember: The goal of self-smarter-everyday is not just to change, but to improve. Every modification should make the agent more helpful, more efficient, and more aligned with user needs. When in doubt, prioritize user trust and safety over optimization.