← Back to Skills Marketplace
enjuguna

Learnings Skill

by Eric Kariuki · GitHub ↗ · v1.3.0 · MIT-0
cross-platform ⚠ pending
53
Downloads
0
Stars
1
Active Installs
4
Versions
Install in OpenClaw
/install learnings
Description
Continuous learning from failures, corrections, and patterns. Logs mistakes to prevent repetition. Own MeiliSearch index. Learns version rules, approach pref...
README (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
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install learnings
  3. After installation, invoke the skill by name or use /learnings
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug learnings
Version 1.3.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 4
Frequently Asked Questions

What is Learnings Skill?

Continuous learning from failures, corrections, and patterns. Logs mistakes to prevent repetition. Own MeiliSearch index. Learns version rules, approach pref... It is an AI Agent Skill for Claude Code / OpenClaw, with 53 downloads so far.

How do I install Learnings Skill?

Run "/install learnings" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Learnings Skill free?

Yes, Learnings Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Learnings Skill support?

Learnings Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Learnings Skill?

It is built and maintained by Eric Kariuki (@enjuguna); the current version is v1.3.0.

💬 Comments