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
- Distinctive: line 13
Read the JSON output. It has three top-level keys:
- Very specific: line 28
If existing is non-null, treat it as a starting point.
- Distinctive: line 40
Ask the user to confirm or edit the list.
- Very specific: line 62
If invoked from a directory with no project markers (.git, .claude, package.json, pyproject.toml, etc.), provision.py falls back to the …
≈ “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.
Files
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-candidatesRead the JSON output. It has three top-level keys:
project— signals from the project root: detectedlanguages,filesfound, and the first 4KB ofCLAUDE.mdif present.catalog— every skill skill-tree can see, each with aname,description, andorigin. Only entries withorigin: personalcan be provisioned. Entries withorigin: plugin:...ororigin: bundledare managed by their own installer (the plugin marketplace, or Claude Desktop) and--applywill reject them — don't pick those.existing— the project's current.claude/.skilltree.jsonif it already exists, otherwisenull.
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. NOTpp-shopify, NOT generic web tools. - Python CLI tool repo →
tdd,diagnose,improve-codebase-architecture,prototype. Maybecode-craftcluster 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:
| Skill | Reason |
tdd | This is a Python repo with pytest in CLAUDE.md — TDD pattern fits |
diagnose | Repo 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 --showConfirm 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:syncreconciles when you want it. - This is the new default per-project behavior. The legacy global
/skill-tree:setupstill 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.pyfalls back to the current working directory. Run from the actual project root.
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
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.

