agentleFS
topprismdatatopprismdata/cultivating-ml-agent/skills/examples/self-evolving-skills/SKILL.md

self-evolving-skills

Skill5 starsChanged 35 days agoMITView on GitHub

Use when adding new skills to the library, when extracting insights from completed experiments, when consolidating lessons learned, or when running a project retrospective. Triggers after a successful Kaggle competition, after major model breakthrough, or when "we should remember this" comes up.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After successful Kaggle competition

    line 88
  2. Distinctive:

    When "we learned X" emerges repeatedly

    line 91
  3. Distinctive:

    When existing skills cover the lesson

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

agy: "Self-Evolving Skills is mid-high ROI; agents automatically grow from 43+ to 100+."

When to Apply

When to Use

  • After successful Kaggle competition
  • End of major experiment (consolidate learnings)
  • Project retrospective
  • When "we learned X" emerges repeatedly

When NOT to Use

  • One-off observations (not worth a skill)
  • Without Validator (always validate)
  • When existing skills cover the lesson

Notes

  • Always validate first: quality > quantity; bad skills hurt recall
  • Similarity >0.85 = duplicate: reject or revise
  • Description must start with "Use when...": ensures triggering
  • Importance ≥0.7: auto-archive to vault
  • Tags matter: helps recall filtering
  • See also: memory-hierarchy-management (where new skills land)

References

  • Implementation: framework/src/skill_evolution/
  • Inspired by: Voyager (Wang et al. NeurIPS 2023), AIDE auto-skill-gen
  • Quality gating: validator checks template + similarity + length
  • Pairing skill: claudeception (already exists, similar pattern)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.