Auto-analyze mistake and success patterns and reflect in skills
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install learning-engine或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install learning-engine⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/learning-engine/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: learning-engine description: Auto-analyze mistake and success patterns and reflect in skills author: 무펭이 🐧 ---
System 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
安装 learning-engine 后,可以对 AI 说这些话来触发它
Help me get started with learning-engine
Explains what learning-engine does, walks through the setup, and runs a quick demo based on your current project
Use learning-engine to auto-analyze mistake and success patterns and reflect in skills
Invokes learning-engine with the right parameters and returns the result directly in the conversation
What can I do with learning-engine in my general tools workflow?
Lists the top use cases for learning-engine, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/learning-engine/ 目录(个人级,所有项目可用),或 .claude/skills/learning-engine/(项目级)。重启 AI 客户端后,用 /learning-engine 主动调用,或让 AI 根据上下文自动发现并使用。
learning-engine 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
learning-engine 可免费安装使用。请查阅仓库了解许可证信息。
Auto-analyze mistake and success patterns and reflect in skills
learning-engine 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my general tools tasks using learning-engine
Identifies repetitive steps in your workflow and sets up learning-engine to handle them automatically