Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

functional-area-resolver

Skill by garrytan

Compresses an agent's routing file (RESOLVER.md or AGENTS.md) by grouping skill-per-row tables into functional-area dispatcher entries. Aimed at agent builders whose routing files have grown large.

  • Score 94
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install functional-area-resolver

Built from the published package, never by AI.

git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/functional-area-resolver ~/.claude/skills/functional-area-resolver

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install functional-area-resolver in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill shrinks the routing file an AI agent uses to pick a sub-skill. Instead of one row per skill, it writes one entry per functional area, such as brain and knowledge or email and comms. Each entry lists its sub-skills in a "(dispatcher for: ...)" clause, so the model can read one area entry and route to the right sub-skill. The source reports that a 270-row, 25KB file was reduced to 13 area rows, about 13KB.

The skill includes preconditions and checks. It refuses to compress a file under 12KB or one with uncommitted git changes unless the user passes --force. It keeps always-on gate entries as individual rows and requires routing accuracy checks before committing. The source is aimed at agent builders who maintain large routing files, especially gbrain workspaces.

Written from the project's SKILL.md and checked against it.

What it can do

  • Area compressionReplaces many per-skill rows with one dispatcher entry per functional area.
  • Dispatcher clauseLists sub-skills in a "(dispatcher for: ...)" clause so the model can see options.
  • Size gateRefuses to compress a routing file under 12KB unless forced.
  • Git safety checkRefuses to edit a routing file with uncommitted git changes unless forced.
  • File selectionChooses between skills/RESOLVER.md and a sibling AGENTS.md when both are present.
  • Routing eval gateRuns gbrain routing-eval and reverts if fixture accuracy drops below 95%.
  • LLM A/B verificationRuns a harness that checks an edited routing file against a frontier model.

What you need

  • Git
  • Node.js for the A/B eval harness
  • A gbrain repository checkout for the harness and routing-eval command
  • Access to Anthropic models for the A/B eval

Try asking

  • Compress my resolver, it is too big
  • Slim down my agents.md routing table
  • Run the routing eval after I compress my resolver

Good to know

  • Refuses to compress files under 12KB or with uncommitted changes unless --force is used.
  • The A/B eval results cover only Anthropic models; cross-vendor checks are listed as follow-up work.
  • The held-out test set is small (n=5) and saturated at 100% for most models.
  • A dispatcher-aware prompt is needed; a naive prompt causes compressed routing to break.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/functional-area-resolver/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md17 KB
  • routing-eval.jsonl2 KB

Alternatives to functional-area-resolver

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

functional-area-resolver: common questions

What does the functional-area resolver compress?

It compresses an agent's routing file, RESOLVER.md or AGENTS.md, by turning many skill-per-row entries into one dispatcher entry per functional area.

How does the model find the right sub-skill after compression?

Each area entry lists its sub-skills in a "(dispatcher for: ...)" clause. The model reads the area entry, then the dispatcher skill's own file gives the detailed routing.

What results does the source report?

On a 20-fixture training set, the dispatcher pattern scored 88% to 100% in lenient scoring across three Anthropic models, compared with 73% to 87% for the baseline bullet rows. It uses about 48% of the baseline size.

How do I install functional-area-resolver?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is functional-area-resolver free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is functional-area-resolver safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to functional-area-resolver?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

functional-area-resolver Install

Add to stack

Loading.