当前位置: 首页 > Skill >

Learning Loop

Learning Loop

Learning Loop

主动学习引擎,让智能体每日更聪明。融合每日日志、分类决策追踪与生命周期经验提取…

1.0.0 2026.11.25 207
获取Skill文件查看使用说明
作 者:林澄 许可证: 更新时间:2026.11.25
本文目录展开

Learning Loop

A proactive learning engine. Your agent reflects, journals, tracks decisions, extracts lessons, and gets smarter every day — without being told to.

What Makes This Different

Most self-improvement skills are reactive — they only learn when corrected. Learning Loop is proactive:

  • Journals daily — synthesizes what happened, not just what went wrong
  • Tracks decisions with categories — analyze accuracy by type over time
  • Generalizes lessons — asks "where else does this apply?" before saving
  • Manages lesson lifecycle — ACTIVE → VALIDATED → CHALLENGED → ARCHIVED
  • Tiers memory automatically — hot/warm/cold based on recency and usage
  • Staggered review chain — nightly → monthly → quarterly → year-end
  • Correction tracking — counts repetitions, promotes to rules after 3x
  • Quiet day protocol — idle time becomes maintenance time

Setup

On first use, create the workspace structure (only missing dirs):

brain/
├── journal/        # Daily logs (YYYY-MM-DD.md)
├── decisions/      # Decision log with categories
├── lessons/        # Extracted insights with lifecycle
├── inbox/          # Quick captures, filed later
├── knowledge/
│   ├── domains/    # By field (code, writing, ops)
│   ├── people/     # Notes about people
│   └── concepts/   # Mental models
├── projects/       # Active work
└── archive/        # Completed/inactive items

Also ensure memory/ exists at workspace root. Never overwrite existing files.

Core Loop

1. Capture (Real-Time)

During normal work, write immediately:

Journal → brain/journal/YYYY-MM-DD.md

  • One line per significant event, with timestamps

Decisions → brain/decisions/NNN-short-name.md

  • Only decisions with real consequences (see format below)

Corrections → Journal + corrections count

  • Human correction = high-priority learning signal
  • Flag for nightly reflection
  • Track repetition count for promotion

Quick capture → brain/inbox/

  • Anything worth saving without a clear home — file it during reflection

2. Reflect (Nightly)

Run at end of day. Write findings to journal.

  1. Read today's journal
  2. Review new decisions, update any OPEN → RESOLVED
  3. Extract lessons (see Lesson Extraction)
  4. Process inbox — file items or discard
  5. Check correction counts — promote any hitting 3x threshold
  6. Update MEMORY.md if hot items changed
  7. Write end-of-day summary (2-3 sentences: what mattered, what to carry forward)

If nothing happened: Run Quiet Day Protocol instead.

3. Review (Staggered Chain)

Each level reads the level below:

Cycle Frequency Reads Produces
🌙 Nightly Daily Today's journal + inbox Journal summary, lesson extraction
📊 Monthly 1st of month All journals from past month Monthly summary, decision accuracy by category
📅 Quarterly Jan/Apr/Jul/Oct Monthly summaries Quarterly patterns, lesson validation sweep
🎆 Year-End Jan 1 Quarterly reports Annual review, archive stale items

Quiet Day Protocol

On days with zero activity, use reflection for:

  • Memory maintenance (tier hot/warm/cold items)
  • Lesson review (validate or challenge existing lessons)
  • Cross-referencing old journals for missed patterns
  • Inbox processing
  • Documentation cleanup

Idle time is maintenance time, not wasted time.

Correction Tracking

When the user corrects you:

  1. Log in journal with timestamp
  2. Increment correction counter for that pattern
  3. Flag for nightly reflection

Promotion rules:

  • Same correction 1x → tentative, watch for repetition
  • Same correction 2x → emerging pattern
  • Same correction 3x → ask user: "Should I always do X? (Yes always / Only in [context] / Case by case)"
  • User confirms → promote to permanent rule
  • User says case-by-case → keep as contextual note

Learning signals (phrases that trigger logging):

  • "No, that's not right..." / "Actually, it should be..."
  • "I prefer X, not Y" / "Always do X" / "Never do Y"
  • "I told you before..." / "Stop doing X" / "Why do you keep..."

Ignore (don't log):

  • One-time instructions ("do X now")
  • Hypotheticals ("what if...")
  • Context-specific ("in this file...")

Decision Format

# DEC-NNN: [Short Title]

**Date:** YYYY-MM-DD
**Category:** tool-selection | strategy | communication | architecture | spending | creative | process
**Status:** OPEN | RESOLVED

## What was decided
[One sentence]

## Why
[Brief reasoning]

## Alternatives considered
- Option A — rejected because...

## Outcome
[Fill in when known]

## Lesson
[Fill in when outcome is clear]

Category tracking enables: "I'm 90% accurate on tool-selection but 60% on strategy." Monthly reviews surface this. That's where real growth happens.

Lesson Extraction

Create in brain/lessons/:

# LESSON-NNN: [Title]

**Date:** YYYY-MM-DD
**Status:** ACTIVE | VALIDATED | CHALLENGED | ARCHIVED
**Source:** [correction, reflection, or decision outcome]

## The Lesson
[One actionable statement]

## Generalization
[The CLASS of problem this applies to]
[Ask: "Where else does this pattern show up?"]

## Evidence
- [First instance — date, context]

Lifecycle

Status Meaning Transition
ACTIVE New, believed true Default
VALIDATED Confirmed by 2+ experiences When applied successfully again
CHALLENGED Contradicted by new evidence When counter-evidence appears
ARCHIVED Outdated or superseded After 90+ days unused

Nothing is ever deleted — archived items move to brain/archive/.

Generalization Quality

Before saving, ask:

  1. Specific enough to act on? ("Be careful" = useless. "Verify API responses before parsing" = actionable.)
  2. General enough to reuse? ("Fix line 47" = too narrow. "Validate input at boundaries" = transferable.)
  3. What's the CLASS of mistake? (Not "forgot return code" but "Assumptions about external systems.")

Anti-patterns: over-correcting from one data point, confirmation bias, correlation ≠ causation.

Memory Tiering

MEMORY.md is the boot file — loaded every session. Keep it lean.

Temp Location Rule
🔥 Hot MEMORY.md Used in last 7 days. Target <50 lines.
🌡️ Warm brain/ 8-30 days unused. Condense or demote.
❄️ Cold brain/archive/ 30+ days unused. Move out entirely.

Rules:

  • Tiering happens during nightly reflection
  • Cold items promote back when relevant again
  • If MEMORY.md exceeds 50 lines → ask user what to deprioritize (don't auto-demote confirmed rules)
  • Nothing is deleted — cold moves to archive

Namespace Isolation

Knowledge inherits down this chain:

Global (MEMORY.md, brain/lessons/)
  └── Domain (brain/knowledge/domains/)
       └── Project (brain/projects/)

Conflict resolution: Most specific wins. Project overrides domain, domain overrides global. Same level: most recent wins. If ambiguous: ask user.

Security Boundaries

Never Store

Credentials, API keys, financial data, medical info, biometrics, third-party personal info, location routines.

Store with Caution

Work context (decay after project ends), emotional states (only if explicitly shared), relationships (roles only, no personal details).

Transparency

  • Every action from memory → cite source
  • User asks "what do you know?" → full export
  • No hidden state — if it affects behavior, it must be visible

Journal Format

brain/journal/YYYY-MM-DD.md:

# YYYY-MM-DD

## Events
- [HH:MM] Description

## Decisions Made
- DEC-NNN: [title]

## Lessons Extracted
- LESSON-NNN: [title]

## Corrections Received
- [What was corrected → what was learned]

## End of Day
[2-3 sentences: what mattered, what to carry forward]

Quick Commands

User says Action
"What did you learn today?" Today's journal lessons
"Decision log" Recent decisions with status
"Lesson stats" Count by ACTIVE/VALIDATED/CHALLENGED/ARCHIVED
"What decisions am I bad at?" Accuracy by category from resolved decisions
"Reflect now" Run nightly reflection
"What's in the inbox?" Unprocessed captures
"Memory stats" Tier sizes, last reflection, MEMORY.md line count
"Forget X" Archive from all locations (confirm first)
"Export memory" Archive all brain/ files

Integration

Works alongside existing workspace files:

  • AGENTS.md — Add: "Use brain/ for structured knowledge. See learning-loop skill."
  • HEARTBEAT.md — Add: "Run nightly reflection per learning-loop skill if work was done today."
  • MEMORY.md — Learning Loop keeps this lean via automatic tiering.

Everything stays in brain/ within the workspace. No external directories, no network calls.

Scope

This skill ONLY:

  • Writes to brain/ and memory/ within the workspace
  • Reads its own files for reflection and review
  • Suggests edits to MEMORY.md, AGENTS.md, HEARTBEAT.md (with user confirmation)

This skill NEVER:

  • Creates files outside the workspace
  • Makes network requests
  • Accesses email, calendar, or external services
  • Deletes files (archive only)
  • Modifies its own SKILL.md
  • Infers preferences from silence

Built by ClawMage — the setup guide for brilliant AI agents. This is the learning engine from the ClawMage 10-Phase System. Want the full system? → clawmage.ai

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • Learning Loop
    • What Makes This Different
    • Setup
    • Core Loop
      • 1. Capture (Real-Time)
      • 2. Reflect (Nightly)
      • 3. Review (Staggered Chain)
      • Quiet Day Protocol
    • Correction Tracking
    • Decision Format
    • Lesson Extraction
      • Lifecycle
      • Generalization Quality
    • Memory Tiering
    • Namespace Isolation
    • Security Boundaries
      • Never Store
      • Store with Caution
      • Transparency
    • Journal Format
    • Quick Commands
    • Integration
    • Scope
  • 项目或源文件

相关 Skill

更多
queen.skill queen.skill 来自惊风制作的造物主系列 Skill——queen。专注于 OpenClaw 架构升级,让 AI 更可控、更聪明、更持续进化。当用户希望升级已有 Agent 的可靠性、记忆能力或自进化能力时触发。触发词:升级Agent、系统强化、Harness、MemPalace、Learning Loop、让AI更可靠、让AI不忘事、让AI越用越聪明、架构升级、queen、queen.skill。无需先运行 king,可独立运行。
Global Agent Rules Global Agent Rules Shared behavioral rules for ALL Donald's agents. Universal: correction protocol, time check, pre-action checklist, learning loop, mistake breaker.
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。