skills-organize
Engine behind /skills organize: catalog and health report of the skills in a repo, and a dry-run-first reorganize into .claude/skills/<project>/<skill>/. Triggers — "organiza mis skills", "cataloga las skills".
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 3
- Forks
- 3
01 前言 Front Matter
- name
- skills-organize
- description
- Engine behind /skills organize: catalog and health report of the skills in a repo, and a dry-run-first reorganize into .claude/skills/<project>/<skill>/. Triggers — "organiza mis skills", "cataloga las skills".
- user-invocable
- false
- disable-model-invocation
- true
02 资源文件 1
- 参考文档references/layout.md2.8 KB
03 SKILL.md 正文
skills-organize — catalog, health, and repo layout for Agent Skills
Part of the skills-ops module. Two modes over one engine
(scripts/Get-SkillInventory.ps1). Never touches the plugin cache or ~/.claude/skills
— only the project skills inside the target repo. See references/layout.md for the
canonical layout and the lint rules.
Mode 1 — Report (read-only, the default)
Answers "what skills do I have and are they healthy?". Run the engine and summarize.
$inv = & "${CLAUDE_PLUGIN_ROOT}/scripts/Get-SkillInventory.ps1" -Root . -Scope all
Present, grouped by scope (plugin / personal / project):
- Catalog — name, namespace, project, one-line description.
- Health flags (the description is the routing surface, so lint it):
lint.thirdPersonfalse → rewrite from first person ("I can…") to third person.lint.hasTriggersfalse → add concrete trigger terms / "Use when…".lint.hasWhenNotToUsefalse → add a "when NOT to use → see X" clause (the #1 lever against mis-triggering between neighbors).budget.overCaptrue → description over the 1536-char cap; it gets truncated (a silently weakened skill).
- near-duplicates — the
overlapsarray (description keyword Jaccard ≥ 0.5). Each pair needs a disambiguation edit or a merge. Copies of one skill (same name and description) are folded first and counted insummary.collapsedCopies; copies of one name with different descriptions come back askind: divergent-copy(a stale copy). - misplaced / orphaned —
misplaced=truemeans a SKILL.md outside.claude/skills(orplugins/*/skills); candidates for Mode 2.
The
budgetblock is a proxy for Claude Code'sdoctorhealth view (which is a terminal dialog this skill cannot invoke). It estimates per-skill cap pressure, not the exact shortened/dropped set. Say so when reporting.
Scope to just the current repo with -Scope project; add -Json for machine output.
Mode 2 — Reorganize (propose → confirm → move)
Answers "put my scattered skills in order without mixing projects". Only relocates
misplaced project skills into .claude/skills/<project>/<skill>/.
- Dry-run first (always): show the from→to plan, change nothing.
& "${CLAUDE_PLUGIN_ROOT}/scripts/Move-SkillsLayout.ps1" -Root . - Confirm with the user. Print the plan and ask (yes/no). If a skill's inferred
project (its top-level folder) is wrong, pass
-Map @{ 'skill-name' = 'project' }. - Apply (requires a clean git tree — commit/stash first, or
-Force):
Moves each skill's directory with& "${CLAUDE_PLUGIN_ROOT}/scripts/Move-SkillsLayout.ps1" -Root . -Applygit mv(history preserved), then writes.claude/skills/skills-index.json. The script prints the exact revert command. - The moves are staged, not committed — review
git status, then commit through the normal flow (a PR when the work is board-tracked).
Safety rules (enforced):
- Default is dry-run;
-Applyis required to move anything. - Clean git tree required for
-Applyso the printed revert is exact. - Never moves plugin-source skills (
plugins/*/skills/*) or anything outside-Root.
Verification checklist
- Reported the budget block as a proxy, not exact
doctoroutput? - Showed the dry-run plan and got confirmation before
-Apply? - After apply: skills resolve under
.claude/skills/<project>/<skill>/andskills-index.jsonlists them? (git statusshows only renames + the index.)
04 同仓库更多 Skills
tools-catalog
Engine behind /tools: browse the project's referenced external tools (knowledge registry plus toolkit presets) and install one or all missing. Triggers — "instala esta herramienta", "qué herramientas hay para instalar".
tmdl-review
Use when asked whether a Power BI or Fabric TMDL model change is safe to merge: diffs *.tmdl between a PR or two refs and classifies each change BREAKING, WARNING or INFO. Not for writing or editing TMDL/DAX, or for best-practice (BPA) rule checks. Triggers — "revisa el diff TMDL", "¿este cambio rompe el modelo?", "review the TMDL diff", "is this model change safe to merge".
skills-create
Engine behind /skills create and improve: build or raise a skill end to end (prior art, author, pressure test, audit gate, trigger eval). Triggers — "crea una skill", "mejora esta skill".
skills-bootstrap
Engine behind /skills bootstrap: install the missing tools of a profile (quality, or bi = Fabric/Power BI) without duplicating installed ones, keeping each LICENSE. Triggers — "bootstrap skills", "instala el toolkit de BI", "qué me falta del perfil bi".
skills-audit
Engine behind /skills audit: static health audit of skill descriptions plus an on-demand trigger eval; files a sanitized issue to the repo that owns a failing skill, behind a human gate. Triggers — "audita mis skills", "esta skill no dispara", "por qué no se activó la skill".
projects-admin
Use to administer a GitHub Projects (v2) board or its issues: create or configure a board, set fields, add/move/bulk-edit items, fill gaps, or list pending issues and start one. Not for finding untracked TODOs in code (/scan) or cleaning local sessions/disk (/cleanup). Triggers — "qué hay pendiente en el board", "mueve a Done", "add to board", "what's pending on the board", /board.