optimize-anything
AGENTS.md1 starsChanged 8 days agoMITView on GitHub
Instructions for AI coding agents working in this repository. Do not load or read every skill. This repo has 60+ focused optimizers. Read the chosen skill's SKILL.md and follow it: Domains: web, web/_components/skills (focused libraries), styles, motion, backend, architecture, devops. Claude Code: Cursor / VS Code + Copilot: clone/open the repo; manifests are discovered automatically.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository44 other files it gives its agents.
- architecture-optimizerSkill
- csharp-optimizerSkill
- cpp-optimizerSkill
- c-optimizerSkill
- go-optimizerSkill
- node-service-optimizerSkill
- ruby-optimizerSkill
- rust-optimizerSkill
- docker-optimizerSkill
- kubernetes-optimizerSkill
- terraform-optimizerSkill
- animate-cssSkill
- animejsSkill
- auto-animateSkill
- gsapSkill
- lenisSkill
- magicuiSkill
- motionSkill
- react-moveSkill
- react-springSkill
- react-three-fiberSkill
- theatrejsSkill
- threejsSkill
- optimizer-routerSkill
- bootstrap-optimizerSkill
- pandacss-optimizerSkill
- sass-scss-optimizerSkill
- stylex-optimizerSkill
- tailwindcss-optimizerSkill
- twind-optimizerSkill
- unocss-optimizerSkill
- vanilla-extract-optimizerSkill
- angular-optimizerSkill
- astro-optimizerSkill
- ui-components-optimizerSkill
- nextjsSkill
- node-optimizerSkill
- nuxt-optimizerSkill
- react-optimizerSkill
- remix-optimizerSkill
- solid-optimizerSkill
- svelte-optimizerSkill
- tanstack-start-optimizerSkill
- vue-optimizerSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Do not load or read every skill.
- Distinctive: line 9
If the user named a stack, open that skill directly.
- Very specific: line 10
If the request is ambiguous, read skills/router/SKILL.md.
- Very specific: line 25
Architecture: only when the problem is boundaries/data/distribution.
- Very specific: line 37
Read the chosen skill's SKILL.md and follow it:
- Distinctive: line 51
Do not commit unless the user asks.
- Very specific: line 52
Do not run destructive commands (terraform apply, kubectl apply, docker push, database migrations) without explicit approval.
- Very specific: line 71
Follow CONTRIBUTING.md and .agent/optimizer-skill-builder/SKILL.md.
- Distinctive: line 72
Update the three plugin manifests and root README.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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.
Files
AGENTS.md
Instructions for AI coding agents working in this repository.
Start here
Do not load or read every skill. This repo has 60+ focused optimizers.
- If the user named a stack, open that skill directly.
- If the request is ambiguous, read
skills/router/SKILL.md. - Search the catalog:
python tools/catalog.py search "slow nextjs mui table"
python tools/catalog.py search "postgres connection pool" --limit 5
python tools/catalog.py list --domain backend- Browse
skills/CATALOG.mdonly when search fails.
Select at most 3 skills
- Primary: framework/runtime/language.
- Secondary: component library, styling system, motion/3D or infra that is actually involved.
- Architecture: only when the problem is boundaries/data/distribution.
Examples:
- Slow Next.js + MUI table →
skills/web/nextjs+skills/web/_components/skills/mui. - Vue + Tailwind →
skills/web/vue+skills/styles/tailwindcss. - Rails N+1 →
skills/backend/ruby. - Docker image size →
skills/devops/docker. - Monolith vs services →
skills/architecture.
Workflow for an optimizer
Read the chosen skill's SKILL.md and follow it:
- Scope — detect versions, build, config and the affected route/service.
- Audit — run
<skill>/scripts/audit.py <project-root> [--json], then confirm by reading code. - Report — use
<skill>/assets/report-template.md; findings ranked by impact with evidence. - Plan — quick wins / structural / heavy; stop for approval.
- Fix — only approved items, small groups.
- Verify — build, test and re-measure the same scenario.
Rules:
- Evidence, approval, then edits. Do not rewrite before the report.
- Measure, never guess. Dev mode and a single request are not production evidence.
- Mark findings Confirmed vs Suspected.
- Do not commit unless the user asks.
- Do not run destructive commands (
terraform apply,kubectl apply,docker push, database migrations) without explicit approval.
Repo map
skills/<domain>/<skill>/ SKILL.md, README, LICENSE, references/, scripts/audit.py, assets/
skills/router/ entry point for ambiguous requests
skills/CATALOG.md generated, searchable catalog
skills/catalog.json generated machine-readable catalog
tools/validate.py metadata/files/catalog/link validation
tools/catalog.py catalog generation + search
tools/test_audits.py scanner contract tests
.agent/optimizer-skill-builder/ how to add a skillDomains: web, web/_components/skills (focused libraries), styles, motion, backend, architecture, devops.
Add or change a skill
- Follow
CONTRIBUTING.mdand.agent/optimizer-skill-builder/SKILL.md. - Update the three plugin manifests and root README.
- Run:
python tools/catalog.py
python tools/validate.py
python tools/test_audits.pyInstall
Claude Code:
/plugin marketplace add RuneStone-Tech/optimize-anything
/plugin install optimize-anythingCursor / VS Code + Copilot: clone/open the repo; manifests are discovered automatically.
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.

