metaskill

Teaches AI agents how to learn better by enforcing deep correction, transfer learning, and proactive pattern recognition. Use when an error occurs and needs deep analysis (not surface patch), before starting a complex task to check past analogies, or after success to capture winning patterns. NOT for routine file reads or simple one-off commands.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "metaskill" with this command: npx skills add fahrulalwan/metaskill

Metaskill

3 Core Components

  1. Deep Self-Correction (deep-correct.sh) — 3-level breakdown on errors:

    • Surface: What specifically failed
    • Principle: The underlying rule/constraint violated
    • Habit: Concrete behavioral change to prevent recurrence
  2. Transfer Learning (transfer-check.sh) — Before a task, search past learnings for analogous patterns. Maps domains (e.g., "auth" → "security") to prevent siloed learning.

  3. Proactive Pattern Recognition (success-capture.sh) — Log what worked and why, building a repository of successful patterns.

Usage

# When an error occurs
bash skills/metaskill/scripts/deep-correct.sh "description of the error"

# Before starting a complex task
bash skills/metaskill/scripts/transfer-check.sh "description of the new task"

# After successful execution
bash skills/metaskill/scripts/success-capture.sh "what worked" "why it worked"

# Monthly health eval
bash skills/metaskill/scripts/eval.sh --save

Configuration (LLM Provider)

Metaskill uses two provider tiers — fast (extraction) and deep (transfer/eval). Edit config.yaml to match your setup:

# config.yaml
providers:
  fast: anthropic   # change to: openai | ollama | gemini
  deep: anthropic
ProviderEnv VarNotes
anthropicANTHROPIC_API_KEYDefault
openaiOPENAI_API_KEY
ollama(none needed)Local, free
geminiGOOGLE_API_KEY

Ollama example (fully local, no API key):

providers:
  fast: ollama
  deep: ollama
models:
  ollama:
    fast: llama3.2
    deep: llama3.1:70b

If no provider is available, metaskill falls back to manual/heuristic mode (still works, but less precise extraction).

Integration with Self-Improving-Agent

Writes to skills/self-improving-agent/.learnings/ if present, otherwise falls back to its own .learnings/ directory. No extra setup needed.

AGENTS.md Wiring (Mandatory)

Add to pre-task checklist:

  1. Run transfer-check.sh before any major task
  2. Run deep-correct.sh immediately after any error (not just LEARNINGS.md append)
  3. Run success-capture.sh after complex task completes successfully

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

siyuan-llm-wiki

在思源笔记中复现 Karpathy 的 LLM Wiki 工作流。 通过思源 HTTP API 让 AI Agent 维护结构化知识库,支持来源摘要、实体页、概念页、 综合分析和双向链接。利用思源原生 SQL 查询和块级引用实现比 Obsidian 更精细的知识管理。

Registry SourceRecently Updated
Automation

Open-broker

Hyperliquid trading plugin with background position monitoring and custom automations. Execute market orders, limit orders, manage positions, view funding ra...

Registry SourceRecently Updated
2.9K9ya7ya
Automation

MacOS Desktop Control

Generic macOS desktop control using AppleScript for app and window semantics plus screenshot, OCR, mouse, and keyboard workflows.

Registry SourceRecently Updated
Automation

neuropay

Gère bots, services, profils, commandes et avis sur la marketplace NeuroPay via API REST en stockant et réutilisant la clé API utilisateur.

Registry SourceRecently Updated