auto-skill-evolver
БесплатноБез исполняемых скриптовНе проверенA meta-skill that continuously improves other skills through trace+feedback-driven evolution, with the goal of making skill training, status checking, and…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
Auto Skill Evolver
This skill allows your AI agent to autonomously improve its own skills. It uses an iterative "training" process where the agent practices a task, evaluates the result, and rewrites the skill definition to perform better next time.
⚠️ Security Notice: This skill modifies code/config files on your local machine. It runs the local
openclawCLI and executes arbitrary commands defined by you. Use with caution and review changes before applying them.
Prerequisites
- Python 3.8+ installed.
- OpenClaw CLI installed and configured (
openclawcommand available in PATH, external dependency and not bundled by this skill package). - No external API key required (uses your local OpenClaw agent configuration).
- Strongly recommended to run with human review (
--interactive) unless you are in a trusted CI pipeline.
Usage
1. Self-Training Mode (The "Gym")
Use this mode when you want the agent to practice a specific task repeatedly to perfect a skill.
Command:
python skills/auto-skill-evolver/scripts/train_loop.py \
--skill-path "skills/target-skill/SKILL.md" \
--command "[\"your-agent-command\", \"--task\", \"do the thing\"]" \
--iterations 10 \
--interval 300 \
--trace-file "logs/execution.log" \
--interactive-each-iteration
Parameters:
--skill-path: The path to the skill file you want to improve.--command: The command to run the agent task.- Recommended: pass a JSON array string (e.g.,
["bin","--arg","value"]) for exact argv control. - Security hardening: shell operators like
&&,|,;, redirection are rejected to prevent injection.
- Recommended: pass a JSON array string (e.g.,
--iterations: How many times to practice (default: 10).--interval: Seconds to wait between iterations (e.g., 1800 for 30 mins).--trace-file: The file where your agent writes its execution logs.--interactive-each-iteration: If enabled, each iteration requiresyesor hash approval before apply.
2. In-Process Evolution (Hook Mode)
Use this mode to improve skills during normal usage.
Option A: Command Line Hook
# Step 1: Generate proposal and show full diff in current session
python skills/auto-skill-evolver/scripts/optimize_skill.py \
--skill-path "skills/target-skill/SKILL.md" \
--task-desc "User's request" \
--trace-file "logs/session.log" \
--feedback-file "logs/user_feedback.txt" \
--allowed-sections "Usage,How It Works,Security" \
--interactive
# Step 2: Apply existing proposal later (mobile/remote friendly)
python skills/auto-skill-evolver/scripts/optimize_skill.py \
--skill-path "skills/target-skill/SKILL.md" \
--apply-proposal \
--approval-token yes
# Step 2 (token file mode): avoid exposing token in command args
python skills/auto-skill-evolver/scripts/optimize_skill.py \
--skill-path "skills/target-skill/SKILL.md" \
--apply-proposal \
--approval-token-file "runtime/approval_token.txt" \
--approval-expire-seconds 1800
# Step 3 (session-first): query current proposal status for mobile chat UI
python skills/auto-skill-evolver/scripts/optimize_skill.py \
--skill-path "skills/target-skill/SKILL.md" \
--status \
--output-mode json
# Step 4 (single-action mobile flow): one action param only
python skills/auto-skill-evolver/scripts/optimize_skill.py \
--skill-path "skills/target-skill/SKILL.md" \
--chat-action approve
Option B: Python Integration (Wrapper)
from skills.auto_skill_evolver.scripts.hook_wrapper import trigger_evolution
# After task completion
report = trigger_evolution(
skill_path="skills/target-skill/SKILL.md",
task_desc="Analyze financial data",
trace_file="logs/trace_123.log",
feedback_file="logs/feedback_123.txt",
interactive=True # Ask for yes/hash approval before applying
)
print(report)
3. Version Control & Rollback
Every time the skill is updated, a backup is saved in .skill_versions/ inside the skill's directory.
Restore a previous version:
from skills.auto_skill_evolver.scripts.version_control import restore_version, list_versions
# List available versions
versions = list_versions("skills/target-skill/SKILL.md")
for v in versions:
print(v['filename'], v['meta'])
# Restore
restore_version("skills/target-skill/SKILL.md", versions[1]['path'])
How It Works
- Execute: The agent runs the task using the current skill.
- Evaluate: The execution trace and user feedback are captured.
- Optimize: A local OpenClaw sub-agent is spawned to analyze the trace and optimize the skill file.
- Rewrite: The sub-agent writes updates using atomic replace to avoid partial writes/corruption.
- Report: A changelog is generated (Added/Removed/Impact).
- Proposal-First: Proposal artifacts are stored as
.proposedand.proposed.meta.json. - Approval: Full unified diff is printed in the same session; apply accepts
yesor exact proposal hash. - Deferred Apply: Existing proposal
Установить auto-skill-evolver в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл auto-skill-evolver?
A meta-skill that continuously improves other skills through trace+feedback-driven evolution, with the goal of making skill training, status checking, and approval natural in conversation; optimized for mobile chat routing, it recognizes Chinese/English intents such as 训练技能, 技能迭代, 技能进化, 查看训练状态, train skill, evolve skill, check training status, and approve/apply proposal, then auto-runs propose/status/approve workflows safely.
Как установить скилл auto-skill-evolver?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл auto-skill-evolver запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic