agentleFS
danielbrodiedanielbrodie/skill-tree/skills/setup/SKILL.md

setup

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

One-time setup or rebuild of the optional cluster-routing manifest — groups your installed skills into 15-30 semantic clusters with visible router skills + hidden leaves so the prelude carries one router-description per cluster instead of one description per skill. Mostly useful past ~150 installed skills, when the per-description prelude budget overflows. USE WHEN the user explicitly wants cluster routing set up or rebuilt; skip otherwise — the default management surface is `/skill-tree:provision`.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-slack, add-parallel and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 6 projects that use this

  • MicrosoftSkill

    add-parallel

    Also in 5 projects that use this

  • sskarzSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 5 projects that use this

  • +9 more from microsoft

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 171 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the JSON output. This is every skill on disk with its name and description.

    line 13
  2. Distinctive:

    Step 2: Cluster the skills: Read all the descriptions and group them into 15-30 clusters based on semantic similarity — skills that would …

    line 15

“Common” is measured: kept by at least 6 in 10 of the 171 edited versions of this file we could read. “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

This command sets up the skill-tree manifest. You are the clustering algorithm.

Step 1: Scan — collect all skill names and descriptions:

${CLAUDE_PLUGIN_ROOT}/bin/skill-tree scan --format json

Read the JSON output. This is every skill on disk with its name and description.

Step 2: Cluster the skills. Read all the descriptions and group them into 15-30 clusters based on semantic similarity — skills that would co-occur in a real user request belong together.

For each cluster, produce:

  • name: a clear routing signal (2-3 words). Test: could a model read just this name and know whether to enter this cluster? Bad: asc-app-app_id. Good: app-store-connect.
  • description: a USE WHEN decision rule. "USE WHEN: the user asks about X, Y, or Z." Not a member list.
  • leaves: each with a routingHint that distinguishes it from siblings. "Use this when X, not Y."

Skills that don't fit any cluster stay as standalones. That's fine — not everything clusters.

Step 3: Present the proposed clustering before writing. Output a table to the user with cluster names, member counts, and descriptions. Ask for confirmation. Only after confirmation, write the manifest directly to ~/.claude/skills-library/skill-tree/manifest.json using this schema:

{
  "version": "1.0",
  "unclusteredBudget": 25,
  "clusters": {
    "cluster-name": {
      "description": "USE WHEN: ...",
      "crossReferences": [],
      "leaves": {
        "skill-name": { "routingHint": "Use this when ..." }
      }
    }
  },
  "standalones": ["skill-a", "skill-b"],
  "hotPath": [],
  "referenceNodes": [],
  "deprecated": []
}

If a manifest already exists, read it first and preserve hotPath, referenceNodes, deprecated, and any customInstructions on existing clusters. Only change the clustering. Concretely: load the existing manifest, build a name→old-cluster map, and for each leaf in your new proposal, if its old cluster had a customInstructions field or a routing hint you'd weaken, preserve the old version.

skill-tree sync --dry-run in Step 4 is the real preview gate — it shows exactly what routing files would change before any disk writes happen.

Step 4: Sync — generate cluster routing files:

${CLAUDE_PLUGIN_ROOT}/bin/skill-tree sync --dry-run

Show preview. If confirmed:

${CLAUDE_PLUGIN_ROOT}/bin/skill-tree sync

Step 5: Verify:

${CLAUDE_PLUGIN_ROOT}/bin/skill-tree status

Present the final status with token savings.

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.