MCPInstall

self-evolving skill

Meta-cognitive self-learning system - Automated skill evolution based on predictive coding and value-driven mechanisms.

Installs
315
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/jackjin1997/clawforge --skill self-evolving-skill
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads self-evolving skill automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Self-Evolving Skill

元认知自学习系统 - 基于预测编码和价值驱动的Skill自动演化。

功能

  • ResidualPyramid金字塔分解,量化认知缺口 -: 残差 自适应反思触发: 基于残差能量自动判断何时需要学习
  • 经验回放: 缓存已学模式,降低重复触发
  • 价值门控: 只有提升长期价值才接受变异
  • 持久化: 经验自动保存/加载

安装

# 技能已安装到 ~/.openclaw/skills/self-evolving-skill
# 或使用ClawHub
clawhub install self-evolving-skill

架构

self-evolving-skill/
├── core/                      # Python核心
│   ├── residual_pyramid.py     # 残差金字塔(SVD分解)
│   ├── reflection_trigger.py  # 自适应触发器
│   ├── experience_replay.py   # 经验回放缓存
│   ├── skill_engine.py        # 核心引擎+ValueGate
│   ├── storage.py             # 持久化
│   └── mcp_server.py          # MCP服务器
├── src/                       # TypeScript SDK
│   ├── index.ts               # 主入口
│   ├── cli.ts                 # CLI
│   └── mcp-tools.ts           # 工具定义
├── skills/                    # OpenClaw Skill
│   └── self-evolving-skill/    # 技能封装
├── MCP_CONFIG.md              # MCP配置
└── README.md                   # 文档

MCP工具

工具描述参数
skill_create创建Skillname, description
skill_execute执行并学习skill_id, context, success, value
skill_analyze分析嵌入embedding
skill_list列出Skills-
skill_stats系统统计-
skill_save持久化保存skill_id
skill_load加载skill_id

使用方式

CLI

# 列出所有Skill
openclaw skill self-evolving-skill list

# 创建Skill
openclaw skill self-evolving-skill create --name "MySkill"

# 执行
openclaw skill self-evolving-skill execute <id> --success

# 分析
openclaw skill self-evolving-skill analyze --embedding '[0.1,0.2,...]'

# 统计
openclaw skill self-evolving-skill stats

MCP服务器

# 启动MCP服务器
cd ~/.openclaw/skills/self-evolving-skill
./run_mcp.sh

# 或使用适配器
python3 mcporter_adapter.py skill_list '{}'

编程

import { SelfEvolvingSkillEngine } from 'self-evolving-skill';

const engine = new SelfEvolvingSkillEngine();
await engine.init();

const { skillId } = await engine.createSkill({ name: 'Analyzer' });
const stats = await engine.stats();

核心算法

1. 残差金字塔分解

pyramid = ResidualPyramid(max_layers=5, use_pca=True)
decomposition = pyramid.decompose(embedding)

# 输出:
# - residual_ratio: 残差能量比率
# - suggested_abstraction: POLICY / SUB_SKILL / PREDICATE
# - novelty_score: 综合新颖性

2. 三层跃迁规则

覆盖率抽象层级操作
>80%POLICY调整策略权重
40-80%SUB_SKILL生成子Skill
<40%PREDICATE归纳新谓词

3. 自适应阈值

trigger = ReflectionTrigger(
  min_energy_ratio=0.10,     # 初始阈值
  value_gain_threshold=0.20, # 触发阈值
  target_trigger_rate=0.15   # 目标15%触发率
)

文件位置

路径说明
~/.openclaw/skills/self-evolving-skill技能根目录
~/.openclaw/mcp_servers/self-evolving-skill.jsonMCP服务器配置
~/.openclaw/workspace/self-evolving-skill/storage数据存储

相关文档

  • README.md - 完整文档
  • MCP_CONFIG.md - MCP配置说明
  • MEMORY.md - 研究笔记

FAQ

What does the self-evolving skill skill do?

Meta-cognitive self-learning system - Automated skill evolution based on predictive coding and value-driven mechanisms.

How do I install self-evolving skill?

Run npx skills add https://github.com/jackjin1997/clawforge --skill self-evolving-skill in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/self-evolving-skill/ (personal) or .claude/skills/self-evolving-skill/ (project).

Which AI agents can use self-evolving skill?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is self-evolving skill safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains self-evolving skill?

It is published by jackjin1997 in jackjin1997/clawforge. It has 315 recorded installs.

More from jackjin1997/clawforge

View all →

language-learning

jackjin1997/clawforge

AI language tutor for learning ANY language through conversation, vocab drills, grammar lessons, flashcards, and immersive practice. Use when the user wants to: learn a new language, practice vocabulary, study grammar, do flashcard drills, translate phrases, practice conversation, prepare for travel, learn slang/idioms, or improve pronunciation. Supports ALL languages including Spanish, French, German, Japanese, Chinese (Mandarin/Cantonese), Korean, Arabic, Hindi, Bengali/Bangla, Portuguese, Russian, Italian, Turkish, Vietnamese, Thai, Swahili, Hebrew, Polish, Dutch, Greek, and 100+ more.

study-habits

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

363 installs

resume-optimizer

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

80 installs

getajob

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

71 installs

clean-code-zh

jackjin1997/clawforge

遵循 Robert C. Martin 的《代码整洁之道》原则,进行代码审查、重构和编写。涵盖命名、函数、注释和错误处理的最佳实践。

clean-code

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

Popular education & science skills

View category →

teach

mattpocock/skills

Teach the user a new skill or concept, within this workspace.

Education & Science874K installs

scaffold-exercises

mattpocock/skills

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

Education & Science488.2K installs

paper-context-resolver

lllllllama/rigorpilot-skills

Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.

Education & Science478.3K installs

caveman-learn

juliusbrussee/caveman

Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.

Education & Science107.9K installs

gsap-plugins

greensock/gsap-skills

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.

Education & Science67.9K installs

teach-impeccable

pbakaus/impeccable

DEPRECATED: Use /impeccable teach instead. This command has been folded into the impeccable skill.