self-evolving-skills

self-evolving-skills is a skill for Claude Code, Codex from topprismdata/cultivating-ml-agent. It costs 60 tokens per session (833 once invoked), scanned A, original, MIT.

A method for automatically extracting and registering reusable skills from conversations, experiment logs, and completed projects. It includes checks to decide which extracted lessons are worth keeping.

In plain words
What is it for?
Use it after breakthroughs, competitions, experiments, or retrospectives to identify candidate skills and validate them before registration.
Why use it?
It helps a skill library grow from actual work while limiting vague, duplicate, or low-quality additions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after breakthroughs, competitions, experiments, or retrospectives to identify candidate skills and validate them before registration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/topprismdata/cultivating-ml-agent/self-evolving-skills
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add topprismdata/cultivating-ml-agent --skill self-evolving-skills
Clone the repo
git clone --depth 1 https://github.com/topprismdata/cultivating-ml-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self-evolving-skills

README.md
[![agentmods](https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/self-evolving-skills/github.svg)](https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/self-evolving-skills)
Your own site
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/self-evolving-skills"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/self-evolving-skills/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self-evolving-skills

Your own site · 80×15
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/self-evolving-skills"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/self-evolving-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.00833
Opus 5 $0.00030 $0.00417
Sonnet 5 $0.00012 $0.00167
Haiku 4.5 $0.00006 $0.00083

Measured 7d ago against content hash 550162106eb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

self-evolving-skills scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/examples/self-evolving-skills/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Self-Evolving Skills (Voyager-Style)

Context

Static skill libraries grow only when humans add entries. Voyager (Wang et al. NeurIPS 2023) showed agents that auto-extract and register new skills grow 100+ skills without manual work. agy verified this as P1 for ML agents: 43+ skills → 100+ with quality gates.

The core insight: every experiment is a candidate skill; quality gating prevents library pollution.

Guidance

Extract from Text/Conversation

from framework.src.skill_evolution import SkillExtractor

ext = SkillExtractor()
candidates = ext.extract_from_text("""
    We should always check data leakage before training.
    Never use future information in features.
    Make sure to use walk-forward validation for time series.
""")
# → 3 candidates: 1 skill, 1 anti-pattern, 1 principle

Extract from Experiment Log

# 假设实验记录在 EXPERIMENTS.md
candidates = ext.extract_from_experiments_md(experiments_md_content)
# 自动按 importance 排序, top 20 入选

Validate Before Registration

from framework.src.skill_evolution import SkillValidator

val = SkillValidator()
for c in candidates:
    result = val.validate(c, existing_descriptions=existing)
    # verdict: APPROVE / REVISE / REJECT
    # issues: ['Too similar...', 'Missing frontmatter...']
    # similarity_to_existing: 0.0 - 1.0

Register to MCP Library

from framework.src.skill_evolution import SkillRegistry

registry = SkillRegistry(skills_dir="skills/examples")
for c in candidates:
    result = registry.register(c)
    if result.verdict.value == "approve":
        print(f"Registered: {c.name}")
    # 写入 skills/examples/{name}/SKILL.md

Auto-Approve (Production Danger)

# 生产环境慎用 — 应该人工 review
registry.register(candidate, auto_approve=True)

Why This Matters

Without self-evolving:

  • Skills grow slowly (43+ → manual additions)
  • Lessons forgotten after session ends
  • Same mistakes repeated

With self-evolving:

  • 100+ skills in 6 months vs 5
  • Lessons persist with proper templates
  • Quality gates prevent bloat

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 110 lines · 60 tokens per session scan A 550162106eb3

Subscribe to this mod's changes

self-evolving-skills is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 13d ago), licensed MIT. It adds 60 tokens to every session and 833 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories