Skill v1.0.0
currentLLM-judged scan90/100name: agent-skill-library-management description: "Use when centralizing or deploying Claude/Codex skills." version: 1.0.0 created_by: agent
metadata: harness: [hermes]
Agent Skill Library Management
Use when Semyon wants to inventory agent skills, choose a canonical source, simplify their layout, or deploy them to Claude and Codex without losing existing content.
Operating principle
Start with the layout Semyon explicitly names. Do not introduce a fleet taxonomy, deployment generator, metadata schema, separate repository, or extra documentation layer unless he asks for it. A small skills setup should remain small.
For Semyon's dotfiles setup, the intended canonical form is:
~/dotfiles/skills/├── AGENTS.md├── CLAUDE.md└── <skill-name>/└── SKILL.md
Each skill is an ordinary folder under dotfiles/skills; its normal SKILL.md and any existing references/, scripts/, templates/, or assets remain inside that folder.
Required discovery before any move
- Inspect the live runtime roots and dotfiles source trees.
- Classify every discovered skill by actual source and ownership:
- already dotfiles-managed;
- installed runtime copy that can be centralized;
- runtime/system-managed (leave alone unless the user asks to migrate it);
- dangling link / missing source (never invent its content).
- Compare duplicate candidates recursively before choosing one canonical copy. Preserve the existing richer copy if they differ.
- Check Git status, current branch, remotes, and upstream divergence before publishing.
Safe centralization workflow
- Create only
~/dotfiles/skills/plus its two requested root guidance files. - Move/copy each selected existing skill directory wholesale into
skills/<name>/; preserve all supplementary files. - Replace runtime package entries with symlinks to the canonical skill directory.
- Deploy or directly relink live runtime entries only after their targets resolve. Preserve any replaced runtime directories in a timestamped rollback directory outside the active runtime root.
- Validate every expected
SKILL.mdthrough both live runtime roots. - Stage only the canonical-library migration and runtime links. Run
git diff --cached --check, commit, push, then verify the remote SHA equals the PC checkout SHA. - Open
~/dotfiles/skillsin the PC graphical editor for Semyon's manual authoring.
Verification
Verify with real path resolution, not a claim based on the Git diff:
for root in ~/.claude/skills ~/.codex/skills; dofor source in ~/dotfiles/skills/*; dotest -d "$source" || continuename=${source##*/}test -f "$root/$name/SKILL.md"donedone
Report canonical skill count, the live resolution count per runtime, backup location if runtime copies were replaced, pushed commit SHA, and any omitted dangling/missing skills.
Pitfalls
- Do not treat a user request to create a repo as permission to write the skill contents; create only the explicitly requested skeleton when they will author it.
- Do not conflate a skill's portability metadata with model/provider routing. A normal skill should remain ordinary Markdown; runtime/model selection belongs elsewhere.
- Do not bulk-move an installed runtime/system directory such as
.systemwithout an explicit instruction. - Do not silently fix a missing/dangling skill by fabricating a replacement. Preserve/report it as unresolved.
- Avoid repeated structural pivots. When Semyon says the design is "not that deep," cut back to the smallest literal layout rather than explaining a larger architecture.