Skill Archive
Invocation: Start only when the user explicitly requests this workflow.
Retire a skill without deleting it and without leaving a dangling reference behind. The collection has two trees with the same shape:
skills/<category>/<name>/SKILL.md in use: installed, listed, routed to
skills-archive/<category>/<name>/SKILL.md retired: readable on the dashboard, never installed
Moving a skill across is what retires it. Nothing under skills-archive/ is installed by ask skills install, offered by npx skills add MAHDTech/agent-skills, or listed in the README, agents/AGENTS.md, or skills.sh.json. It stays on the dashboard, marked as archived, so consumers can still read it and fetch it from the repository by hand. A sync after the move removes any local links the skill had.
If a replacement is taking over, create it first with /skill-creator; archive only once the replacement exists.
Pick the disposition first
Four ways a skill leaves the live set:
- Archive - retire but keep it readable (it shipped, it had users, or its history is worth preserving).
git mvintoskills-archive/. The default: shipped skills are never deleted. - Delete - remove it entirely (a never-promoted
in-progress/draft, a mistake, nothing worth keeping).git rmthe directory. Not for anything that ever shipped. - Merge - its value belongs inside another skill. Fold the content into the survivor, redirect references to the survivor, then archive or delete the emptied shell.
- Vendor removal - a skill under
skills/vendor/<vendor>/is never archived. Remove its source entry fromvendor-skills.yamlandgit rm -r skills/vendor/<vendor>(to drop one skill but keep the vendor, add its exact name to that source’sexcludes:andgit rm -r skills/vendor/<vendor>/<skill>); Git keeps the history.
Steps (archive)
-
Move it, keeping the category. The archive mirrors the live tree, so the skill lands under the same category directory it came from:
mkdir -p skills-archive/<category> git mv skills/<category>/<name> skills-archive/<category>/<name>The directory basename is unchanged, so
namestill equals it and lint stays green.Relative links from the moved skill to live skills now resolve inside
skills-archive/; repoint them through the live tree (../../../skills/<category>/<name>/SKILL.md) so the link checker keeps passing. -
Mark it archived in frontmatter. Add a
metadatablock (or extend the existing one) with the archive date and, when there is one, the successor’s name. Both values are strings:metadata: archived: "2026-09-04" replaced-by: "new-skill"archivedis required on every skill underskills-archive/;replaced-byis optional and names a live skill. The dashboard renders its archived banner from these keys, so the body needs no note. Keep the rest of the frontmatter valid:nameanddescriptionmust still pass lint. -
Purge or redirect inbound references. Sweep for the old name in skills and in repository docs, then fix each hit - repoint to the replacement, or remove the mention:
rg -n -w '<name>' skills --glob '*.md' --glob '!skills/vendor/**' --glob '!**/resources/auto/**' rg -n 'skills/<category>/<name>/' docs README.md CONTRIBUTING.md AGENTS.md- Router (
skills/authoring/skill-router/SKILL.md) - remove the retired skill’s entry. If a replacement took over its slot, the replacement’s entry already covers it. - Any other live skill that names it - a
/<name>mention, a relative link, or prose such as “use the<name>skill” - now points at an archived skill. Send it to the replacement or drop it. Skills are self-contained by default, so dropping the sentence is usually right. - Repository docs (audits, plans, ADRs) that link
skills/<category>/<name>/- repoint the link toskills-archive/<category>/<name>/so the link checker passes; leave the historical text as written.
- Router (
-
Regenerate the derived artifacts.
devenv --no-tui shell -- ask skills lint, thendevenv --no-tui shell -- ask skills sync. Sync rebuilds the README,agents/AGENTS.md,skills.sh.json, and the dashboard from the tree, and removes the local links for the archived skill. -
Verify.
git addthe moved skill, the regenerated artifacts, and any repointed docs, then rundevenv --no-tui test. The link checker and dashboard lint fail on any link or page you missed.
Avoiding dangling references
The router and cross-skill /skill-name mentions are the two places a retired name lingers. The grep in step 3 is the sweep; the check is the completion bound below - no live skill may still name the archived one. Archived skills may reference each other and may reference live skills freely, but nothing live points at what you just archived. /skill-audit runs the same sweep across the whole collection if you want to catch strays later.
Restoring
An archived skill comes back the same way it left: git mv skills-archive/<category>/<name> skills/<category>/<name>, delete the archived and replaced-by keys, re-add its router entry, then lint and sync.
Done when
The skill lives under skills-archive/<category>/<name>/, its frontmatter carries metadata.archived (and replaced-by when a successor exists), no live skill (the router included) and no repository doc still points at its old path, devenv --no-tui test passes, and a second sync leaves no further diff.