← 返回 Skills 市场
stevengaojn2010

LessonLoop

作者 stevengaojn2010 · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
164
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install lessonloop
功能描述
Lightweight experience-capture and behavior-hardening for Goat. Use when the user explicitly gives corrective feedback, says to remember or avoid something,...
使用说明 (SKILL.md)

LessonLoop

Overview

Use this skill to convert important feedback into durable behavior changes with minimal token cost. Prefer event-triggered capture over continuous self-reflection.

Core rule

Do not run broad self-analysis. Only act when at least one of these is true:

  • The user explicitly says "remember", "以后", "别再", "固定下来", "写进记忆", or similar
  • The user corrects a mistake or rejects an output pattern
  • A new operating rule is agreed
  • A repeated failure should become a hard constraint

If none apply, do not use this skill.

Workflow

0. Use the low-cost decision path first

Prefer a two-layer path:

  1. Local/Ollama first-pass for simple classification, compression, and promotion pre-check
  2. Main model final pass only when the case is ambiguous, strategic, or likely to affect long-term defaults

Use local/Ollama for:

  • classifying feedback into a lesson type
  • compressing a lesson into 1-2 lines
  • deciding whether a lesson is probably daily-memory-only or a candidate for long-term promotion

Escalate to the main model only when:

  • the lesson changes global operating rules
  • the wording is ambiguous or high-stakes
  • the summary may distort the user's intent
  • the lesson affects safety, billing, routing, or durable priorities

1. Classify the feedback

Map the event into one of four buckets:

  1. Preference — style, brevity, tone, output format
  2. Rule — default behavior, routing, cost control, escalation condition
  3. Mistake — something Goat did wrong and should avoid repeating
  4. Priority — what to optimize first right now

2. Decide storage level

  • Write to memory/YYYY-MM-DD.md for short-term events, fresh corrections, and local context
  • Also update MEMORY.md only if the lesson is durable and should shape future sessions
  • Do not promote transient details into MEMORY.md

3. Write in compressed form

Store the smallest useful rule.

Prefer:

  • "Boss requires strict token-efficiency discipline"
  • "Default to short answers and minimal tools"

Avoid:

  • long narrative explanations
  • emotional framing
  • detailed postmortems unless specifically requested

4. Apply immediately

After writing memory, change behavior in the current session right away. Do not wait for the next session.

Writing rules

  • Keep each stored lesson to 1-2 lines
  • Prefer imperative language
  • Record the correction, not the whole story
  • If a lesson changes defaults, phrase it as a rule
  • If the user approved a protocol, name it consistently (for example: Session throttling protocol v1)

Promotion guide

Promote to MEMORY.md when a lesson is:

  • likely to matter across many sessions
  • tied to cost, safety, trust, routing, or communication style
  • a default operating rule

Keep only in daily memory when it is:

  • temporary
  • experimental
  • tied to a single task
  • not yet validated by repeated use or explicit user approval

Anti-bloat guardrails

  • Do not summarize every conversation
  • Do not run reflection after every task
  • Do not create extra memory files
  • Do not duplicate the same rule in multiple places unless promoting from daily memory to long-term memory
  • Do not trigger memory search unless the task actually depends on prior decisions, preferences, dates, people, or todos

Resources

scripts/

  • scripts/apply_lesson.py writes a compact lesson to daily memory and logs a structured LessonLoop event in one step
  • scripts/capture_lesson.py appends a compact lesson to the canonical daily memory file
  • scripts/log_lesson_event.py writes structured LessonLoop event logs for evaluation and reporting
  • scripts/lessonloop_report.py summarizes recent LessonLoop activity and outputs a compact report

references/

  • references/lesson-types.md contains compact classification and phrasing patterns
  • references/status-format.md defines a compact report/status output format
安全使用建议
This skill is internally consistent and implements exactly what it claims: local, compact lesson capture and reporting. Before installing or enabling it, check the configured workspace path (default: /Users/steven/.openclaw/workspace) to ensure you are comfortable with the agent writing memory files there. Note that SKILL.md recommends using a local/Ollama first-pass — the package doesn't include or require an Ollama binary, so the agent environment must provide any local model you intend to use. Also verify your policy for promoting items into long-term MEMORY.md so sensitive or transient details are not accidentally made permanent.
功能分析
Type: OpenClaw Skill Name: lessonloop Version: 0.1.1 The LessonLoop skill bundle is a legitimate utility for capturing and storing user feedback to improve agent behavior over time. The Python scripts (apply_lesson.py, capture_lesson.py, etc.) perform basic file I/O to manage memory files and logs within a local workspace, using standard libraries without any signs of shell injection, network exfiltration, or obfuscation. While the scripts contain a hardcoded default path (/Users/steven/...), this is used as an overridable argparse default and does not pose a security risk. The SKILL.md instructions are well-defined and strictly focused on the stated purpose of experience capture and behavior hardening.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The name/description describe lightweight capture and promotion of lessons; the included scripts implement exactly that (append daily memory entries, write structured event logs, decide escalation). There are no unrelated environment variables, binaries, or network endpoints declared.
Instruction Scope
SKILL.md instructs local/Ollama first-pass and escalation to a stronger model for high-stakes cases. This is an operational guideline rather than code-level integration — the shipped scripts do not call external services. The scripts do read/write only to a workspace memory directory (default: /Users/steven/.openclaw/workspace). Users should note that the skill will write to local files and could promote items into MEMORY.md if invoked to do so.
Install Mechanism
No install spec is present (instruction-only skill). Code files are included but there is no download-from-URL or package installer. This is low-risk from an install/execution distribution perspective.
Credentials
The skill declares no required environment variables, credentials, or config paths. The scripts operate using a filesystem workspace path only (configurable via command-line args). There is no request for unrelated secrets or tokens.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system-wide agent settings. Its persistence is limited to writing small files under the configured workspace directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lessonloop
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lessonloop 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Tighten LessonLoop naming and make it easier to apply in real workflows.\n\n- Renames skill metadata to LessonLoop consistently\n- Adds scripts/apply_lesson.py to write daily memory and structured event logs in one step\n- Updates docs to reflect the new one-step workflow\n- Sets the project license to MIT-0
v0.1.0
Initial release of Goat Self Improving Lite – lightweight, event-triggered lesson capture for durable memory with minimal token cost. - Records only high-value lessons based on explicit user feedback or important corrections. - Promotes durable rules to long-term memory; avoids verbose or redundant reflections. - Implements a two-layer, cost-efficient workflow (local/first-pass then main model for ambiguous or critical cases). - Stores each lesson in compressed, rule-focused form to minimize memory bloat. - Immediately applies new behavior changes after writing memory. - Provides scripts for lesson capture, logging, and compact reporting.
元数据
Slug lessonloop
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

LessonLoop 是什么?

Lightweight experience-capture and behavior-hardening for Goat. Use when the user explicitly gives corrective feedback, says to remember or avoid something,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 164 次。

如何安装 LessonLoop?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lessonloop」即可一键安装,无需额外配置。

LessonLoop 是免费的吗?

是的,LessonLoop 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

LessonLoop 支持哪些平台?

LessonLoop 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 LessonLoop?

由 stevengaojn2010(@stevengaojn2010)开发并维护,当前版本 v0.1.1。

💬 留言讨论