self-evolve
Skill119 starsChanged 6 months agoMITView on GitHub
The single config quality skill. Two modes: (1) Default — review/wire pending self-improvement proposals. (2) Audit — analyzes skills, rules, CLAUDE.md, project refs, hooks, and agents against the actual codebase to find inaccuracies, trigger overlaps, stale references, and weak rules, then fixes them. Trigger on 'self-evolve', 'evolve', 'config health check', 'audit config', 'check claude setup', 'apply this rule', 'reorganize rules', 'ok' (when proposals are pending). NOT for improving individual skills (use skill-creator), diagnosing code bugs (use diagnose), or fixing broken code (use fix).
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Echo-Scion/orioncortextheir own version, first seen Nov 8, 2026
- TerryFYL/ai-research-armytheir own version, first seen Nov 8, 2026
- pillumina/ascend-sleuththeir own version, first seen Nov 2, 2026
- Echo-Scion/portable-brainvibingtheir own version, first seen Oct 15, 2026
- DaizeDong/self-evolvetheir own version, first seen Oct 9, 2026
- grdwng/claude-code-metatheir own version, first seen Oct 9, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- DaizeDong/self-evolve★ 26same name
- TerryFYL/ai-research-army★ 9same name
- pillumina/ascend-sleuth★ 5same name
- Echo-Scion/orioncortex★ 2same name
- Echo-Scion/portable-brainvibing★ 2same name
- grdwng/claude-code-meta★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- askSkill
- cookSkill
- create-docSkill
- diagnoseSkill
- discussSkill
- docs-seekerSkill
- fixSkill
- frontend-designSkill
- give-planSkill
- media-processorSkill
- optimus-primeSkill
- prime-syncSkill
- review-codeSkill
- skill-creatorSkill
- testSkill
- backend-fastapi-pythonSkill
- dockerSkill
- frontend-developmentSkill
- humanizerSkill
- monorepoSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 9 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
When scope is (none), or when pending proposals exist and user says "ok":
- Distinctive: line 25
After user finishes reviewing visible proposals, batch-reject the filtered ones:
- Distinctive: line 46
Read all files in the target location.
- Distinctive: line 51
If distinct: add under the most relevant section header
- Distinctive: line 57
Trim while merging: When adding to an existing rule file, read what's already there.
- Distinctive: line 58
Watch for accumulation: If 3+ proposals have landed in the same file or section, that's a restructuring signal — the section may need …
- Distinctive: line 60
Re-read with fresh eyes: After merging, re-read the entire section (not just your addition).
- Very specific: line 78
When invoked for rule reorganization (not proposals): read all .claude/rules/, identify duplicates/misplaced rules, propose consolidation …
- Very specific: line 84
When scope is full, skills, rules, claude-md, or quick.
- Very specific: line 88
Read package.json, pyproject.toml, go.mod, or equivalent — know the stack
- Distinctive: line 90
Read CLAUDE.md — know what config claims about the project
- Very specific: line 91
Read .claude/settings.json — know what hooks are configured
- Very specific: line 92
If .claude/hooks/self-improve/ exists, check for pending proposals: python3 .claude/hooks/self-improve/self_improve_db.py resolve list
- Very specific: line 96
Read references/quality-dimensions.md for mechanical check scripts, staleness signals, and conflict resolution rules.
- Distinctive: line 103
Don't fix: workflow skill descriptions (report for skill-creator), substantial completeness gaps (report as recommendation), things that …
- Very specific: line 111
Use the report template in references/audit-guide.md § Report Template.
- Distinctive: line 117
Don't bloat: If a fix requires 50+ new lines, report as recommendation.
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
ultrathink.
Wire Mode: Apply Self-Improvement Proposals
When scope is (none), or when pending proposals exist and user says "ok":
Fetching proposals:
python3 .claude/hooks/self-improve/self_improve_db.py resolve listStep 0: Consolidate before showing
User attention is finite — showing 12 proposals when 4 are duplicates, 3 already exist in rules, and 2 are noise wastes their focus on what matters. Before presenting anything, read the existing config (.claude/rules/, CLAUDE.md, CLAUDE.local.md, active skills) to understand what's already there. Then filter: proposals already covered by existing rules, duplicates of each other, and low-value noise that wouldn't improve agent behavior. Merge proposals addressing the same pattern into one entry with the clearest rationale.
Tell the user what you filtered: "Showing X of Y proposals (Z filtered)."
After user finishes reviewing visible proposals, batch-reject the filtered ones:
python3 .claude/hooks/self-improve/self_improve_db.py resolve <id1>,<id2>,... rejectedFor each shown proposal, ask the user to approve or reject.
Step 1: Classify — where does it belong?
| Test | Question | If Yes |
| Rule test | "Will an agent still produce incorrect code without this, even with the skill active?" | → Rule (.claude/rules/) |
| Skill test | "Is this a repeatable process/workflow, not a constraint?" | → Skill — rare |
| On-demand ref | "Is this project-specific architecture/context, not a behavioral rule?" | → Reference file pointed from CLAUDE.md |
| Personal pref | "Is this specific to this user, not team-shared?" | → CLAUDE.local.md (gitignored) |
| Default | None clearly match? | → Rule (safest default) |
~80% of proposals become rules — the pipeline detects behavioral corrections, and corrections are rules by definition.
Step 2: Read existing content, check for overlap
Read all files in the target location. Scan for semantic overlap — does an existing rule/section already cover this?
Step 3: Place — merge or add
- If overlap exists: merge into existing entry — expand/refine/strengthen, don't create near-duplicates
- If distinct: add under the most relevant section header
Writing quality — proposals describe specific incidents, but rules must work for the general case:
- Generalize from the incident. The proposal says "Claude changed the pass dot when user meant N/A dot." The rule should address the class: "When multiple UI elements match an ambiguous reference, confirm which one before changing any." Don't encode the specific incident — encode the pattern.
- Ground in reasoning, not commands. "ALWAYS confirm ambiguous references" is brittle — the agent doesn't know when it applies. "Because acting on the wrong target wastes a correction cycle, confirm which element when multiple candidates match" gives the agent judgment for edge cases.
- Trim while merging. When adding to an existing rule file, read what's already there. If existing entries are redundant with the new content or with each other, consolidate. The goal after merging is a tighter file, not a longer one.
- Watch for accumulation. If 3+ proposals have landed in the same file or section, that's a restructuring signal — the section may need splitting, or the underlying skill needs fixing instead of piling on more rules.
- Think from the agent's perspective. Before finalizing, ask: "If I were an agent reading this rule for the first time with no context about the incident, would I understand when and why to apply it?" If the answer requires knowledge of the original proposal, rewrite.
- Re-read with fresh eyes. After merging, re-read the entire section (not just your addition). Does the new content flow with the existing entries, or does it feel bolted on? Revise for coherence.
Step 4: Verify — smoke test
Use the proposal's rationale to construct a minimal replay prompt that would trigger the same mistake. Spawn a subagent with the new rule, give it the prompt, check if it avoids the failure. If it fails, revise once. If still fails, flag to user. Keep this fast — one prompt, one check.
Step 5: Resolve
python3 .claude/hooks/self-improve/self_improve_db.py resolve <id>[,<id>,...] approved # or rejectedStep 6: Confirm
Tell the user: what was placed, where (file + section), why that location, and whether verification passed.
Manual reorganization
When invoked for rule reorganization (not proposals): read all .claude/rules/, identify duplicates/misplaced rules, propose consolidation plan, apply on approval.
Audit Mode: Proactive Config Analysis
When scope is full, skills, rules, claude-md, or quick. Also when (none) and no pending proposals found.
Phase 1: Understand the Project
- Read
package.json,pyproject.toml,go.mod, or equivalent — know the stack - Scan top-level directory structure — know the architecture
- Read CLAUDE.md — know what config claims about the project
- Read
.claude/settings.json— know what hooks are configured - If
.claude/hooks/self-improve/exists, check for pending proposals:python3 .claude/hooks/self-improve/self_improve_db.py resolve list
Phase 2: Analyze
Read references/quality-dimensions.md for mechanical check scripts, staleness signals, and conflict resolution rules. Then run per-component analysis — see references/audit-guide.md for the full checklist covering skills, rules, CLAUDE.md, CLAUDE.local.md, and hooks.
Phase 3: Fix
Severity: CRITICAL (wrong code/skill, broken refs) → fix. MODERATE (suboptimal output) → fix if easy. LOW (style) → report only.
Fix: broken refs, inaccurate facts, trigger overlaps, weak/stale rules, redundant cross-layer content, broken hooks, orphaned project refs. Don't fix: workflow skill descriptions (report for skill-creator), substantial completeness gaps (report as recommendation), things that work.
Phase 4: Verify
For each fix: re-read, re-run the specific check, confirm it passes. Check no new broken refs introduced.
Phase 5: Report
Use the report template in references/audit-guide.md § Report Template. Health verdicts: HEALTHY (0 CRITICAL, ≤2 MODERATE) | NEEDS ATTENTION (unfixed MODERATE or 1 CRITICAL) | CRITICAL ISSUES (2+ CRITICAL).
Constraints
- Stay in your lane. Config quality + proposals only. Not for creating skills, priming projects, or fixing code bugs.
- Fix what's broken, not what's working. Respect knowledge layers: skills teach, rules guard, refs provide context.
- Don't bloat. If a fix requires 50+ new lines, report as recommendation.
- Don't weaken when merging. Combined version must be at least as strong as the original.
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
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.

