Learn-skills.dev gov_uninstall
Check or remove workspace governance artifacts with backup and legacy restore.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/adamchanadam/openclaw-workspace-governance/gov_uninstall" ~/.claude/skills/neversight-learn-skills-dev-gov-uninstall && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/data/skills-md/adamchanadam/openclaw-workspace-governance/gov_uninstall" ~/.openclaw/skills/neversight-learn-skills-dev-gov-uninstall && rm -rf "$T"
manifest:
data/skills-md/adamchanadam/openclaw-workspace-governance/gov_uninstall/SKILL.mdsource content
/gov_uninstall
Purpose
Provide an official uninstall path for workspace governance artifacts created by bootstrap/migration. This command is for workspace cleanup + legacy restore, not plugin package removal.
Inputs
- Optional mode:
(recommended one-click chain)quick
orcheckuninstall- alias:
(same asauto
)quick
Hard rules
- Explicit
MUST execute uninstall workflow; do not downgrade to read-only./gov_uninstall uninstall - Uninstall must create workspace backup evidence under
before removals.archive/_gov_uninstall_backup_<ts>/ - Legacy restore must prefer latest
when available.archive/_bootstrap_backup_<ts>/ - Do not patch platform control-plane files (for example
) inside this command.~/.openclaw/openclaw.json - This command must never claim completion without a run report under
._runs/
Deterministic runner (authoritative)
:checknode {plugin_root}/tools/gov_uninstall_sync.mjs check
:uninstallnode {plugin_root}/tools/gov_uninstall_sync.mjs uninstall
/quick
:auto- run
check - if status is
, runRESIDUALuninstall - if status is
, stop withCLEANCLEAN
- run
Expected behavior
mode:check- detect governance residuals under workspace (
,prompts/governance
, governanceskills/gov_*
, governance run files, governance BOOT markers)_control/* - report restore candidates from latest bootstrap backup
- detect Brain Docs autofix backup roots (
) and restore candidatesarchive/_brain_docs_autofix_<ts>/ - return
orCLEANRESIDUAL
- detect governance residuals under workspace (
/quick
mode:auto- execute
automatically when residual existscheck -> uninstall - keep backup-first safety and run-report evidence rules unchanged
- return
/PASS
/CLEAN
with explicit next stepsBLOCKED
- execute
mode:uninstall- backup detected residual paths first
- remove detected governance residual paths
- restore legacy files from latest bootstrap backup when available
- restore Brain Docs from detected autofix backup plan (deterministic strategy reported in output)
- write run report
_runs/gov_uninstall_<ts>.md - return
orPASSBLOCKED
Output order
STATUSWHYNEXT STEP (Operator)COMMAND TO COPY
Operator notes
- Never uninstall plugin package first. Default to one-click
(or/gov_uninstall quick
) for safe cleanup; use/gov_uninstall auto
as optional strict verification before/after uninstall./gov_uninstall check - After workspace uninstall
, disable or uninstall the plugin package with official OpenClaw commands.PASS - If
mention missing legacy backups, recovery files are still preserved inwarnings
._gov_uninstall_backup_<ts>