skills-hierarchy-tuning
Skill8 starsChanged 6 months agoMITView on GitHub
Use when reviewing skill organization, rebalancing domains, adjusting loading triggers, or responding to structural review signals. Triggers on "reorganize skills", "skill hierarchy needs adjustment", "too many skills in domain", "split this skill folder", "domain rebalancing".
In this repository129 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- incident-revert-reviewSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- timeline-trace-investigatorSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- The first 60 shown.
The file
Files
Skills Hierarchy Tuning
When to Invoke
| Trigger | Action |
| "skills audit" | Full hierarchy review |
| "domain too big" | Domain has >8 skills |
| "can't find skill for X" | Discovery failing |
| "wrong skill loaded" | Trigger mismatch |
| "skills not firing" | Module loading issues |
Step 1: Gather Current State
# Count skills per domain
for domain in */; do
[ -d "$domain" ] && [ "$domain" != "_shared/" ] && [ "$domain" != "_archive/" ] && \
echo "$domain: $(find "$domain" -name "skill.md" | wc -l | tr -d ' ') skills"
done
# Identify oversized skills
find . -name "skill.md" -exec wc -l {} \; | sort -rn | head -20Step 2: Check Review Triggers
| Category | Signal | Threshold |
| Structural | Domain >8 skills | Any domain |
| Structural | Orphan skills | >2 orphans |
| Operational | "File not found" errors | >3 in 1 week |
| Operational | Wrong skill loaded | >2 occurrences |
| Loading | Module path errors | >3 in 1 week |
Step 3: Diagnose & Fix
| Problem | Symptoms | Solution |
| Domain too large | >8 skills, hard to find | Split into sub-domains |
| Skill too large | >250 lines, AI misses rules | Extract to references/ directory |
| Module not loading | Trigger doesn't fire | Make triggers more explicit with action words |
| Shared module conflicts | Two skills need variations | Use skill-specific sections in shared module |
Step 4: Execute
Moving skills: mv old-domain/skill/ new-domain/skill/ → re-run your install/deploy mechanism → update cross-references
Creating domains: mkdir new-domain → move skills → your install auto-discovers
Extracting references: Move sections >50 lines to references/*.md, add pointer in core skill
After changes: Re-run install, update any documentation that lists skills or counts, commit and push.
Key Metrics
| Metric | Target |
| Core skill.md | ≤250 lines |
| Reference files | ≤150 lines each |
| Critical rules | First 30 lines |
| Domains | 3-8 skills each |
Failure Modes
| Mode | Symptom | Recovery |
| Misconfigure triggers | Wrong skill fires | Test anti_triggers after changes |
| Breaking existing triggers | Changing hierarchy orphans trigger routes | Audit all trigger strings before and after a move |
| Circular dependencies | Skill A → B → A reference loops | Draw the dependency graph before restructuring |
| Missing parent skills | Child skills added without updating orchestrator | Check all escalates_to / enables references after a move |
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.

