Skip to content
Back to skills

Decisions

ASecurity

Add `uninstall`, a new skill: run manually, before actually uninstalling the `kms` plugin (Claude Code has no uninstall/disable lifecycle hook — see `docs/facts/0007-claude-code-plugin-uninstall-lifecycle.md` — so this can never be automatic). It finds every trace `bootstrap` (or `steward`'s ongoing sync) could have left in the target project:

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 19, 2026
ai-agentsgorails

Works with

  • claude code

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add vivantel/kms --skill decisions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Decisions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Decisions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vivantel-decisions-5b599111/badge)](https://www.skillsdirectory.com/skills/vivantel-decisions-5b599111)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: 0030-uninstall-skill
title: Add uninstall — a manual pre-uninstall step that reverses everything bootstrap adds
status: active
date: 2026-08-30
tags: [kms, knowledge-management, packaging]
---

## Decision

Add `uninstall`, a new skill: run manually, before actually uninstalling
the `kms` plugin (Claude Code has no uninstall/disable lifecycle hook —
see `docs/facts/0007-claude-code-plugin-uninstall-lifecycle.md` — so
this can never be automatic). It finds every trace `bootstrap` (or
`steward`'s ongoing sync) could have left in the target project:

- `kms-seeded: true` files (seeded guardrails, or any future template
  type, per `docs/decisions/0028-generalize-templates-sync-scope.md`)
- `kms-generated: true` files (`docs/skills/{product,process}-track-roles.md`,
  `docs/facts/docs-manifest.md`, per `docs/decisions/0029-bootstrap-full-traceability.md`)
- the `<!-- kms:start -->`/`<!-- kms:end -->` block in the project's
  `AGENTS.md`/`CLAUDE.md`
- any decision/fact still at `status: draft`/`governed-by: TBD` —
  a `bootstrap` proposal nobody ever acted on

It reports every finding first (nothing hidden in per-file prompts),
then asks per file: detach (strip the marker, keep the content as the
team's own) or remove. Both need the same confirmation — the standard
propose-and-wait every skill in this plugin already uses, no extra step
for removal specifically.

**Never touched**: any decision/fact past `status: draft`, any guardrail
without a `kms-seeded`/`kms-generated` marker, any custom guardrail/fact/
decision the team authored themselves — regardless of topic or
resemblance to something `kms` seeded. `plugins/kms/hooks/hooks.json` is
explicitly out of scope: it lives in the plugin's own installed
directory, not the target project's repo, and Claude Code removes it
automatically when the plugin itself is uninstalled.

## Why

A team stopping use of `kms` is left with seeded guardrails, generated
role lists and doc-manifest, an AGENTS.md section, and possibly
still-draft stubs — none of which `kms` can reverse itself, since
plugins can't act after they're uninstalled and Claude Code has no
uninstall hook to act *during* removal. The only window where cleanup
is possible at all is before uninstalling, while `kms`'s skills are
still invocable — so this has to be a skill the team runs deliberately,
not something that happens for them.

Scoping strictly to marked/traceable content (never anything without a
`kms-seeded`/`kms-generated` marker, never a decision/fact the team
acted on) is the same discipline `roadmap`'s duplicate-check and
`steward`'s sync logic already apply: `kms` never touches content it
can't prove is its own.

## Tradeoffs considered

- **Fold into `steward`**: `steward` already has sync logic (check 14) to
  build on, but bundling a rare, deliberate, potentially-destructive
  pre-uninstall action into a skill that runs routinely after every
  session risks it firing unprompted or getting lost among steward's
  eleven other checks. Rejected — matches this plugin's established
  pattern of splitting skills by *when* they run
  (`docs/decisions/0009-bootstrap-and-steward-skills.md`,
  `docs/decisions/0016-lint-skill.md`).
- **Automatic, hook-triggered cleanup**: not possible — per
  `docs/facts/0007-claude-code-plugin-uninstall-lifecycle.md`, no
  uninstall/disable lifecycle event exists in Claude Code's plugin
  system, and a plugin can't act on a project after it's been
  uninstalled. Not a design choice, a hard platform constraint.
- **Same confirmation level for detach and remove**: a stronger,
  separate confirmation for remove specifically was considered, but
  both already require explicit per-file confirmation before writing or
  deleting anything — matching every other skill in this plugin.
  Rejected as unneeded extra friction.
- **Chosen: a new, separate, manual pre-uninstall skill, scoped strictly
  to marked/traceable content.**

## Amendment 2026-11-15 (draft, per 0078)

Category 4 ("still-`status: draft` decisions") exempts a draft carrying `expires-when`, which is an open question. See `0078-open-questions-are-draft-decisions`. The `## Decision` text above is unchanged.

Files in this skill

  • 0001-knowledge-artifact-storage-convention.md1.9 KB
  • 0002-commit-pr-attribution-skill-design.md2.2 KB
  • 0003-commit-trailer-traceability.md2 KB
  • 0004-conventional-commits-adoption.md2.4 KB
  • 0005-changelog-generation-design.md3.2 KB
  • 0007-claude-md-agents-md-symlink.md2.3 KB
  • 0008-native-codex-plugin-support.md5.5 KB
  • 0009-bootstrap-and-steward-skills.md3.4 KB
  • 0010-decision-track-field.md2.6 KB
  • 0011-kms-domain-agnostic-beyond-software.md2.9 KB
  • 0012-no-redundant-guardrails.md3.1 KB
  • 0013-ai-agent-role-lists-per-track.md3.3 KB
  • 0014-decision-scope-and-expires-fields.md2.3 KB
  • 0015-facts-must-not-be-audit-log-records.md2.2 KB
  • 0016-lint-skill.md2.8 KB
  • 0017-query-skill.md1.7 KB
  • 0018-per-skill-examples-convention.md2.9 KB
  • 0019-brainstorm-skill.md2.5 KB
  • 0020-onboard-skill.md2.5 KB
  • 0021-refactor-plan-skill.md2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.