Skip to content
Back to skills

Gov Uninstall

ASecurity

Check or remove workspace governance artifacts with backup and legacy restore.

  • 225 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 4, 2026
toolsgonode

Works with

  • cli

Security analysis

A100/100

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

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill gov_uninstall --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gov Uninstall?

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

Security grade badge for Gov Uninstall
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-gov-uninstall/badge)](https://www.skillsdirectory.com/skills/neversight-gov-uninstall)

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
---
name: gov_uninstall
description: Check or remove workspace governance artifacts with backup and legacy restore.
user-invocable: true
metadata: {"openclaw":{"emoji":"🧹","requires":{"bins":["openclaw"]}}}
---
# /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:
  - `quick` (recommended one-click chain)
  - `check` or `uninstall`
  - alias: `auto` (same as `quick`)

## Hard rules
1. Explicit `/gov_uninstall uninstall` MUST execute uninstall workflow; do not downgrade to read-only.
2. Uninstall must create workspace backup evidence under `archive/_gov_uninstall_backup_<ts>/` before removals.
3. Legacy restore must prefer latest `archive/_bootstrap_backup_<ts>/` when available.
4. Do not patch platform control-plane files (for example `~/.openclaw/openclaw.json`) inside this command.
5. This command must never claim completion without a run report under `_runs/`.

## Deterministic runner (authoritative)
- `check`: `node {plugin_root}/tools/gov_uninstall_sync.mjs check`
- `uninstall`: `node {plugin_root}/tools/gov_uninstall_sync.mjs uninstall`
- `quick`/`auto`:
  - run `check`
  - if status is `RESIDUAL`, run `uninstall`
  - if status is `CLEAN`, stop with `CLEAN`

## Expected behavior
1. `check` mode:
   - detect governance residuals under workspace (`prompts/governance`, `skills/gov_*`, governance `_control/*`, governance run files, governance BOOT markers)
   - report restore candidates from latest bootstrap backup
   - detect Brain Docs autofix backup roots (`archive/_brain_docs_autofix_<ts>/`) and restore candidates
   - return `CLEAN` or `RESIDUAL`
2. `quick`/`auto` mode:
   - execute `check -> uninstall` automatically when residual exists
   - keep backup-first safety and run-report evidence rules unchanged
   - return `PASS`/`CLEAN`/`BLOCKED` with explicit next steps
3. `uninstall` mode:
   - 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 `PASS` or `BLOCKED`

## Output order
1. `STATUS`
2. `WHY`
3. `NEXT STEP (Operator)`
4. `COMMAND TO COPY`

## Operator notes
- Never uninstall plugin package first. Default to one-click `/gov_uninstall quick` (or `/gov_uninstall auto`) for safe cleanup; use `/gov_uninstall check` as optional strict verification before/after uninstall.
- After workspace uninstall `PASS`, disable or uninstall the plugin package with official OpenClaw commands.
- If `warnings` mention missing legacy backups, recovery files are still preserved in `_gov_uninstall_backup_<ts>`.

Files in this skill

  • SKILL.md2.8 KB
  • description_ar.txt163 B
  • description_cn.txt67 B
  • description_de.txt104 B
  • description_en.txt79 B
  • description_es.txt107 B
  • description_fr.txt126 B
  • description_it.txt103 B
  • description_ja.txt156 B
  • description_ko.txt113 B
  • description_ru.txt252 B
  • description_tw.txt67 B
  • stats.json68 B

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 tools →

Comments

Loading comments…

Newsletter

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