본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM31k · #9257

functional-area-resolver

하는 일

이 스킬은 AI 에이전트가 스킬을 고를 때 쓰는 라우팅 표를 압축하는 패턴을 설명합니다. 스킬이 수백 개이고 라우팅 파일이 커진 에이전트를 관리하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트의 라우팅 파일이 너무 길어서 맥락을 많이 차지할 때.
  • ✓스킬이 많고 각 스킬이 라우팅 표에 자기 행을 가지고 있을 때.
  • ✓스킬을 에이전트가 라우팅할 수 있는 기능 영역으로 묶고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/functional-area-resolver/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 에이전트의 RESOLVER 파일에 행이 수백 개 있습니다. 짧게 만들 수 있도록 기능 영역으로 묶어 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 여러 개의 단일 스킬 행을 기능 영역마다 하나의 항목으로 바꾸고, 각 항목에 디스패치할 수 있는 하위 스킬을 나열합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

왜 짧은 파일이 도움이 되나요?

스킬은 긴 라우팅 파일이 실제 작업에 써야 할 맥락을 잡아먹는다고 말합니다.

라우팅 정확도가 떨어지나요?

스킬은 보류 테스트에서 디스패처 패턴이 단순한 표 압축보다 더 잘 작동했다고 말합니다.

파일은 얼마나 커야 하나요?

예시는 스킬이 200개 이상일 때 약 25KB 크기의 파일을 다룬다고 설명합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
31k
순위
#9257
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬