functional-area-resolver
Was er macht
Dieser Skill beschreibt ein Muster, mit dem sich die Routing-Tabelle verdichten lässt, die ein KI-Agent zur Auswahl seiner Skills nutzt. Er ist für Leute, deren Agenten mit hunderten Skills und großen Routing-Dateien arbeiten.
Wann du ihn nutzt
- ✓Wenn die Routing-Datei deines Agenten so lang ist, dass sie viel Kontext belegt.
- ✓Wenn du viele Skills hast und jeder davon eine eigene Zeile in einer Routing-Tabelle hat.
- ✓Wenn du Skills in Bereiche gruppieren willst, an die der Agent weiterleiten kann.
Link zum Skill
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/functional-area-resolver/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Die RESOLVER-Datei unseres Agenten hat hunderte Zeilen. Kannst du sie zu funktionalen Bereichen gruppieren, damit sie kürzer wird?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent ersetzt viele Zeilen mit einzelnen Skills durch einen Eintrag pro funktionalem Bereich. Jeder Eintrag nennt die Unter-Skills, an die er weiterleiten kann.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Functional-Area Resolver — Pattern for Compressing Routing Tables
Problem
Routing files (RESOLVER.md, AGENTS.md) grow as skills are added. Each skill gets its own row (trigger -> skill path). At ~200+ skills this hits 25-30KB, eating context budget that should go to actual work.
Solution: Functional-Area Dispatchers
Replace N rows per area with one entry per functional area. Each entry
lists all sub-skills it can dispatch to in a (dispatcher for: ...) clause.
Before (270 rows, 25KB)
- Creating/enriching a person or company page -> `enrich`
- Fix broken citations in brain pages -> `citation-fixer`
- Publish/share a brain page as link -> `brain-publish`
- Generate PDF from brain page -> `brain-pdf`
- Read a book through lens of a problem -> `strategic-reading`
- Personalized book analysis -> `book-mirror`
- Brain integrity -> `brain-librarian`
...
After (13 rows, 13KB)
- **Brain & knowledge**: create/enrich/search/export brain pages, filing,
citations, publishing, book analysis, strategic reading, concept synthesis,
archive mining -> `brain-ops` (dispatcher for: enrich, query, brain-pdf,
brain-publish, brain-export, brain-librarian, citation-fixer, book-mirror,
strategic-reading, concept-synthesis, archive-crawler, ...)
Why It Works
The LLM doesn't need one row per sub-skill. It needs:
- Area recognition — "this is about brain pages" -> Brain & Knowledge
- Sub-skill visibility — the
(dispatcher for: ...)list shows what's available - The skill file itself — once the LLM reads
brain-ops/SKILL.md, it has full routing detail
This is a two-layer dispatch: routing file routes to the area, the area skill routes to the specific sub-skill. Each layer does one job well.
A/B Eval Results
Three resolver architectures tested across three Anthropic frontier models (Opus 4.7, Sonnet 4.6, Haiku 4.5) on real production AGENTS.md content, 20 hand-authored training fixtures + 5 held-out blind fixtures, n=3 seeded repeats per (fixture, variant). Two scoring rules: STRICT (predicted slug exactly equals expected) and LENIENT (predicted is in the same dispatcher area as expected). Both matter:
- STRICT measures: "does the LLM return the exact slug?"
- LENIENT measures: "does the LLM land in the right area, even if it picks a
more-specific sub-skill from
(dispatcher for: ...)?" This is closer to production behavior — an agent that lands ingmailfor an email intent succeeds even if the resolver entry saidexecutive-assistant.
Training corpus (n=20, 3 seeds × 3 variants × 3 models, LENIENT)
| Variant | Opus 4.7 | Sonnet 4.6 | Haiku 4.5 | Size |
|---|---|---|---|---|
| baseline (270 bullet rows) | 81.7% ± 7.2% | 86.7% ± 7.2% | 73.3% ± 7.2% | 25KB |
| functional-areas (this pattern) | 98.3% ± 7.2% | 100% ± 0% | 88.3% ± 7.2% | 13KB |
| resolver-of-resolvers (no dispatcher clause) | 63.3% ± 14.3% | 41.7% ± 7.2% | 65.0% ± 12.4% | 10KB |
Held-out blind corpus (n=5, 3 seeds, LENIENT)
| Variant | Opus 4.7 | Sonnet 4.6 | Haiku 4.5 |
|---|---|---|---|
| baseline | 100% ± 0% | 100% ± 0% | 100% ± 0% |
| functional-areas | 100% ± 0% | 100% ± 0% | 100% ± 0% |
| resolver-of-resolvers | 100% ± 0% | 73.3% ± 28.7% | 100% ± 0% |
What the data shows
Functional-areas BEATS baseline on training across all three models (+13 to +17pp) at 48% the size. Held-out is saturated at 100% for both — within margin of error.
The
(dispatcher for: ...)clause is the load-bearing signal. resolver-of-resolvers strips that clause and collapses to 41.7% on Sonnet — the catastrophic failure case the original PR predicted, now observed.The pattern works because the LLM can drill into the dispatcher list. Most "STRICT failures" are the LLM picking a more-specific sub-skill (
gmailinstead ofexecutive-assistant). That's the pattern working as designed. STRICT scoring under-counts; LENIENT scoring reflects production agent behavior.The pattern's value scales with model tier. Compression gain (functional-areas vs baseline, training, LENIENT) is +17pp on Opus, +13pp on Sonnet, +15pp on Haiku. Sonnet shows the cleanest separation between functional-areas and resolver-of-resolvers (100% vs 41.7%) — model capacity affects how much the dispatcher signal matters.
Reproduce
cd evals/functional-area-resolver
node harness.mjs --model opus # ~225 LLM calls, ~$1.70 at Opus pricing
Häufige Fragen
Warum hilft eine kürzere Datei?
Laut Skill frisst eine lange Routing-Datei Kontext, der eigentlich für die eigentliche Arbeit da sein sollte.
Verliert das Routing an Genauigkeit?
Laut Skill zeigte ein Test mit zurückgehaltenen Daten, dass das Dispatcher-Muster besser abschnitt als eine einfache Tabellenverdichtung.
Wie groß muss die Datei sein?
Das Beispiel nennt Dateien von etwa 25 KB mit über 200 Skills als Situation, für die der Ansatz gedacht ist.
Details
Originalbeschreibung des Autors
Compress an agent's routing file (RESOLVER.md or AGENTS.md) by converting granular skill-per-row tables into functional-area dispatchers. Each area lists sub-skills in a "(dispatcher for: ...)" clause. The LLM reads one area entry and routes to the correct sub-skill. Proven via held-out A/B eval: dispatcher pattern outperforms naive pipe-table compression.
repo: garrytan/gbrain
Beliebtheit
- GitHub-Sterne
- 31k
- Platz im Ranking
- #9257
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
gbrain
31kLässt deinen Agenten in einem gemeinsamen Firmenwissens-Gehirn nach Fakten zu Personen, Projekten und Entscheidungen suchen und dauerhafte Notizen darin speichern.
brain-ingest-gate
31kPrüft neue Inhalte gegen ein bestehendes Wissens-Gehirn, bevor sie hinzugefügt werden, um Dubletten zu vermeiden und benannte Entitäten vorab zu klären.
brain-link-discipline
31kSorgt dafür, dass dein Agent jede Gehirn-Seite, über die er berichtet, im selben Beitrag mit einem funktionierenden Link versieht, damit du sie sofort öffnen kannst.
brain-ops
31kGibt deinem Agenten die Grundroutine für ein Wissens-Gehirn: zuerst vorhandenen Kontext prüfen, ausdrückliche Notizen mit Quelle speichern und verwandte Seiten verlinken.
Ähnliche Skills
writing-skills
311kBringt deinem Agenten bei, neue Skills zu schreiben und jeden zuerst zu testen, und zu prüfen, ob der Skill das Verhalten des Agenten tatsächlich verändert.
writing-for-agents
310kErklärt, wie du klare Anweisungen für KI-Agenten schreibst, einschließlich Skills, AGENTS.md- und CLAUDE.md-Dateien, damit sich der Agent berechenbar verhält.
bengali-nlp
280kLässt deinen Agenten bengalischen Text verarbeiten. Er hilft, die Sprache zu verstehen, normalisiert Texte und berücksichtigt ihre Besonderheiten.