🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Metaclaw

by @donmeusi

Generischer Skill für Memory-Management, Hybrid Retrieval und Skill Evolution mit PluginEval Integration

Versionv1.0.0
💡 Examples

CLI Interface

# Hybrid Retrieval (default: 0.6 semantic + 0.4 keyword)
python3 scripts/memory-vector-wrapper.py "query" --mode hybrid

Semantic Search

python3 scripts/memory-vector-wrapper.py "query" --mode semantic

Keyword Search (FTS)

python3 scripts/memory-vector-wrapper.py "query" --mode keyword

Memory Extraction

python3 scripts/memory-extract.py [--date YYYY-MM-DD] [--dry-run]

Session Counter

./scripts/session-counter.sh --increment ./scripts/session-counter.sh --check # exit 0 = consolidation ready

PluginEval Quality Check

python3 scripts/skill-eval.py --layer1 skills/metaclaw/

Auto-Fix (mit --allow-write zum Schreiben)

python3 scripts/skill-eval.py --auto-fix --allow-write skills/metaclaw/

Output

#### Memory Vector Search (JSON)

{
  "id": "memory/2026-04-01.md",
  "path": "/Users/donmeusi/.openclaw/workspace/memory/2026-04-01.md",
  "snippet": "Extrahierter Inhalt...",
  "date": "2026-04-01",
  "type": "daily",
  "tags": [],
  "score": 0.0,
  "relevance": 0.0,
  "method": "hybrid",
  "combined_score": 0.0
}

#### Memory Extraction (JSON)

{
  "extracted": "2026-04-01",
  "type": "project_state",
  "confidence": 0.85,
  "items": [
    {
      "category": "Project",
      "content": "MetaClaw Integration Phase 1",
      "type": "update",
      "source": "session"
    }
  ],
  "preferences": [],
  "project_state": []
}

#### Session Counter

$ ./scripts/session-counter.sh --check

exit 0: consolidation ready

exit 1: not ready yet


⚙️ Configuration

memory/config.yaml

# Hybrid Retrieval Settings
retrieval:
  default_mode: "hybrid"  # semantic, keyword, fts, hybrid
  semantic_weight: 0.6    # 0.6 semantic + 0.4 keyword/fts
  default_limit: 5

Consolidation Settings

consolidation: interval_sessions: 10 # alle N Sessions min_interval_hours: 6 # min 6h zwischen Consolidations max_memory_lines: 200 # Maximum Zeilen in MEMORY.md

Logging

logging: level: "INFO" # DEBUG, INFO, WARNING, ERROR file: "~/.openclaw/workspace/memory/.log"


📋 Tips & Best Practices

Problem: "Dependencies nicht verfügbar"

Lösung:

source .venv-metaclaw/bin/activate
pip install lancedb sentence-transformers numpy

Problem: "Tabelle nicht gefunden"

Lösung:

python3 skills/metaclaw/scripts/memory_vector_init.py

Problem: Session-Counter füllt sich nicht auf

Lösung:

./scripts/session-counter.sh --status

Prüfe ob --increment in Heartbeat aufgerufen wird


View on ClawHub
TERMINAL
clawhub install metaclaw

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →