plugin-remover

plugin-remover is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 21 tokens per session (568 once invoked), scanned A, original, MIT.

A local cleanup tool for removing coding-agent plugins and skills from the .agents environment.

In plain words
What is it for?
Use it to interactively remove selected plugins, remove a named plugin without prompts, or clean out all tracked plugins and orphaned files.
Why use it?
It removes the plugin files and tracking records together, including unused files left behind by earlier installations.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 plugins/dev-utils/scripts/symlink_manager.py audit.

Part of the plugin-manager plugin — 3 skills shipped together

Good fit Use it to interactively remove selected plugins, remove a named plugin without prompts, or clean out all tracked plugins and orphaned files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills
agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/plugin-remover

Made for: Claude Code.

Or install plugin-manager, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plugin-remover

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/plugin-remover/github.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/plugin-remover)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/plugin-remover"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/plugin-remover/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plugin-remover

Your own site · 80×15
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/plugin-remover"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/plugin-remover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00568
Opus 5.5 $0.00008 $0.00227
Sonnet 5.5 $0.00004 $0.00114
Haiku 4.5 $0.00002 $0.00057

Measured 13d ago against content hash fddf9214b3ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plugin-remover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/plugin_remove.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/plugin-manager/skills/plugin-remover/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plugin Remover (plugin-remover)

Safely uninstalls plugins from agent environments and synchronizes tracking registries.

Contents

Critical Constraints

  • Scope Boundary: Dedicated to uninstalling plugins. For installing or refreshing plugins, use plugin-installer or plugin-syncer.
  • Dual Manifest Scrubbing: Reads both legacy artifacts lists and ownership manifests to ensure complete removal of enabled and disabled assets.
  • Destructive Action Safety: Never remove untracked project files outside .agents/ and registered environment symlinks.
  • Confirmation Prompts: Prompt for confirmation before wholesale deletion unless --yes is explicitly specified.

Quick start

# Interactive removal menu
python3 plugins/plugin-manager/scripts/plugin_remove.py

# Remove a specific plugin non-interactively
python3 plugins/plugin-manager/scripts/plugin_remove.py --plugins <plugin-name> --yes

# Remove all tracked plugins and clean orphaned artifacts
python3 plugins/plugin-manager/scripts/plugin_remove.py --all --yes

Workflow

  1. Phase 1: Target Identification: Select targeted plugin(s) interactively or pass --plugins <name> arguments.
  2. Phase 2: Inventory Resolution: Consult .agents/ownership/<plugin>.json and .agents/plugin-sources.json to map all deployed artifacts.
  3. Phase 3: Artifact & Symlink Pruning: Delete target environment symlinks (.claude/, .gemini/) and purge files in .agents/.
  4. Phase 4: Registry Reconciliation: Remove plugin entries from plugin-sources.json and delete the ownership manifest.

Verification

# Verify no broken symlinks remain
python3 plugins/dev-utils/scripts/symlink_manager.py audit

# Audit skill compliance
python3 plugins/agent-scaffolders/scripts/audit_skill.py plugins/plugin-manager/skills/plugin-remover --mode source

Read the full file on GitHub · 59 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed · +20 lines fddf9214b3ca
  2. 29d ago First seen · 39 lines · 21 tokens per session scan A b4042f522f0a

Subscribe to this mod's changes

plugin-remover is a skill published in the GitHub repository richfrem/agent-plugins-skills (7 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 568 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-17.