From govctl
Removes govctl governance from a project by archiving artifacts, removing skills/agents, and stripping code references. Useful when opting out of govctl or uninstalling.
How this skill is triggered — by the user, by Claude, or both
Slash command
/govctl:detach [optional scope hint][optional scope hint]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Always dry run first.** Scan everything, present a report, get explicit confirmation before changing anything.
Always dry run first. Scan everything, present a report, get explicit confirmation before changing anything.
gov/ → gov.archived/ (never delete).docs/rfc/, docs/adr/, docs/work/ untouched.[[RFC-...]], [[ADR-...]], [[WI-...]] references from source code and agent configs.govctl commands after detaching.Scan and report:
gov/, .claude/skills/, .claude/agents/, .claude/hooks/hooks.json, .claude-plugin/, .claude/.claude-plugin/\[\[(RFC-\d{4}|ADR-\d{4}|WI-\d{4}-) in source files (use source_scan.include from gov/config.toml if available, otherwise scan common source dirs)CLAUDE.md, AGENTS.md, .cursorrules for govctl, RFC-, ADR-, WI-Present a summary with counts and file-level details. List what will happen. Wait for user confirmation.
mv gov gov.archived
Update any gov/ entries in .gitignore to gov.archived/ (or ask user).
Remove govctl-managed skills from .claude/skills/:
gov quick discuss spec commit migrate init detach
rfc-writer adr-writer wi-writer guard-writer decision-analysis
Remove govctl agents from .claude/agents/:
rfc-reviewer.md adr-reviewer.md wi-reviewer.md compliance-checker.md
Strip govctl-referencing hooks from .claude/hooks/hooks.json (remove the file if it becomes empty).
Remove .claude/.claude-plugin/ and .claude-plugin/.
Clean up empty directories.
For each [[...]] reference found in source code, pick the best option:
[[...]] only, keep the rest of the commentSee ADR-0010 (archived in gov.archived/adr/)When in doubt, preserve context and just remove the brackets.
Verify no [[RFC-, [[ADR-, or [[WI- references remain.
Remove govctl-specific sections from CLAUDE.md, AGENTS.md, .cursorrules:
[[...]] artifact references/gov, /quick, /discuss, etc.)Preserve all non-govctl content. Verify no references remain.
Report what was archived, removed, and stripped. Suggest:
/commit chore(gov): detach from govctl governance
To restore: mv gov.archived gov && govctl init-skills
npx claudepluginhub govctl-org/govctl --plugin govctlAdopts govctl governance in existing projects by discovering undocumented decisions, backfilling ADRs and RFCs, and annotating source code.
Safely removes plugin assets (skills, agents, rules, scripts, hooks) by detecting dependencies and cleaning up references. Invoke via /safe-remove for decluttering.
Exports Citadel project state to markdown archives and removes all harness files and hooks for a clean uninstall, with restore support on reinstall.