Atlas / Skills / leoyeai / Self Improving Agent Ecc

Self Improving Agent EccSAFE

skills/leoyeai/self-improving-agent-ecc

๐Ÿง  Curated collection of 1209+ best OpenClaw skills โ€” weekly updated by MyClaw.ai

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
2.1
Hosts
4 documented
License
MIT
Stars
2,160
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

An advanced instinct-based continuous learning system for Claude Code.

What's New in v2.1

  • Project-scoped instincts โ€” React patterns stay in React projects, Python in Python projects
  • Confidence scoring โ€” 0.3 (tentative) to 0.9 (near-certain)
  • Hook-based observation โ€” PreToolUse/PostToolUse capture 100% of activity
  • Instinct evolution โ€” Auto-cluster into skills, commands, agents
  • Promotion workflow โ€” Project โ†’ Global when proven across projects

Quick Start

1. Enable Observation Hooks

Add to ~/.claude/settings.json:

{
"hooks": {
"PreToolUse": [{
"matcher": "*",
"hooks": [{
"type": "command",
"command": "~/.claude/skills/self-improving-agent/hooks/observe.sh"
}]
}],
"PostToolUse": [{
"matcher": "*",
"hooks": [{
"type": "command",
"command": "~/.claude/skills/self-improving-agent/hooks/observe.sh"
}]
}]
}
}

2. Use v2 Commands

/instinct-status     # View learned instincts
/evolve              # Cluster into skills
/promote             # Promote to global scope
/projects            # List known projects

3. Create Instincts Manually

---
id: my-instinct
trigger: "when to apply"
confidence: 0.7
domain: "code-style"
scope: project
---

# Title

## Action
What to do.

## Examples
[...]

Directory Structure

~/.claude/homunculus/
โ”œโ”€โ”€ instincts/personal/       # Global auto-learned
โ”œโ”€โ”€ instincts/inherited/      # Global imported
โ”œโ”€โ”€ evolved/                  # Generated skills/commands/agents
โ””โ”€โ”€ projects/
โ””โ”€โ”€ /
โ”œโ”€โ”€ instincts/        # Project-scoped
โ””โ”€โ”€ evolved/          # Project-specific skills

Migration from v1

v2 is fully backward compatible:

  • Existing .learnings/*.md files still work
  • Existing global instincts still work
  • Gradual migration supported

Documentation

  • SKILL.md - Full skill documentation
  • `examples/in
Read from source at commit 4f3b4a2a472eOBSERVED ยท 2026-10-08
02

Install

Commands as the repository documents them. They are shown, not run.

git clone https://github.com/peterskoett/self-improving-agent.git ~/.openclaw/skills/self-improving-agent
03

Host compatibility

What the documentation claims. We have not run a compatibility test.

HostStatusNotes
claude-codementioned
codexmentioned
copilotmentioned
openclawmentioned
04

What it tells the agent

The instruction file, verbatim from the audited commit โ€” this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: self-improving-agent
description: "Instinct-based continuous learning system. Captures atomic learnings (instincts) with confidence scoring, supports project-scoped vs global scope, and evolves instincts into skills/commands/agents. Use when: (1) A command fails, (2) User corrects you, (3) Discovering patterns, (4) Need to review or evolve learned behaviors. Supports both v1 (markdown-based) and v2 (instinct-based) modes."
metadata:
  version: "2.1"
  origin: "ECC + OpenClaw"
---

# Self-Improving Agent Skill

An advanced learning system that turns Claude Code sessions into reusable knowledge through atomic "instincts" - small learned behaviors with confidence scoring and project scope isolation.

**v2.1** adds **project-scoped instincts** โ€” React patterns stay in your React project, Python conventions stay in your Python project, and universal patterns are shared globally.

## Quick Reference

| Situation | Action |
|-----------|--------|
| Command/operation fails | Log instinct or v1 learning |
| User corrects you | Create instinct with `correction` trigger |
| Discovering patterns | Log instinct with confidence score |
| Review learned behaviors | `/instinct-status` |
| Evolve instincts to skills | `/evolve` |
| Promote project โ†’ global | `/promote` |
| Setup observation hooks | Enable PreToolUse/PostToolUse hooks |

## Two Learning Modes

### Mode 1: Instinct-Based (v2) - RECOMMENDED

Atomic, confidence-weighted behaviors with project isolation:

```yaml
---
id: prefer-functional-style
trigger: "when writing new functions"
confidence: 0.7
domain: "code-style"
scope: project
project_id: "a1b2c3d4e5f6"
---

# Prefer Functional Style

## Action
Use functional patterns over classes when appropriate.

## Evidence
- Observed 5 instances of functional pattern preference
- User corrected class-based approach on 2025-01-15
```

### Mode 2: Markdown-Based (v1) - LEGACY

Traditional learning entries for complex, narrative learnings:

```markdown
## [LRN-YYYYMMDD-XXX] category
**Priority**: high | **Status**: pending | **Area**: backend

### Summary
Detailed description of what was learned

### Details
Full context and explanation
```

Use v2 (instincts) for behavioral patterns, v1 (markdown) for complex incident analysis.

---

## Instinct-Based Learning (v2)

### The Instinct Model

An instinct is a small, atomic learned behavior:

**Properties:**
- **Atomic** โ€” one trigger, one action
- **Confidence-weighted** โ€” 0.3 = tentative, 0.9 = near certain
- **Domain-tagged** โ€” code-style, testing, git, debugging, workflow, security, etc.
- **Evidence-backed** โ€” tracks what observations created it
- **Scope-aware** โ€” `project` (default) or `global`

### Confidence Scoring

| Score | Meaning | Behavior |
|-------|---------|----------|
| 0.3 | Tentative | Suggested but not enforced |
| 0.5 | Moderate | Applied when relevant |
| 0.7 | Strong | Auto-approved for application |
| 0.9 | Near-certain | Core behavior |

**Confidence increases when:**
- Pattern is repeatedly observed
- User doesn't correct the suggested behavior
- Similar instincts from other sources agree

**Confidence decreases when:**
- User explicitly corrects the behavior
- Pattern isn't observed for extended periods
- Contradicting evidence appears

### Scope Decision Guide

| Pattern Type | Scope | Examples |
|-------------|-------|---------|
| Language/framework conventions | **project** | "Use React hooks", "Follow Django REST patterns" |
| File structure preferences | **project** | "Tests in `__tests__`/", "Components in src/components/" |
| Code style | **project** | "Use functional style", "Prefer dataclasses" |
| Security practices | **global** | "Validate user input", "Sanitize SQL" |
| General best practices | **global** | "Write tests first", "Always handle errors" |
| Tool workflow preferences | **global** | "Grep before Edit", "Read before Write" |
| Git practices | **global** | "Conventional commits", "Small focused commits" |

### Project Detection

The system automatically detects your current project:

1. **`CLAUDE_PROJECT_DIR` env var** (highest priority)
2. **`git remote get-url origin`** โ€” hashed to create a portable project ID
3. **`git rev-parse --show-toplevel`** โ€” fallback using repo path
4. **Global fallback** โ€” if no project detected, instincts go to global scope

Each project gets a 12-character hash ID (e.g., `a1b2c3d4e5f6`).

## v2 Commands

| Command | Description |
|---------|-------------|
| `/instinct-status` | Show all instincts (project-scoped + global) with confidence |
| `/evolve` | Cluster related instincts into skills/commands, suggest promotions |
| `/instinct-export` | Export instincts (filterable by scope/domain) |
| `/instinct-import <file>` | Import instincts with scope control |
| `/promote [id]` | Promote project instincts to global scope |
| `/projects` | List all known projects and their instinct counts |

### /instinct-status Example

```
Project: my-react-app (a1b2c3d4e5f6)
โ”œโ”€ prefer-functional-style.yaml (0.7) [project]
โ”œโ”€ use-react-hooks.yaml (0.9) [project]
โ””โ”€ jest-testing-patterns.yaml (0.6) [project]

Global Instincts:
โ”œโ”€ always-validate-input.yaml (0.85) [global]
โ”œโ”€ grep-before-edit.yaml (0.6) [global]
โ””โ”€ conventional-commits.yaml (0.75) [global]
```

### /evolve Workflow

Clusters related instincts and generates:
- **Skills** โ€” domain-specific workflows
- **Commands** โ€” slash commands for common tasks
- **Agents** โ€” specialized sub-agents

```bash
/evolve
# Analyzes instincts and suggests:
# - "Create skill: react-testing-workflow.md"
# - "Create command: /test-component"
# - "Promote prefer-functional-style to global (seen in 3 projects)"
```

### /promote Workflow

Promote project-scoped instincts to global when proven across projects:

```bash
/promote prefer-explicit-errors
# Promotes the instinct from current project to global scope
```

**Auto-promotion criteria:**
- Same instinct ID in 2+ projects
- Average confidence >= 0.8

## File Structure (v2)

```
~/.claude/hom
05

Trust audit

SAFEgrade B ยท trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (1)

MEDIUMObfuscation / stealth ยท obf.base64_blob ยท CWE-506, CWE-94
skills/compdf-conversion-cli/scripts/license.xml:9
<key>k5Ey9KFlkqpj+SDkUw+5ED9lTA3En/qUi0zdrydUCH3kMWTE3Eh65NXnFCaxlY2omY2JHnlEoK7Li7oOEvM7eG5VPdcO/sFlMfoCRdnLYdepJ+uLzYwOWR8W4yQVve/clxVFTVRL4DFleKInGdpAxIbHZT2yi4ADAMENls1N1XSLojRuqXePXDeAT/4Mv4TTx0s

Gates applied: no_behavioural_pass.

Audited 2026-10-08 ยท audit v0.4.1 ยท source sha 4f3b4a2a472efull audit observations/trust-audit/skill/leoyeai__self-improving-agent-ecc.json ยท Report an issue / request a re-scan
06

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-084f3b4a2a472eSAFEB89first audit
07

Questions

What does the Self Improving Agent Ecc skill do?

๐Ÿง  Curated collection of 1209+ best OpenClaw skills โ€” weekly updated by MyClaw.ai

Is Self Improving Agent Ecc safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Self Improving Agent Ecc access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

Which assistants does Self Improving Agent Ecc work with?

Its documentation mentions claude-code, codex, copilot and openclaw. That is what the text claims, not a compatibility test we ran.

How current is this page?

The grade is for one exact copy of the source (4f3b4a2a472e), read on 2026-10-08. The repository is watched, and a new audit runs when it changes โ€” this is the first audit.

Advertisement