agentleFS
peopleforresterpeopleforrester/claude-dotfiles/skills/learning/evolve/SKILL.md

evolve

Skill3 starsChanged 8 months agoMITView on GitHub

Cluster related instincts into skills, commands, or agents

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use map and loop.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • srpadronoSkill

    map

    Crawls a codebase to discover all user journeys and creates a journey map (journeys.json) with test coverage status. Use when starting UI test coverage work, auditing existing coverage, or exploring a new codebase's user flows.

    Also in 3 projects that use this

  • ww-w-aiSkill

    loop

    Run a prompt or command on a recurring interval. Useful for monitoring, polling, or periodic checks.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use /evolve analyze to see cluster analysis without generating files.

    line 97

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “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

/evolve

Analyze learned instincts and cluster related ones into higher-level constructs: skills, commands, or agents.

Arguments

  • $ARGUMENTS — Optional: domain to evolve, or "analyze" for dry-run

Process

1. Cluster Analysis

Group instincts by domain and identify clusters:

## Cluster Analysis

### Cluster: TypeScript Code Style (5 instincts, avg confidence: 0.7)
- prefer-const-assertions (0.8)
- use-discriminated-unions (0.7)
- branded-types-for-ids (0.6)
- no-enum-use-const (0.7)
- type-imports-separate (0.7)

→ Candidate for: **Skill** (coding reference)

### Cluster: Input Validation (3 instincts, avg confidence: 0.8)
- validate-inputs-with-zod (0.9)
- check-auth-on-endpoints (0.8)
- sanitize-html-output (0.7)

→ Candidate for: **Rule** (always-enforce constraint)

### Cluster: Database Review (4 instincts, avg confidence: 0.6)
- check-n-plus-one (0.7)
- use-indexes-for-where (0.6)
- paginate-list-endpoints (0.5)
- use-transactions (0.6)

→ Candidate for: **Agent prompt enhancement** (add to database-reviewer)

2. Evolution Thresholds

TargetMin InstinctsMin Avg ConfidenceCriteria
Skill3+0.5Related workflow patterns
Rule3+0.7Hard constraints (always/never)
Command3+0.5User-invoked workflow
Agent enhancement4+0.5Domain-specific expertise

3. Generation

For approved clusters, generate the appropriate construct:

Skill generation:

---
name: typescript-style-evolved
description: |
  Evolved from 5 learned instincts about TypeScript coding style.
  Covers const assertions, discriminated unions, branded types.
---
# TypeScript Style Patterns (Learned)
[Content synthesized from instinct evidence]

4. Output Location

Generated constructs are saved to:

~/.claude/evolved/
  skills/typescript-style-evolved/SKILL.md
  rules/input-validation-evolved.md

5. Report

## Evolution Report

| Cluster | Size | Confidence | Evolved To | Status |
|---------|------|-----------|-----------|--------|
| TS Code Style | 5 | 0.7 | Skill | Created |
| Input Validation | 3 | 0.8 | Rule | Created |
| Database Review | 4 | 0.6 | Agent enhancement | Suggested |

### Next Steps
- Review generated files in `~/.claude/evolved/`
- Copy approved files to appropriate directories
- Run `/instinct-status` to see remaining unclustered instincts

Dry Run

Use /evolve analyze to see cluster analysis without generating files.

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.