AGENT SKILL

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

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.thirdPerson false → rewrite from first person ("I can…") to third person.
    • lint.hasTriggers false → add concrete trigger terms / "Use when…".
    • lint.hasWhenNotToUse false → add a "when NOT to use → see X" clause (the #1 lever against mis-triggering between neighbors).
    • budget.overCap true → description over the 1536-char cap; it gets truncated (a silently weakened skill).
  • near-duplicates — the overlaps array (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 in summary.collapsedCopies; copies of one name with different descriptions come back as kind: divergent-copy (a stale copy).
  • misplaced / orphaned — misplaced=true means a SKILL.md outside .claude/skills (or plugins/*/skills); candidates for Mode 2.

The budget block is a proxy for Claude Code's doctor health 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>/.

  1. Dry-run first (always): show the from→to plan, change nothing.
    & "${CLAUDE_PLUGIN_ROOT}/scripts/Move-SkillsLayout.ps1" -Root .
    
  2. 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' }.
  3. Apply (requires a clean git tree — commit/stash first, or -Force):
    & "${CLAUDE_PLUGIN_ROOT}/scripts/Move-SkillsLayout.ps1" -Root . -Apply
    
    Moves each skill's directory with git mv (history preserved), then writes .claude/skills/skills-index.json. The script prints the exact revert command.
  4. 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; -Apply is required to move anything.
  • Clean git tree required for -Apply so 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 doctor output?
  • Showed the dry-run plan and got confirmation before -Apply?
  • After apply: skills resolve under .claude/skills/<project>/<skill>/ and skills-index.json lists them? (git status shows only renames + the index.)

04 同仓库更多 Skills

CSalcedoDataBI
CSalcedoDataBI/agentic-board

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".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

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".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

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".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

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".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

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".

★ 3
CSalcedoDataBI
CSalcedoDataBI/agentic-board

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.

★ 3