Token导航 LogoToken导航

Agent Skill · 研究检索

self-improving-meta(自我改进元)

self-improving-meta 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

self-improving-meta 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 29,977。

总安装 2,957周安装 122GitHub Stars 公开资料未说明下载 966核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.2.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-improving-meta(自我改进元)
来源仓库:https://github.com/jose-compu/self-improving-meta
安装命令:
openclaw skills install self-improving-meta
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install self-improving-meta

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

改进代理基础架构本身,包括提示文件、技能定义与规则系统的持续优化。适用于更新 AGENTS.md、CLAUDE.md 等核心文档,提升 Agent 的自适应能力。通过 clawhub 安装,需手动审核其对全局配置的修改建议。谨慎使用,因其可能影响其他技能的运行逻辑与行为约束。

self-improving-meta 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install self-improving-meta;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

self-improving-meta 怎么安装?

在终端执行 openclaw skills install self-improving-meta。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

self-improving-meta 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

self-improving-meta 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

self-improving-meta 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

self-improving-meta 用的人多吗?

公开数据是累计安装 2,957 次,近一周安装 122 次,下载 966 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

self-improving-meta 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
self-improving-meta

自我改进元 · 本页

2,957—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
self-improving-meta
description
Improves the agent infrastructure itself — core prompt files (AGENTS.md, SOUL.md, TOOLS.md, CLAUDE.md), skill definitions, hooks, rules, extensions, and memory management. Use when: (1) An agent misinterprets a prompt file instruction, (2) A hook fails or doesn't trigger, (3) A skill is not activating correctly, (4) Rules conflict across files, (5) Context window is bloated by verbose prompt files, (6) Memory entries are stale or degrading quality, (7) A skill template is missing sections or unclear.

Self-Improving Meta Skill

Log infrastructure learnings, meta issues, and feature requests to markdown files for continuous improvement of the agent system itself. Captures prompt drift, rule conflicts, skill gaps, hook failures, context bloat, and instruction ambiguity. Important learnings may be promoted into the files they govern — prompt files, hook code, rule files, skill templates, and memory policies — after explicit human review.

This is the skill that improves skills. Its learnings influence infrastructure that all other skills depend on, so changes should be reviewed conservatively.

First-Use Initialisation

Before logging anything, ensure the .learnings/ directory and files exist in the project or workspace root. If any are missing, create them:

mkdir -p .learnings
[ -f .learnings/LEARNINGS.md ] || printf "# Meta Learnings\
\
Prompt drift, rule conflicts, skill gaps, hook failures, context bloat, and instruction ambiguity.\
\
**Categories**: prompt_drift | rule_conflict | skill_gap | hook_failure | context_bloat | instruction_ambiguity\
**Areas**: agent_config | skill_authoring | hook_scripts | prompt_files | rule_files | memory_management | extension_api\
\
---\
" > .learnings/LEARNINGS.md
[ -f .learnings/META_ISSUES.md ] || printf "# Meta Issues Log\
\
Infrastructure failures: hook crashes, skill activation problems, prompt file errors, memory corruption, extension breakage.\
\
---\
" > .learnings/META_ISSUES.md
[ -f .learnings/FEATURE_REQUESTS.md ] || printf "# Feature Requests\
\
Capabilities needed for agent infrastructure, skill authoring, hook development, and prompt management.\
\
---\
" > .learnings/FEATURE_REQUESTS.md

Never overwrite existing files. This is a no-op if .learnings/ is already initialised.

Do not log secrets, tokens, private keys, or environment variables. Prefer short summaries or redacted excerpts over raw file contents.

Use a manual-first workflow by default. If you want reminders, use the opt-in hook workflow described in Hook Integration.

Safety Boundaries

  • Do not auto-modify core prompt files (AGENTS.md, SOUL.md, TOOLS.md, MEMORY.md) without explicit user approval.
  • Prefer proposing a minimal patch and rationale before applying infrastructure changes.
  • Treat hook output as sensitive; avoid logging raw command output or full transcripts.
  • Keep fixes scoped to the identified issue; avoid broad refactors during incident response.

Quick Reference

SituationAction
Agent misreads AGENTS.md instructionLog to .learnings/LEARNINGS.md with instruction_ambiguity
Hook script fails silentlyLog to .learnings/META_ISSUES.md
Skill doesn't activate when expectedLog to .learnings/META_ISSUES.md
Two rules contradict each otherLog to .learnings/LEARNINGS.md with rule_conflict
Prompt file too verbose, wasting contextLog to .learnings/LEARNINGS.md with context_bloat
Stale memory entry causes wrong behaviorLog to .learnings/LEARNINGS.md with prompt_drift
Skill template missing required sectionLog to .learnings/META_ISSUES.md
New extension capability neededLog to .learnings/FEATURE_REQUESTS.md
Recurring misinterpretation across sessionsLink entries, bump priority, consider promotion
Broadly applicable infrastructure fixPromote directly to the affected file

OpenClaw Setup (Recommended)

OpenClaw is the primary platform for this skill. It uses workspace-based prompt injection with automatic skill loading.

Installation

Via ClawdHub (recommended):

clawdhub install self-improving-meta

Manual:

git clone https://github.com/jose-compu/self-improving-meta.git ~/.openclaw/skills/self-improving-meta

Workspace Structure

OpenClaw injects these files into every session:

~/.openclaw/workspace/
├── AGENTS.md          # Multi-agent workflows, delegation patterns
├── SOUL.md            # Behavioral guidelines, personality, principles
├── TOOLS.md           # Tool capabilities, integration gotchas
├── MEMORY.md          # Long-term memory (main session only)
├── memory/            # Daily memory files
│   └── YYYY-MM-DD.md
└── .learnings/        # This skill's log files
    ├── LEARNINGS.md
    ├── META_ISSUES.md
    └── FEATURE_REQUESTS.md

Create Learning Files

mkdir -p ~/.openclaw/workspace/.learnings

Then create the log files (or copy from assets/):

  • LEARNINGS.md — prompt drift, rule conflicts, skill gaps, context bloat, instruction ambiguity
  • META_ISSUES.md — hook crashes, skill activation failures, prompt file errors, memory corruption
  • FEATURE_REQUESTS.md — infrastructure capabilities, tooling, automation

Promotion Targets

When meta-learnings prove broadly applicable, promote them to the files they govern with explicit user approval:

Learning TypePromote ToExample
Agent behavior correctionsSOUL.md"Be concise" repeated 6 ways → single directive
Workflow/delegation improvementsAGENTS.mdVague "long tasks" → explicit threshold
Tool integration fixesTOOLS.mdMissing timeout guidance → add retry config
Memory management patternsMEMORY.mdStale entries → 30-day rotation policy

Optional: Enable Hook

For automatic reminders at session start:

cp -r hooks/openclaw ~/.openclaw/hooks/self-improving-meta
openclaw hooks enable self-improving-meta

See references/openclaw-integration.md for complete details.


Generic Setup (Other Agents)

For Claude Code, Codex, Copilot, or other agents, create .learnings/ in the project or workspace root:

mkdir -p .learnings

Create the files inline using the headers shown above.

Add reference to agent files

Add to AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md:

Self-Improving Meta Workflow

When agent infrastructure issues are discovered:

  1. Log to .learnings/META_ISSUES.md, LEARNINGS.md, or FEATURE_REQUESTS.md
  2. Review and promote broadly applicable learnings directly to:

- SOUL.md — behavioral corrections - AGENTS.md — workflow and delegation improvements - TOOLS.md — tool integration fixes - MEMORY.md — memory management policies - Rule files — .cursor/rules/, AGENTS.md rules - Hook code — fix the handler directly

Logging Format

Learning Entry [LRN-YYYYMMDD-XXX]

Append to .learnings/LEARNINGS.md:

## [LRN-YYYYMMDD-XXX] category

**Logged**: ISO-8601 timestamp
**Priority**: low | medium | high | critical
**Status**: pending
**Area**: agent_config | skill_authoring | hook_scripts | prompt_files | rule_files | memory_management | extension_api

### Summary
One-line description of the infrastructure insight

### Details
Full context: what prompt file instruction was ambiguous, which rules conflict,
why context is bloated, how memory drifted. Include the relevant file paths and
line numbers. Quote the problematic instruction verbatim.

### Suggested Action
Specific fix: rewrite the instruction, compress the file, consolidate the rules,
update the hook code, prune the memory entries.

### Metadata
- Source: agent_behavior_observation | hook_output_inspection | context_window_analysis | learnings_review | prompt_audit
- Affected Files: AGENTS.md, SOUL.md, etc.
- Tags: tag1, tag2
- See Also: LRN-20250110-001 (if related to existing entry)
- Pattern-Key: rule_conflict.package_manager (optional)
- Recurrence-Count: 1 (optional)
- First-Seen: 2025-01-15 (optional)
- Last-Seen: 2025-01-15 (optional)

---

Categories for learnings:

CategoryUse When
prompt_driftPrompt file content no longer matches actual practices or references deleted files
rule_conflictTwo or more files give contradictory instructions on the same topic
skill_gapNo skill exists for a recurring pattern with enough learnings to extract
hook_failureHook script fails, produces wrong output, or doesn't trigger when expected
context_bloatPrompt file is too verbose, duplicative, or includes stale content wasting tokens
instruction_ambiguityPrompt file instruction is vague, causing inconsistent agent behavior

Meta Issue Entry [META-YYYYMMDD-XXX]

Append to .learnings/META_ISSUES.md:

## [META-YYYYMMDD-XXX] issue_type

**Logged**: ISO-8601 timestamp
**Priority**: high
**Status**: pending
**Area**: agent_config | skill_authoring | hook_scripts | prompt_files | rule_files | memory_management | extension_api

### Summary
Brief description of the infrastructure failure

### Error Output
\`\`\`
Actual error message, hook output, or observed misbehavior
\`\`\`

### Root Cause
What in the infrastructure caused this failure. Include the affected file and section.

### Suggested Fix
How to resolve: update hook code, fix skill frontmatter, correct prompt file, prune memory.

### Metadata
- Source: hook_output_inspection | skill_activation_failure | prompt_injection_error | memory_corruption | extension_api_breakage
- Affected Files: path/to/file
- Reproducible: yes | no | unknown
- See Also: META-20250110-001 (if recurring)

---

Feature Request Entry [FEAT-YYYYMMDD-XXX]

Append to .learnings/FEATURE_REQUESTS.md:

## [FEAT-YYYYMMDD-XXX] capability_name

**Logged**: ISO-8601 timestamp
**Priority**: medium
**Status**: pending
**Area**: agent_config | skill_authoring | hook_scripts | prompt_files | rule_files | memory_management | extension_api

### Requested Capability
What infrastructure tool, automation, or capability is needed

### User Context
Why it's needed, what workflow it improves, what infrastructure problem it solves

### Complexity Estimate
simple | medium | complex

### Suggested Implementation
How this could be built: hook script, skill template, audit script, linting tool

### Metadata
- Frequency: first_time | recurring
- Related Features: existing_tool_or_feature

---

ID Generation

Format: TYPE-YYYYMMDD-XXX

  • TYPE: LRN (learning), META (meta/infrastructure issue), FEAT (feature request)
  • YYYYMMDD: Current date
  • XXX: Sequential number or random 3 chars (e.g., 001, A7B)

Examples: LRN-20250415-001, META-20250415-A3F, FEAT-20250415-002

Resolving Entries

When an issue is fixed, update the entry:

  1. Change **Status**: pending → **Status**: resolved
  2. Add resolution block after Metadata:
### Resolution
- **Resolved**: 2025-01-16T09:00:00Z
- **Fix Applied To**: AGENTS.md / SOUL.md / hook code / skill template
- **Notes**: Rewrote delegation instruction / compressed SOUL.md / fixed hook path

Other status values:

  • in_progress — Actively investigating or fixing
  • wont_fix — Decided not to address (add reason in Resolution notes)
  • promoted — Elevated directly to a prompt file, rule, hook, or configuration
  • promoted_to_skill — Extracted as a reusable meta-skill

Promoting to Project Memory

Meta-learnings are special: they can affect shared infrastructure. When you improve a prompt file, that improvement affects future sessions. When you fix a hook, that fix can propagate to all bootstraps. Use review gates.

When to Promote

  • Same misinterpretation occurs across 2+ sessions
  • Rule conflict is confirmed (not a one-off edge case)
  • Context savings exceed 500 tokens after compression
  • Hook failure affects multiple sessions or agents
  • Skill gap has 3+ related learnings ready for extraction

Promotion Targets

PatternActionTarget
Ambiguous instructionRewrite with explicit criteriaAGENTS.md / SOUL.md / TOOLS.md
Verbose prompt fileCompress and distillThe file itself
Conflicting rulesConsolidate into single authoritative sourcePrimary file; remove from secondary
Hook failure patternUpdate hook code or documentationhandler.ts/js, HOOK.md
Skill gapCreate new skill or update existingNew SKILL.md or existing one
Memory management insightUpdate rotation/pruning policyMEMORY.md

How to Promote

  1. Distill the learning into a concrete fix
  2. Prepare a minimal patch for the affected file
  3. Test in a fresh session to verify the fix works
  4. Apply after approval, then update original entry:

- Change **Status**: pending → **Status**: promoted - Add **Promoted**: AGENTS.md (delegation section rewrite) (or equivalent)

Recurring Pattern Detection

If logging something similar to an existing entry:

  1. Search first: grep -r "keyword" .learnings/
  2. Link entries: Add **See Also**: LRN-20250110-001 in Metadata
  3. Bump priority if issue keeps recurring
  4. Consider systemic fix: Recurring meta issues often indicate:

- Instruction needs rewriting (→ edit the prompt file) - Rule belongs in a different file (→ relocate) - Hook needs hardening (→ add validation/output checks) - Skill template is incomplete (→ update template)

Simplify & Harden Feed

Ingest recurring infrastructure patterns from simplify-and-harden into prompt file fixes and hook improvements.

  1. For each candidate, use pattern_key as the dedupe key.
  2. Search .learnings/LEARNINGS.md for existing entry: grep -n "Pattern-Key: <key>" .learnings/LEARNINGS.md
  3. If found: increment Recurrence-Count, update Last-Seen, add See Also links.
  4. If not found: create new LRN-... entry with Source: simplify-and-harden.

Promotion threshold: Recurrence-Count >= 3, seen in 2+ sessions, within 30-day window.

Meta-specific actions:

  • Verbose prompt file → compress (target: 50% token reduction)
  • Conflicting rules → consolidate to single source of truth
  • Ambiguous instruction → rewrite with concrete examples or thresholds
  • Hook producing wrong output → fix handler code and add test case

Periodic Review

Review .learnings/ at natural breakpoints:

When to Review

  • Before publishing a new skill
  • After modifying any core prompt file (AGENTS.md, SOUL.md, TOOLS.md, MEMORY.md)
  • When adding or removing hooks
  • When agent behavior degrades unexpectedly
  • Monthly audit of all prompt files for staleness and conflicts

Quick Status Check

# Count pending meta issues
grep -h "Status\*\*: pending" .learnings/*.md | wc -l

# List pending high-priority infrastructure issues
grep -B5 "Priority\*\*: high" .learnings/META_ISSUES.md | grep "^## \["

# Find learnings for a specific area
grep -l "Area\*\*: hook_scripts" .learnings/*.md

# Find all rule conflicts
grep -B2 "rule_conflict" .learnings/LEARNINGS.md | grep "^## \["

Review Actions

  • Resolve fixed infrastructure issues
  • Promote recurring patterns to prompt files
  • Link related entries across files
  • Extract skill candidates (3+ related learnings)
  • Prune stale memory entries referenced in learnings

Detection Triggers

Automatically log when you encounter:

Instruction Problems (→ learning with instruction_ambiguity):

  • Agent says "I'm not sure what this instruction means" or paraphrases incorrectly
  • Agent ignores a rule that should apply to the current task
  • Agent asks for clarification on the same topic across multiple sessions
  • Skill frontmatter description doesn't match actual behavior
  • Rule file has no clear trigger condition

Configuration Conflicts (→ learning with rule_conflict):

  • Two prompt files give contradictory guidance on the same topic
  • CLAUDE.md convention conflicts with AGENTS.md workflow step
  • .cursor/rules/ entry contradicts AGENTS.md instruction
  • Skill description conflicts with global behavioral rules

Context Issues (→ learning with context_bloat):

  • Agent loads too much context and truncates important information
  • Prompt file exceeds 200 lines without structured formatting
  • Same information duplicated across 2+ prompt files
  • Historical context that belongs in README or changelog

Memory Problems (→ learning with prompt_drift):

  • Memory entry references deleted files or outdated conventions
  • Daily memory file contains information superseded by newer entries
  • MEMORY.md rotation policy hasn't been applied in 30+ days
  • Agent behavior changed because stale memory overrides current instructions

Hook Failures (→ meta issue):

  • Hook output is empty when it shouldn't be
  • Hook script exits with non-zero code
  • Hook fires on wrong event or doesn't fire at expected event
  • Hook configuration path points to non-existent script

Skill Problems (→ meta issue):

  • Skill doesn't activate despite matching trigger conditions
  • Skill frontmatter is malformed (missing name, description, or YAML errors)
  • Skill template is missing required sections
  • Skill extraction script produces invalid scaffold

Priority Guidelines

PriorityWhen to UseMeta Examples
criticalAgent actively doing wrong thing due to bad prompt fileRule conflict causing harmful output, corrupted memory overriding safety rules
highHook failure affecting multiple sessionsSkill not activating, context bloat degrading performance, silent hook failure for 2+ weeks
mediumInstruction could be clearerMemory needs pruning, template improvement, prompt compression opportunity
lowDocumentation or style consistencyMinor template tweak, naming convention, comment formatting

Area Tags

Use to filter learnings by infrastructure domain:

AreaScope
agent_configAGENTS.md, SOUL.md, TOOLS.md, MEMORY.md, CLAUDE.md, copilot-instructions.md
skill_authoringSKILL.md files, skill templates, skill extraction, naming conventions
hook_scriptsactivator.sh, error-detector.sh, handler.ts/js, hook configuration
prompt_filesAny file injected into agent context (workspace files, rules, instructions)
rule_files.cursor/rules/, AGENTS.md rules, coding standards files
memory_managementMEMORY.md, daily memory files, memory rotation, staleness detection
extension_apiOpenClaw extensions, tool integrations, MCP servers, ClawdHub

Best Practices

  1. Keep prompt files concise — every token counts against context window
  2. One authoritative source per rule — no duplication across files
  3. Test skills in fresh sessions before publishing
  4. Version prompt files — track what changed and when
  5. Audit hooks monthly — silent failures are the worst failures
  6. Prune memory aggressively — stale entries cause drift
  7. Write skill descriptions as trigger conditions, not feature lists
  8. Use structured formats (tables, lists) over prose in prompt files
  9. Quote the problematic instruction verbatim when logging ambiguity
  10. Apply fixes directly — meta-learnings should change the files they describe

Hook Integration

Enable reminders through agent hooks only when needed. This is opt-in.

Conservative Mode (Recommended)

  • Default to no hooks and log manually.
  • If reminders are useful, enable UserPromptSubmit with scripts/activator.sh only.
  • Enable PostToolUse (scripts/error-detector.sh) only in trusted environments when you explicitly want command-output pattern checks.

Quick Setup (Claude Code / Codex)

Create .claude/settings.json in your project:

{
  "hooks": {
    "UserPromptSubmit": [{
      "matcher": "",
      "hooks": [{
        "type": "command",
        "command": "./skills/self-improving-meta/scripts/activator.sh"
      }]
    }]
  }
}

This injects an infrastructure-focused learning evaluation reminder after each prompt (~50-100 tokens overhead).

Advanced Setup (With Error Detection)

{
  "hooks": {
    "UserPromptSubmit": [{
      "matcher": "",
      "hooks": [{
        "type": "command",
        "command": "./skills/self-improving-meta/scripts/activator.sh"
      }]
    }],
    "PostToolUse": [{
      "matcher": "Bash",
      "hooks": [{
        "type": "command",
        "command": "./skills/self-improving-meta/scripts/error-detector.sh"
      }]
    }]
  }
}

Enable PostToolUse only if you want the hook to inspect command output for infrastructure-related error terms (hook, skill, AGENTS.md, frontmatter, truncated, etc.).

Available Hook Scripts

ScriptHook TypePurpose
scripts/activator.shUserPromptSubmitReminds to evaluate infrastructure learnings after tasks
scripts/error-detector.shPostToolUse (Bash)Triggers on infrastructure error terms in command output

See references/hooks-setup.md for detailed configuration and troubleshooting.

Automatic Skill Extraction

When a meta-learning is valuable enough to become a reusable skill, extract it. Meta-skills extracting from meta-learnings is recursive improvement — the system improving itself.

Skill Extraction Criteria

CriterionDescription
RecurringSame infrastructure pattern in 2+ sessions or projects
VerifiedStatus is resolved with working fix tested in fresh session
Non-obviousRequired actual investigation or multiple attempts
Broadly applicableNot specific to one prompt file; useful across agent setups
User-flaggedUser says "save this as a skill" or similar

Extraction Workflow

  1. Identify candidate: Learning meets extraction criteria
  2. Run helper (or create manually):
   ./skills/self-improving-meta/scripts/extract-skill.sh skill-name --dry-run
   ./skills/self-improving-meta/scripts/extract-skill.sh skill-name
  1. Customize SKILL.md: Fill in template with infrastructure-specific content
  2. Update learning: Set status to promoted_to_skill, add Skill-Path
  3. Test in fresh session: Meta-skills require fresh session verification because they modify shared infrastructure
  4. Verify no regressions: Ensure other skills and hooks still work

Extraction Detection Triggers

In conversation: "This keeps happening", "Save this infrastructure fix as a skill", "Every project has this prompt file issue", "This hook pattern should be standard".

In entries: Multiple See Also links, high priority + resolved, rule_conflict or context_bloat with broad applicability, same Pattern-Key across projects.

Meta-Improvement Loop

This skill is unique: its learnings directly modify the infrastructure that all other skills depend on. This creates a feedback loop:

  1. Observe: Agent misinterprets instruction / hook fails / context is bloated
  2. Log: Record the infrastructure issue in .learnings/
  3. Analyze: Identify root cause (ambiguity, conflict, bloat, drift, gap, failure)
  4. Fix: Apply correction directly to the affected file
  5. Propagate: The fix takes effect in all future sessions for all agents
  6. Verify: Confirm the fix works in a fresh session
  7. Learn from the fix: If the fix itself causes issues, log that too (recursive)

When you improve a prompt file, that improvement affects all future sessions. When you fix a hook, that fix propagates to all bootstraps. When you update a skill template, all future skill extractions benefit.

The meta skill is the only skill whose learnings directly modify the infrastructure that all other skills depend on. Handle with care — test before applying.

Multi-Agent Support

AgentActivationDetection
Claude CodeHooks (UserPromptSubmit, PostToolUse)Automatic via error-detector.sh
Codex CLIHooks (same pattern)Automatic via hook scripts
GitHub CopilotManual (.github/copilot-instructions.md)Manual review
OpenClawWorkspace injection + inter-agent messagingVia session tools

Gitignore Options

Keep learnings local (per-developer):

.learnings/

Track learnings in repo (team-wide): Don't add to .gitignore — learnings become shared knowledge.

Hybrid (track templates, ignore entries):

.learnings/*.md
!.learnings/.gitkeep

Stackability Contract (Standalone + Multi-Skill)

This skill is standalone-compatible and stackable with other self-improving skills.

Namespaced Logging (recommended for 2+ skills)

  • Namespace for this skill: .learnings/meta/
  • Keep current standalone behavior if you prefer flat files.
  • Optional shared index for all skills: .learnings/INDEX.md

Required Metadata

Every new entry must include:

**Skill**: meta

Hook Arbitration (when 2+ skills are enabled)

  • Use one dispatcher hook as the single entrypoint.
  • Dispatcher responsibilities: route by matcher, dedupe repeated events, and rate-limit reminders.
  • Suggested defaults: dedupe key = event + matcher + file + 5m_window; max 1 reminder per skill every 5 minutes.

Narrow Matcher Scope (meta)

Only trigger this skill automatically for meta orchestration signals such as:

  • cross-skill conflict|routing ambiguity|policy overlap|dedupe
  • learning loop quality|stackability issue|prompt governance
  • explicit meta intent in user prompt

Cross-Skill Precedence

When guidance conflicts, apply:

  1. security
  2. engineering
  3. coding
  4. ai
  5. user-explicit domain skill
  6. meta as tie-breaker

Ownership Rules

  • This skill writes only to .learnings/meta/ in stackable mode.
  • It may read other skill folders for cross-linking, but should not rewrite their entries.

平台分布

OpenClaw

86.76%
按下载量换算838

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills