Saltar al contenido
Skillpedia
Prompts y LLMs31 mil · #9257

functional-area-resolver

Qué hace

Esta skill explica un patrón para comprimir la tabla de enrutamiento que usa un agente de IA para elegir sus skills. Es para quien mantiene agentes con cientos de skills cuyos archivos de enrutamiento han crecido mucho.

Cuándo usarla

  • ✓Cuando el archivo de enrutamiento de tu agente es tan largo que ocupa mucho contexto.
  • ✓Cuando tienes muchas skills, cada una con su propia fila en una tabla de enrutamiento.
  • ✓Cuando quieres agrupar las skills en áreas a las que el agente pueda enrutar.

Link de la skill

https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/functional-area-resolver/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/functional-area-resolver/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“El archivo RESOLVER de nuestro agente tiene cientos de filas. ¿Puedes agruparlas en áreas funcionales para que sea más corto?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente sustituye muchas filas de una sola skill por una entrada por área funcional, y cada entrada lista las sub-skills a las que puede derivar.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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:

  1. Area recognition — "this is about brain pages" -> Brain & Knowledge
  2. Sub-skill visibility — the (dispatcher for: ...) list shows what's available
  3. 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 in gmail for an email intent succeeds even if the resolver entry said executive-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

  1. 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.

  2. 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.

  3. The pattern works because the LLM can drill into the dispatcher list. Most "STRICT failures" are the LLM picking a more-specific sub-skill (gmail instead of executive-assistant). That's the pattern working as designed. STRICT scoring under-counts; LENIENT scoring reflects production agent behavior.

  4. 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
Preguntas frecuentes

¿Por qué ayuda un archivo más corto?

La skill indica que los archivos de enrutamiento largos consumen contexto que debería ir al trabajo real.

¿Pierde precisión al enrutar?

La skill indica que una prueba con datos no usados en el entrenamiento mostró que el patrón de despachador funcionó mejor que una simple compresión de tabla.

¿Qué tamaño debe tener el archivo?

El ejemplo menciona archivos de unos 25 KB con más de 200 skills como la situación que aborda.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
31 mil
Posición en el ranking
#9257
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas