From citadel
Exports Citadel project state to markdown archives and removes all harness files and hooks for a clean uninstall, with restore support on reinstall.
How this skill is triggered — by the user, by Claude, or both
Slash command
/citadel:unharnessThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Use when:** removing Citadel from a project entirely -- exports state and cleans up hooks before uninstall.
Use when: removing Citadel from a project entirely -- exports state and cleans up hooks before uninstall. Don't use when: pausing campaign work (just stop or use /session-handoff); removing a single skill (delete its directory manually).
/unharness # Export archive, then remove harness
/unharness --export-only # Export to docs/citadel/ without removing anything
Read .citadel/plugin-root.txt to locate the Citadel install.
If missing, use the directory containing this SKILL.md as the fallback.
cat .citadel/plugin-root.txt 2>/dev/null || echo "fallback"
Store as {citadelRoot}.
node {citadelRoot}/scripts/unharness.js
For --export-only:
node {citadelRoot}/scripts/unharness.js --export-only
The script:
.planning/ for valuable content (campaigns, postmortems, research, backlog, discoveries).citadel/project.md and .claude/harness.json for project metadatadocs/citadel/{category}.md files with citadel-archive: true frontmatter.planning/, .citadel/, .claude/agent-context/.claude/settings.json (preserves user hooks)Print the script output verbatim.
After the script completes, print:
If archive was written:
Archive is at docs/citadel/ — commit it, delete it, or leave it.
Run /do setup again anytime to reinstall Citadel.
If you run setup in this project, it will find the archive and offer to restore your history.
If nothing was exported (empty project):
Citadel removed. No history to archive.
Run /do setup again anytime to reinstall.
If --export-only:
Archive written to docs/citadel/. Harness files left in place.
Run /unharness without --export-only to complete the removal.
Script not found:
Report the error and explain the user can run the hook installer manually:
node /path/to/Citadel/scripts/unharness.js
No .planning/ directory (harness was installed but never used): The script handles this gracefully — it skips the export and proceeds to cleanup. Nothing special needed.
docs/citadel/ already exists from a previous unharness:
The script overwrites with the current timestamp. Prior archives are replaced.
If the user wants to keep prior archives, they should commit docs/citadel/ to git first.
User runs unharness on a project that was never set up: The script exits cleanly with "Nothing to export." and nothing is deleted that shouldn't be.
Disclosure: "Removing Citadel from [project]. Exporting state to [path] before deletion. This is irreversible without reinstalling." Reversibility: red — removes hooks, clears .claude/settings.json entries, deletes .planning/. State export is made first, but reinstalling requires /setup. Trust gates:
After the closing message in Step 3, output nothing further. Unharness is a terminal action — no HANDOFF block, no next-step suggestions. The session is now running without hooks.
npx claudepluginhub sethgammon/citadel --plugin citadelFirst-run configuration for the Citadel harness: installs hooks, detects stack, configures harness.json, and runs a live demo. Three modes from guided to express.
Removes govctl governance from a project by archiving artifacts, removing skills/agents, and stripping code references. Useful when opting out of govctl or uninstalling.
Removes files installed by /optimus:init and /optimus:permissions. Classifies files as unmodified, likely generated, or user-modified; asks before deleting; preserves tests and git-tracked files.