optimizer-router
Skill1 starsChanged 8 days agoMITView on GitHub
Route an optimization request to the right skill in this repo when the user asks which optimizer or skill to use, is unsure where to start, names several technologies, or describes a symptom without naming a stack (slow app, memory leak, huge bundle, flaky deploy, architecture review). Use this to pick one primary skill plus at most one library/style/infra skill, then hand off to that skill's workflow. Do not use it when the user already named a specific stack or skill.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 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
- 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 skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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
- Distinctive: line 20
If the user named a specific technology, skip the router and use that skill.
- Distinctive: line 30
If the catalog is missing:
- Very specific: line 36
Read skills/CATALOG.md for the full grouped list.
- Very specific: line 64
Architecture: only if the problem is boundaries/data/distribution, not a local performance bug.
- Distinctive: line 75
Do not run three audits blindly.
- Distinctive: line 79
If the main stack is still ambiguous, ask exactly one question:
- Very specific: line 83
Do not ask about every library.
- Very specific: line 87
Read the chosen skill's SKILL.md and follow its workflow.
- Distinctive: line 93
Do not summarize a skill's advice from memory.
≈ “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.
Files
Optimizer Router
The repo has 64+ focused skills. Do not guess from memory and do not read the whole tree. Use the catalog, pick the smallest set, then follow the target skill.
1. Find the signals
From the request and the repo, detect:
- Framework/runtime: React, Next.js, Vue, Nuxt, Angular, Svelte, Solid, Astro, Remix, TanStack Start, Node, or a backend language.
- Library/style: component kit (MUI, Mantine, shadcn, ...), styling system (Tailwind, CSS, Sass, CSS-in-JS), motion/3D.
- Infra: Docker, Kubernetes, Terraform.
- System shape: monolith/modular/microservices/serverless, shared DB, coupling.
- Symptom: slow load, slow interaction, memory, bundle size, database, reliability, cost, migration.
If the user named a specific technology, skip the router and use that skill. The router is only for ambiguity.
2. 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 backendIf the catalog is missing:
python tools/catalog.pyRead skills/CATALOG.md for the full grouped list.
3. Route by domain
| Signal | Primary skill |
| React / Next.js / Remix / TanStack Start | skills/web/react, nextjs, remix, tanstack-start |
| Vue / Nuxt | skills/web/vue, skills/web/nuxt |
| Angular / Svelte / Solid / Astro | skills/web/angular, svelte, solid, astro |
| Node HTTP/API/CLI | skills/web/node |
| Node backend service (SLOs, shutdown, K8s) | skills/backend/node |
| Rust / Go / C / C++ / C# / Ruby | skills/backend/<language> |
| Component library | skills/web/_components/skills/<library> |
| Styling system | skills/styles/<system> |
| Motion / 3D / animation | skills/motion/<library> |
| Docker / Kubernetes / Terraform | skills/devops/<tool> |
| Coupling, boundaries, shared DB, monolith vs services | skills/architecture |
| Generic UI library comparison; no focused skill | skills/web/_components |
Focused libraries live under:
skills/web/_components/skills/ (Aceternity, Base UI, Bulma, coss, Create UI, DaisyUI, Float UI, Flowbite, Franken UI, Headless UI, HeroUI, Mantine, MUI, Park UI, Preline, Radix, ReUI, shadcn, TailGrids, tweakcn, Untitled UI).
Styling systems: bootstrap, pandacss, sass-scss, stylex, tailwindcss, twind, unocss, vanilla-extract.
4. Pick at most 3
- Primary: the framework/runtime/language.
- Secondary: the component library, styling system, motion/3D or infra that is actually involved.
- Architecture: only if the problem is boundaries/data/distribution, not a local performance bug.
Examples:
- “Slow Next.js product page with MUI tables” →
skills/web/nextjs+skills/web/_components/skills/mui. - “Vue app with Tailwind feels sluggish” →
skills/web/vue+skills/styles/tailwindcss. - “Rails endpoint N+1” →
skills/backend/ruby. - “Docker image is 2 GB” →
skills/devops/docker. - “Should we split this monolith?” →
skills/architecture(+ framework skill only if implementation detail matters). - “Billing service shares the orders DB” →
skills/architecture+skills/backend/nodeor the relevant language.
Do not run three audits blindly. Pick the primary constraint; add a second skill only when its layer is part of the problem.
5. Ask one question only if needed
If the main stack is still ambiguous, ask exactly one question:
What is the main app stack: React/Next.js, Vue/Nuxt, Angular, Svelte, Solid, Astro, Remix, TanStack Start, a backend language, or infrastructure?
Do not ask about every library; inspect package.json, manifests, lockfiles and the tree first.
6. Hand off
Read the chosen skill's SKILL.md and follow its workflow. Tell the user:
- which skill(s) you chose,
- why (one line),
- what you will run first (the skill's audit command).
Do not summarize a skill's advice from memory; open the file.
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.

