self-improvement
Skill1 starsChanged 11 days agoMITView on GitHub
Audit and fix project issues via self-improvement loop: detect, diagnose, propose, execute with human approval. Max 3 iterations per session. Do NOT use for one-off edits or active development.
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Run bash scripts/audit-project.sh --json.
- Very specific: line 57
Run bash scripts/audit-project.sh to verify fix (exit 0 = clean)
- Very specific: line 58
Run project's test command (from STACK_CONFIG.md test_cmd — e.g., npm test, pytest, cargo test).
- Distinctive: line 60
Wait for "yes commit"
- Distinctive: line 65
After 3 iterations: STOP. Present summary report
- Distinctive: line 66
If same issue appears in 3 consecutive sessions: escalate (create case study)
- Distinctive: line 70
After a session: when several commits have been made
- Very specific: line 72
At session start: if audit-project.sh has not been run in 7+ days
“Common” is measured: kept by at least 6 in 10 of the 27 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
Self-Improvement Loop
Overview
Closed-loop quality pipeline. The agent audits itself, diagnoses issues, proposes fixes, generates ADRs, and executes — all with human approval at every mutation.
References
PATTERNS.md— Pattern selection guide (created byinit-agents --with-self-improvement)ANTI-PATTERNS.md— Anti-pattern classification (created byinit-agents)- audit-project.sh — Issue detector (universal-audit.sh wrapper, created by
init-agents) - generate-adr.sh — ADR generator (created by
init-agents)
Loop Steps
Step 1: Detect
Run bash scripts/audit-project.sh --json. Collect FAIL results from .failures array (core files only — non-core issues are non-blocking warnings in .warnings).
Step 2: Diagnose
For each FAIL, classify by type (check types are defined in .audit-config.json checks.*):
table— Column mismatch in markdown tablelink— Broken internal linklength— File exceeds configuredmax_file_lengthplaceholder— TODO:/FIXME:/lorem ipsum in content (outside code blocks)
Consult PATTERNS.md to determine which workflow pattern applies. Consult ANTI-PATTERNS.md to identify the anti-pattern being fixed.
Step 3: Propose
Present a DECISION POINT to the user:
Self-improvement loop — Iteration [N/3]:
Issues found: [count]
Proposed fix: [description]
Pattern applied: [PATTERNS.md pattern]
ADR generated: [title]Step 4: Generate ADR (if fix creates a new rule or pattern)
Run bash scripts/generate-adr.sh "Title" "Context" "Decision" "Consequences" "Compliance".
Step 5: Execute
With user approval per mutation:
- Apply the fix
- Run
bash scripts/audit-project.shto verify fix (exit 0 = clean) - Run project's test command (from
STACK_CONFIG.mdtest_cmd— e.g.,npm test,pytest,cargo test). If noSTACK_CONFIG.md, ask user for test command. - Present Commit Manifest
- Wait for "yes commit"
- Commit
Step 6: Loop Guard
- Max 3 iterations per session
- After 3 iterations: STOP. Present summary report
- If same issue appears in 3 consecutive sessions: escalate (create case study)
When to Use
- After a session when several commits have been made
- When user says "run self-improvement loop" or "audit the project"
- At session start if
audit-project.shhas not been run in 7+ days
When NOT to Use
- One-off edits or active development (use feature implementation skills)
- First-time project setup
Output Contract
Self-improvement fixes + ADRs — automated fixes applied to source files, audit-project.sh exiting 0, project tests passing, ADR generated if new rule created, no new warnings introduced, max 3 iterations per session, all mutations human-approved.
Prerequisites: init-agents installs the self-improvement loop by default (use --skip-self-improvement to skip). Creates scripts/audit-project.sh, .audit-config.json, PATTERNS.md, ANTI-PATTERNS.md, and ADRs/ in your project.
Verification
audit-project.shexits 0 before and after each fix- Project test command passes (from
STACK_CONFIG.mdtest_cmd) - ADR generated if new rule was created
- No new warnings introduced (warn count ≤ previous iteration)
Guides
- → See
guides/UNIVERSAL-USAGE.md— How to run the loop in any project - → See
guides/CONFIG-REFERENCE.md— All.audit-config.jsonkeys documented - → See
guides/EXAMPLE-NODE.md— End-to-end walkthrough in a Node.js project - → See
guides/EXAMPLE-PYTHON.md— End-to-end walkthrough in a Python project
Other versions28 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 28
- wanikua/boluobobo-ai-court-tutorial★ 2.7ksame name
- InternLM/WildClawBench★ 530same name
- pskoett/pskoett-ai-skills★ 327same name
- kunwl123456/zeroclaw-skills-collection★ 27same name
- OpenBMB/EC2-Bench★ 19same name
- eraycc/Openclaw-Skills★ 16same name
- bokan/claude-skill-self-improvement★ 12same name
- hua695/MathModeling-Skills-Arsenal★ 12same name
- lanyasheng/self-improving-agent★ 8same name
- ozten/skills★ 7same name
18 more not listed
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.
Used alongsideProjects with it also use skill-vetter, browser-use and 3 more.
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.
LaoK2017Skillskill-vetter
Security review and audit tool for AI agent skills. Use when asked to "vet a skill", "check skill security", "audit a skill", or when reviewing skills before installation to detect malicious code, unauthorized access, and suspicious patterns.
Also in 3 projects that use this
Saik0sSkillbrowser-use
AI-driven browser automation via Model Context Protocol
Also in 3 projects that use this
VercelSkillagent-browser
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Also in 6 projects that use this
VercelSkillfind-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Also in 5 projects that use this
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 3 projects that use this
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- adapt-skillSkill
- api-and-interface-designSkill
- architecture-analysisSkill
- audit-skillSkill
- backend-api-masterySkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- clarify-skillSkill
- cli-toolsSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- critique-skillSkill
- customize-opencodeSkill
- debugging-and-error-recoverySkill
- debugging-three-strikesSkill
- delight-skillSkill
- deprecation-and-migrationSkill
- dev-environment-auditSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- engineering-fundamentalsSkill
- frontend-desktopSkill
- frontend-mobileSkill
- frontend-pwaSkill
- frontend-ui-engineeringSkill
- frontend-webSkill
- fullstack-shippingSkill
- gateSkill
- git-init-and-versioningSkill
- git-workflow-and-versioningSkill
- hard-skillSkill
- idea-refineSkill
- incremental-implementationSkill
- industrial-brutalist-uiSkill
- interview-meSkill
- minimalist-uiSkill
- multi-agent-orchestrationSkill
- observability-and-instrumentationSkill
- optimize-skillSkill
- output-skillSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- polish-skillSkill
- project-health-checkSkill
- project-metricsSkill
- redesign-skillSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- skill-creatorSkill
- skill-improverSkill
- soft-premium-uiSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- typeset-skillSkill
- user-onboardingSkill
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.

