agentleFS
zfy465914233zfy465914233/scholar-agent/.github/skills/domain-routing/SKILL.md

domain-routing

Skill9 starsChanged 6 months agoMITView on GitHub

Use when deciding where a knowledge card should live in the knowledge tree, choosing a major domain and subdomain, designing routing policy, or diagnosing why a card was routed to the wrong folder. Reads the repository routing guide and policy before deciding.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when you need to decide or review where knowledge cards should be stored.

    line 8
  2. Distinctive:

    Always read these files first:

    line 12
  3. Distinctive:

    Use a subdomain only when it is clearly justified.

    line 27
  4. Distinctive:

    Prefer existing subdomains over creating new ones.

    line 28
  5. Distinctive:

    If the major domain is clear but no subdomain is a strong fit, route to the major-domain root.

    line 29
  6. Very specific:

    Avoid general unless no clearer category is defensible.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Domain Routing Skill

Use this skill when you need to decide or review where knowledge cards should be stored.

Canonical Sources

Always read these files first:

  • src/scholar_agent/schemas/domain_routing_guide.md
  • src/scholar_agent/schemas/domain_routing_policy.json

Goal

Route cards into:

  • knowledge/<major_domain>/<card>.md
  • knowledge/<major_domain>/<subdomain>/<card>.md

Rules

  1. Pick the major domain first.
  2. Use a subdomain only when it is clearly justified.
  3. Prefer existing subdomains over creating new ones.
  4. If the major domain is clear but no subdomain is a strong fit, route to the major-domain root.
  5. Avoid general unless no clearer category is defensible.

Expected Output

Return:

  • chosen major domain
  • chosen subdomain, or an empty string when the card should live at the major-domain root
  • concise reason

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.