agentsclimarketplace

Self improving agent

Skill YiShu5/claude-skills/skills/self-improving-agent

Battle-tested coding-agent skills for product, content, writing, presentations, and workflow automation.

Install
npx -y skills add YiShu5/claude-skills --skill self-improving-agent

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Low-noise self-improvement skill. Captures learnings, errors, and corrections into a local `.learnings/` cache layer. Never auto-promotes to long-term memory files (SOUL.md, MEMORY.md, AGENTS.md, TOOLS.md). Promotion requires explicit user approval after repeated validation.

SKILL.md

4.8 KB, as published. Nobody here has run it

Self-Improving Agent (Low-Noise Edition)

A conservative self-improvement system that treats .learnings/ as a write-first cache layer. Nothing reaches the main system files without human review.

Quick Reference

ActionTargetAuto?
Log a learning.learnings/LEARNINGS.mdYes
Log an error.learnings/ERRORS.mdYes
Log a feature gap.learnings/FEATURE_REQUESTS.mdYes
Promote to MEMORY.mdRequires user approvalNo
Promote to SOUL.mdRequires user approval + reviewNo
Promote to AGENTS.mdRequires user approvalNo
Promote to TOOLS.mdRequires user approvalNo

Core Principles

  1. Write to cache first. All observations go to .learnings/. No exceptions.
  2. Never auto-promote. The cache is not the system. Promotion is a deliberate act.
  3. SOUL.md is sacred. Modifications require explicit human review every time.
  4. MEMORY.md is for stable truths. Only long-term preferences, decisions, and goals belong there.
  5. Errors and learnings stay separate. Different logs, different purposes.
  6. Silence is better than noise. If unsure whether something is worth logging, don't log it.
  7. No cross-session broadcasting of raw learnings. Only promote distilled, verified content.

Logging Format

Learning Entry

## [YYYY-MM-DD] Category: brief title

- **Type**: correction | knowledge_gap | best_practice
- **Context**: What was happening
- **Learning**: What was learned
- **Confidence**: low | medium | high
- **Promote?**: no (default) | candidate | promoted

Error Entry

## [YYYY-MM-DD] brief description

- **Command/Tool**: What failed
- **Error**: The error message or symptom
- **Root Cause**: What actually went wrong
- **Resolution**: How it was fixed
- **Recurrence**: first | repeated

Feature Request Entry

## [YYYY-MM-DD] brief description

- **Gap**: What capability is missing
- **User Need**: Why it matters
- **Priority**: low | medium | high

Promotion Gates

A cached item may be promoted to a system file only when ALL of these are true:

  1. Repeated — The same insight has appeared in 2+ separate sessions
  2. Verified — The insight was confirmed correct (not a one-off misunderstanding)
  3. User-approved — The user explicitly agrees to promote it
  4. Relevant long-term — It's not a temporary workaround or context-specific hack

Promotion Targets

Content TypeTarget FileExtra Requirement
User preference / long-term decisionMEMORY.mdStable across sessions
Identity / behavior guidelineSOUL.mdHuman review mandatory
Agent capability / role definitionAGENTS.mdVerified in practice
Tool usage pattern / integrationTOOLS.mdTested and confirmed

Promotion Process

  1. Agent proposes promotion with rationale
  2. User reviews the exact content to be written
  3. User explicitly approves
  4. Agent writes to target file
  5. Agent marks the cached entry as Promote?: promoted

Best Practices (Low-Noise)

  • Don't log obvious things. "Python needs indentation" is not a learning.
  • Don't log things already in the codebase or docs.
  • One entry per insight. No walls of text.
  • Prefer updating an existing entry over creating a duplicate.
  • Review .learnings/ periodically. Prune stale entries.
  • When in doubt, skip the log. You can always add it later.

OpenClaw Integration

See references/openclaw-integration.md for how this skill fits into the OpenClaw workspace architecture.

Key Boundaries

┌─────────────────────────────────────┐
│  Main System Layer (protected)      │
│  SOUL.md · MEMORY.md · AGENTS.md   │
│  TOOLS.md                           │
│  ← promotion requires approval →    │
├─────────────────────────────────────┤
│  Cache Layer (free-write)           │
│  .learnings/LEARNINGS.md            │
│  .learnings/ERRORS.md               │
│  .learnings/FEATURE_REQUESTS.md     │
└─────────────────────────────────────┘

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.