learning-engineAuto-analyze mistake and success patterns and reflect in skills
Install via ClawdBot CLI:
clawdbot install mupengi-bot/learning-engineSystem records mistakes and successes, automatically learns patterns to improve skills. Automates "don't repeat same mistake" principle.
Extract failure patterns from error logs
# memory/errors/2026-02-14.md
## 10:30 - insta-post failure
- Cause: PNG file upload ā "Problem occurred" error
- Fix: Retry after JPG conversion ā Success
- Lesson: Always convert to JPG before Instagram upload
Extract improvement points from weekly self-evaluation
# memory/self-eval/2026-W07.md
## This Week's Mistakes
- Too many browser snapshots (token waste)
- ā Improvement: Call API directly via exec
## This Week's Successes
- 95% token savings with insta-cli v2 DM check
Learn successful/unsuccessful patterns from performance tracking
{
"insight": "Posts at 7-9 PM get +30% likes",
"rule": "Instagram posts recommended 19:00-21:00"
}
Convert learned patterns to rules:
Location: memory/learned-rules/
memory/
learned-rules/
instagram-posting.md
browser-automation.md
api-usage.md
error-recovery.md
# Instagram Posting Rules
## Rule #1: Always Convert to JPG
- **Situation**: Upload image to Instagram
- **Failure Pattern**: PNG file ā "Problem occurred"
- **Solution**: `convert input.png -quality 92 output.jpg`
- **Evidence**: 2026-02-10, 2026-02-14 error logs
- **Applied Skills**: insta-post, cardnews, social-publisher
## Rule #2: 1:1 Ratio Required
- **Situation**: Instagram card news
- **Failure Pattern**: 16:9 horizontal ā Cropped in feed
- **Solution**: Generate as 1024x1024 square
- **Evidence**: 2026-02-13 feedback
- **Applied Skills**: cardnews, nano-banana-pro
Auto-add learned rules to relevant skill SKILL.md:
Location: skills/{skill-name}/SKILL.md
# insta-post
...
## Learned Lessons
### Image Processing
- ā
Always convert to JPG (PNG causes errors)
- ā
1:1 ratio required (1024x1024 recommended)
- ā
File size < 8MB
### Timing
- ā
Posts at 19:00-21:00 get +30% engagement
- ā Avoid early morning posts
### Automation
- ā
Call API via exec (0 snapshots)
- ā Minimize browser automation
Auto-generated every Monday:
Location: memory/learning/weekly-YYYY-Www.md
# 2026-W07 Learning Report
## New Learnings (5)
1. **Instagram PNG Ban**
- 3 mistakes ā Rule created
- Applied: insta-post, cardnews
2. **Token Saving: exec > Browser**
- v1: 5 snapshots ā v2: 1 exec
- 95% savings
3. **Optimal Posting Time**
- 19:00-21:00 +30% likes
4. **Brand Tone Effect**
- 묓ķģ“ tone +40% engagement
5. **Auto Error Recovery**
- browser-dependent failure ā Browser restart
## Applied Skills
- insta-post (2 rules)
- cardnews (1 rule)
- performance-tracker (1 insight)
## Next Week Goals
- [ ] Build A/B testing system
- [ ] Add 3 auto-recovery patterns
Publish event when learning complete:
Location: events/lesson-learned-YYYY-MM-DD.json
{
"timestamp": "2026-02-14T23:00:00Z",
"source": "learning-engine",
"new_rules": 2,
"updated_skills": ["insta-post", "cardnews"],
"summary": "Learned 2 Instagram image rules"
}
Error occurs
ā
Record to memory/errors/
ā
learning-engine analysis
ā
Extract patterns + Create rules
ā
Save to memory/learned-rules/
ā
Auto-update relevant skill SKILL.md
ā
Publish event (lesson-learned)
ā
Reflect in weekly report
"What did I learn this week?"
ā Generate weekly learning report
"Organize Instagram posting mistake patterns"
ā Analyze memory/errors/ + Create rules
"Learn from performance data"
ā Extract successful patterns + Update rules
Instagram post fails ā Manually convert to JPG ā Retry
(Repeat every time)
Execute insta-post ā Auto-check/convert JPG ā Success
(Rule injected into SKILL.md)
learning-engine itself also learns:
Meta Learning Report: memory/learning/meta-YYYY-MM.md
š§ Built by 묓ķģ“ ā Mupengism ecosystem skill
Generated Mar 1, 2026
An agency managing multiple client accounts can use the learning-engine to automatically analyze posting failures, such as image format errors or timing issues, and generate rules to prevent repeat mistakes. This improves campaign efficiency by ensuring posts adhere to learned best practices, like optimal posting times and file conversions, reducing manual oversight.
An e-commerce platform integrates the learning-engine to analyze error logs from customer service bots, identifying common failure patterns like payment processing issues or inventory queries. It creates rules to auto-correct responses or escalate cases, enhancing resolution rates and reducing support ticket volume through continuous learning from past interactions.
A studio producing digital content uses the learning-engine to track performance data from platforms like Instagram, learning patterns such as engagement boosts with specific tones or formats. It automatically updates skill rules for content generation tools, optimizing output based on success metrics and minimizing errors like incorrect image ratios.
A development team employs the learning-engine to analyze error logs and self-evaluation results from coding tasks, extracting patterns like API call inefficiencies or browser automation waste. It generates rules to improve automation scripts, such as preferring direct API calls over snapshots, leading to token savings and faster deployment cycles.
An online learning platform uses the learning-engine to analyze student interaction data and mistake patterns in quizzes or assignments. It creates rules to adapt content delivery, such as recommending review materials based on common errors, enhancing personalized learning paths and improving student outcomes through automated reflection.
Offer the learning-engine as a cloud-based service with tiered pricing based on usage volume, such as number of rules generated or skills updated. Revenue comes from monthly subscriptions, targeting businesses seeking to automate error analysis and performance optimization without in-house development.
Sell perpetual licenses or annual contracts to large organizations for on-premise deployment, with customization options for specific industries like marketing or tech. Revenue includes upfront licensing fees and ongoing support charges, catering to clients needing high data security and tailored integration.
Provide professional services to help clients implement the learning-engine, including setup, training, and custom rule development. Revenue is generated through project-based fees or hourly rates, appealing to businesses that lack technical expertise but want to leverage automated learning for operational improvements.
š¬ Integration Tip
Integrate with existing error logging and performance tracking systems via hooks to automate data ingestion and rule application, ensuring seamless updates to skill documentation.
AI-powered idea/problem/challenge manager with GitHub integration. Captures, categorizes, reviews, and helps ship ideas to repos.
Daily wisdom review applying Charlie Munger's mental models to your work and thinking. Use when asked to review decisions, analyze thinking patterns, detect biases, apply mental models, do a "Munger review", or run the Munger Observer. Triggers on scheduled daily reviews or manual requests like "run munger observer", "review my thinking", "check for blind spots", or "apply mental models".
AI language tutor for learning ANY language through conversation, vocab drills, grammar lessons, flashcards, and immersive practice. Use when the user wants to: learn a new language, practice vocabulary, study grammar, do flashcard drills, translate phrases, practice conversation, prepare for travel, learn slang/idioms, or improve pronunciation. Supports ALL languages including Spanish, French, German, Japanese, Chinese (Mandarin/Cantonese), Korean, Arabic, Hindi, Bengali/Bangla, Portuguese, Russian, Italian, Turkish, Vietnamese, Thai, Swahili, Hebrew, Polish, Dutch, Greek, and 100+ more.
Auto-learns how you learn best. Adapts teaching style, format, and depth to you.
Interactive Japanese learning assistant. Supports vocabulary, grammar, quizzes, roleplay, PDF/DOCX material parsing for study/homework help, and OCR translation.
Personalized tutoring for any age and subject with adaptive teaching, progress tracking, and parent oversight.