learning-engine
by @mupengi-bot
Auto-analyze mistake and success patterns and reflect in skills
clawhub install learning-engineπ About This Skill
name: learning-engine description: Auto-analyze mistake and success patterns and reflect in skills author: 무νμ΄ π§
learning-engine
System records mistakes and successes, automatically learns patterns to improve skills. Automates "don't repeat same mistake" principle.
Learning Sources
1. memory/errors/
Extract failure patterns from error logs# memory/errors/2026-02-14.md10: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
2. self-eval Results
Extract improvement points from weekly self-evaluation# memory/self-eval/2026-W07.mdThis 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
3. performance Data
Learn successful/unsuccessful patterns from performance tracking{
"insight": "Posts at 7-9 PM get +30% likes",
"rule": "Instagram posts recommended 19:00-21:00"
}
Auto Rule Generation
Convert learned patterns to rules:
Location: memory/learned-rules/
memory/
learned-rules/
instagram-posting.md
browser-automation.md
api-usage.md
error-recovery.md
Rule Format
# Instagram Posting RulesRule #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
Inject Rules into Skills
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
Weekly Learning Report
Auto-generated every Monday:
Location: memory/learning/weekly-YYYY-Www.md
# 2026-W07 Learning ReportNew 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
Event Publishing
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"
}
hook-engine Integration
Learning Pipeline
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
Trigger Keywords
Usage Examples
"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
Auto-improvement Examples
Before (Pre-learning)
Instagram post fails β Manually convert to JPG β Retry
(Repeat every time)
After (Post-learning)
Execute insta-post β Auto-check/convert JPG β Success
(Rule injected into SKILL.md)
Meta Learning
learning-engine itself also learns:
Meta Learning Report: memory/learning/meta-YYYY-MM.md
Future Improvements
> π§ Built by 무νμ΄ β Mupengism ecosystem skill