mupengi-bot

learning-engine

AI 智慧體v1.0.1
作者:mupengi-bot更新於 2026-05-18共 2 個版本 · 最新版本釋出於 2026-02-16@clawhub_mupengi-bot/learning-engine
上下文管理記憶增強#Learning

據 AlphaMoat 統計,截至 2026-09,learning-engine 累計下載 4,372 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 2,238 位,在「AI 智慧體」分類(969 個)中排名第 428 位。

累計安裝
134
累計下載
4372
星標
-
全站排名
#2,238
全站前 45% · 「AI 智慧體」前 45%
平台累計安裝累計下載星標評論
ClawHub ↗1344033--
SkillHub ↗1324372-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該技能可把反覆出現的經驗整理為規則、報告和技能更新建議;持久化修改應經人工審閱,並避免儲存敏感內容。

資料釋出於 2026-10-29

可以用來做什麼

  • 適合覆盤錯誤、自評或表現記錄,並將重複經驗整理為可複用規則的開發者和代理操作者。

什麼時候用

  • 先採用試執行或審閱優先的方式;修改技能說明前要求人工批准,並限制學習資料寫入範圍。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

請根據已脫敏的錯誤記錄擬定候選規則,先交由人工審閱,不要直接修改技能檔案。

月度資料趨勢

累計下載4372
2068330645432026-03 · 累計下載 22392026-05 · 累計下載 33622026-06 · 累計下載 35252026-07 · 累計下載 38332026-08 · 累計下載 39452026-09 · 累計下載 437226-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-094372—-
2026-083945+2.9%-
2026-073833+8.7%-
2026-063525+4.8%-
2026-053362—-
2026-032239—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.2 KB · ClawHub v1.0.1
---
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.
展開全部(共 249 行)
## Learning Sources

### 1. memory/errors/
Extract failure patterns from error logs

```markdown
# 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
```

### 2. self-eval Results
Extract improvement points from weekly self-evaluation

```markdown
# 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
```

### 3. performance Data
Learn successful/unsuccessful patterns from performance tracking

```json
{
  "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

```markdown
# 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
```

## Inject Rules into Skills

Auto-add learned rules to relevant skill SKILL.md:

**Location**: `skills/{skill-name}/SKILL.md`

```markdown
# 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`

```markdown
# 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
```

## Event Publishing

Publish event when learning complete:

**Location**: `events/lesson-learned-YYYY-MM-DD.json`

```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

- **on-error hook**: Error occurs → Record to memory/errors/ → learning-engine analysis
- **post-hook (self-eval)**: After weekly evaluation → Update learning rules
- **post-hook (performance)**: After collecting performance data → Learn patterns
- **scheduled hook**: Every Monday → Generate weekly learning report

## 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

- "what did I learn"
- "learning"
- "lessons"
- "mistake patterns"
- "improvements"
- "learning report"
- "add rule"

## 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:

- "Which rules are used most?"
- "Which skills improve most?"
- "Which areas have slow learning?"

**Meta Learning Report**: `memory/learning/meta-YYYY-MM.md`

## Future Improvements

- [ ] Rule conflict detection (Rule A vs Rule B)
- [ ] Rule confidence score (based on usage frequency)
- [ ] Auto A/B testing (rule validation)
- [ ] Share learning with other agents

---

> 🐧 Built by **무펭이** — [Mupengism](https://github.com/mupeng) ecosystem skill

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。