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

provision

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

Provision the right skills into THIS project's .claude/skills/. Reads project signals (CLAUDE.md, package manifest, languages) and the global catalog, then picks 5-10 skills that fit. USE WHEN the user is in a project root and wants per-project skills instead of the global catalog.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the JSON output. It has three top-level keys:

    line 13
  2. Very specific:

    If existing is non-null, treat it as a starting point.

    line 28
  3. Distinctive:

    Ask the user to confirm or edit the list.

    line 40
  4. Very specific:

    If invoked from a directory with no project markers (.git, .claude, package.json, pyproject.toml, etc.), provision.py falls back to the …

    line 62

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

This command provisions a per-project skill set into the current project. You are the categorizer.

Step 1 — list candidates:

${CLAUDE_PLUGIN_ROOT}/bin/skill-tree provision --list-candidates

Read the JSON output. It has three top-level keys:

  • project — signals from the project root: detected languages, files found, and the first 4KB of CLAUDE.md if present.
  • catalog — every skill skill-tree can see, each with a name, description, and origin. Only entries with origin: personal can be provisioned. Entries with origin: plugin:... or origin: bundled are managed by their own installer (the plugin marketplace, or Claude Desktop) and --apply will reject them — don't pick those.
  • existing — the project's current .claude/.skilltree.json if it already exists, otherwise null.

Step 2 — pick the skills. Choose 5–10 origin: personal skills from catalog that match THIS project's signals. Be opinionated. Examples of good reasoning:

  • iOS Swift project → swiftui-pro, asc-release-flow, asc-xcode-build, asc-metadata-sync. NOT pp-shopify, NOT generic web tools.
  • Python CLI tool repo → tdd, diagnose, improve-codebase-architecture, prototype. Maybe code-craft cluster as a meta-skill.
  • Plain documentation repo → caveman, write-a-skill, maybe nothing else.
  • The user's own ~/Projects/skill-tree (THIS repo) → tdd, diagnose, improve-codebase-architecture, code-craft, write-a-skill, prototype.

Skills you never want in a project that doesn't need them: large suites of unrelated CLI skills (the asc-* set, the pp-* set, etc.). Provision the index/root skill of a suite instead of every leaf — e.g. asc-release-flow instead of all 17 asc-* skills.

If existing is non-null, treat it as a starting point. Preserve skills already provisioned unless they no longer fit. Show the user what's being added/removed/kept.

If the project already has a .claude/skills/ directory with skills in it but no .skilltree.json (hand-curated, not skill-tree-managed), --apply will warn and add its picks alongside the existing skills — it does not replace or remove them. Surface that to the user: after provisioning, .claude/skills/ will hold both the hand-curated skills and skill-tree's, and only the skill-tree subset is tracked in .skilltree.json. /skill-tree:sync only ever touches the tracked subset.

Step 3 — present and confirm. Output a markdown table:

SkillReason
tddThis is a Python repo with pytest in CLAUDE.md — TDD pattern fits
diagnoseRepo has test-failure debugging in its history
......

Ask the user to confirm or edit the list.

Step 4 — apply:

${CLAUDE_PLUGIN_ROOT}/bin/skill-tree provision --apply --skills=tdd,diagnose,improve-codebase-architecture --reason="Python+pytest repo; CLAUDE.md emphasizes red-green-refactor"

The script copies each chosen skill from ~/.claude/skills/<name>/ into <project-root>/.claude/skills/<name>/ and writes the manifest at <project-root>/.claude/.skilltree.json.

Step 5 — verify:

${CLAUDE_PLUGIN_ROOT}/bin/skill-tree provision --show

Confirm the manifest reflects what was applied. Stop.

Notes

  • Copies, not symlinks: this means project-local edits won't fight upstream library changes. Drift is the tradeoff — /skill-tree:sync reconciles when you want it.
  • This is the new default per-project behavior. The legacy global /skill-tree:setup still works for users who want the home-directory cluster mode.
  • If invoked from a directory with no project markers (.git, .claude, package.json, pyproject.toml, etc.), provision.py falls back to the current working directory. Run from the actual project root.

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.