← 返回 Skills 市场
enjuguna

Learnings Skill

作者 Eric Kariuki · GitHub ↗ · v1.3.0 · MIT-0
cross-platform ⚠ pending
53
总下载
0
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install learnings
功能描述
Continuous learning from failures, corrections, and patterns. Logs mistakes to prevent repetition. Own MeiliSearch index. Learns version rules, approach pref...
使用说明 (SKILL.md)

Learnings Skill

Continuous learning system. Every failure, correction, and pattern gets logged so the same mistakes aren't repeated. Uses its own MeiliSearch index for fast recall.

Security Model

  • Credentials: MeiliSearch key is loaded from ~/.openclaw/workspace/.env — never hardcoded in scripts
  • Sensitive data filtering: Auto-extraction skips content containing tokens, passwords, API keys, and credentials
  • Safe defaults: Distillation and auto-extract default to --dry-run; use --apply to write
  • Secure temp files: All temp files use mktemp with chmod 600 and are cleaned up on exit

Capabilities (declared)

  • Read: memory/*.md (daily notes, for auto-extraction)
  • Write: MeiliSearch learnings index, LEARNINGS.md (distillation only with --apply)
  • Execute: curl to localhost MeiliSearch, python3 for document processing

What Gets Logged

Category Description Example
failure Script/command errors "npm install fails with permission error"
correction Fix applied after a mistake "Use --prefix flag for global installs"
approach Right way to do something "Use full-text search over vector DB for local memory"
version_rule How versions should increment "1.1.0 → 1.2.0 for new features"
preference User preferences discovered "Prefers local/no-cloud solutions"
recurring_failure Same thing failing repeatedly "Auth token expires on every deploy"
rule Explicit "don't do X" rules "Don't commit secrets to repositories"
learning General lessons learned "Always check file exists before copying"

Configuration

Requires ~/.openclaw/workspace/.env:

MEILI_HOST=http://127.0.0.1:7700
MEILI_KEY=your-master-key-here

Files

  • LEARNINGS.md — Human-readable summary (auto-generated, use --apply to write)
  • scripts/setup_index.sh — Create/configure MeiliSearch index
  • scripts/log_learning.sh — Log a new learning entry
  • scripts/search_learnings.sh — Search past learnings before acting
  • scripts/auto_extract.sh — Auto-extract learnings from daily notes
  • scripts/distill_learnings.sh — Summarize raw logs into LEARNINGS.md

Usage

# Log a learning
bash scripts/log_learning.sh \
  --category failure \
  --what "deployment fails with auth token expiry" \
  --fix "Refresh token before each deploy" \
  --importance 0.9 \
  --tags "deploy,auth,token"

# Search before acting
bash scripts/search_learnings.sh "github push" 5

# Auto-extract from daily notes (dry-run by default)
bash scripts/auto_extract.sh --days 7 --apply

# Distill into readable summary (dry-run by default)
bash scripts/distill_learnings.sh --apply

How It Integrates

Before taking any action, I search the learnings index:

  1. Search for the action/context
  2. If a past learning exists, apply the fix first
  3. If the action fails, log it immediately
  4. If you correct me, log it as a high-priority correction

Version Rules (Learned)

  • Increment minor (1.1.0 → 1.2.0) for new features
  • Increment major (1.0.0 → 2.0.0) for breaking changes
  • Avoid patch-level bumps (1.1.0 → 1.1.1) unless it's an actual bug fix
能力标签
requires-oauth-tokenrequires-sensitive-credentials
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install learnings
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /learnings 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.0
v1.3.0: Security audit fixes, remove hardcoded keys, add versioning policy and commit-check rules.
v1.1.1
- Minor update and patch-level release (1.1.1) reflecting version rules guidance. - No functional or documentation changes except for file modification in scripts/log_learning.sh. - Project guidelines on versioning re-affirmed: patch bumps are reserved for bug fixes.
v1.1.0
- Added a README.md with usage and integration details. - Updated LEARNINGS.md and scripts/log_learning.sh with improvements. - Improved documentation and clarified usage instructions.
v1.0.0
Initial release of the Learnings skill: - Introduces a system for continuous learning from failures, corrections, and patterns. - Logs mistakes and preferences to prevent repeating errors. - Maintains its own MeiliSearch index for fast recall of past learnings. - Includes shell scripts for logging, searching, auto-extracting, and distilling learning entries. - Provides guidance on version rules, user preferences, and actions to avoid.
元数据
Slug learnings
版本 1.3.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 4
常见问题

Learnings Skill 是什么?

Continuous learning from failures, corrections, and patterns. Logs mistakes to prevent repetition. Own MeiliSearch index. Learns version rules, approach pref... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 53 次。

如何安装 Learnings Skill?

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

Learnings Skill 是免费的吗?

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

Learnings Skill 支持哪些平台?

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

谁开发了 Learnings Skill?

由 Eric Kariuki(@enjuguna)开发并维护,当前版本 v1.3.0。

💬 留言讨论