Skip to content
Back to skills

Remove

BSecurity

Cleanly uninstall the model-guard statusline — unregisters statusLine from ~/.claude/settings.json (restoring any previously saved statusline), and optionally deletes the installed scripts and config.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsbash

Works with

  • cli

Security analysis

B85/100
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned September 24, 2026

npx -y skills add ventusff/claude-model-guard --skill remove --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remove?

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

Security grade badge for Remove
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/ventusff-remove/badge)](https://www.skillsdirectory.com/skills/ventusff-remove)

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: remove
description: Cleanly uninstall the model-guard statusline — unregisters statusLine from ~/.claude/settings.json (restoring any previously saved statusline), and optionally deletes the installed scripts and config.
argument-hint: "(no arguments)"
---

# model-guard: uninstall

You are removing the model-guard statusline for this user. Keep the final report short.

## 1. Inspect (one Bash call)

- Read `~/.claude/settings.json` → `.statusLine.command`.
- Read `~/.claude/model-guard.conf` if present → note `PREV_STATUSLINE_B64`.
- If the current statusLine is NOT model-guard (command doesn't contain
  `model-guard`), say so — only offer file cleanup (step 3b), don't touch settings.

## 2. Ask (ONE AskUserQuestion call)

Header "Cleanup": "Unregister + delete files (Recommended)" / "Unregister only
(keep scripts & config)".

## 3. Execute

Backup first:
`cp ~/.claude/settings.json ~/.claude/settings.json.bak-model-guard-$(date +%Y%m%d-%H%M%S)`

a) Unregister — restore the pre-model-guard statusline if one was saved:
- If the conf has `PREV_STATUSLINE_B64`:
  ```bash
  jq --argjson sl "$(sed -n 's/^PREV_STATUSLINE_B64=//p' ~/.claude/model-guard.conf | base64 -d)" \
    '.statusLine=$sl' ~/.claude/settings.json > ~/.claude/settings.json.tmp \
    && mv ~/.claude/settings.json.tmp ~/.claude/settings.json
  ```
- Otherwise: `jq 'del(.statusLine)' ...` (same tmp+mv pattern).
- Validate the result parses: `jq . ~/.claude/settings.json >/dev/null`.

b) If deleting files: `rm -rf ~/.claude/model-guard; rm -f ~/.claude/model-guard.sh ~/.claude/model-guard.conf`
   (the flat `model-guard.sh` exists only on installs made before the directory layout)
   and the per-session recovery state: `rm -rf "${XDG_RUNTIME_DIR:-/tmp}/model-guard"`.
   If `~/.config/kitty/kitty.conf` carries the two remote-control lines that
   `setup` added (`allow_remote_control socket-only`, `listen_on unix:@kitty`),
   mention them — they are harmless, the user decides whether to keep them.

## 4. Report (short)

- StatusLine unregistered (and previous statusline restored, if there was one);
  a timestamped settings backup was kept.
- The plugin itself can be uninstalled with `/plugin` → Manage plugins, or
  `claude plugin uninstall model-guard@cli-model-guard`.

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.

Comments

Loading comments…