agent-remove

agent-remove is a skill for Claude Code from bdfinst/agentic-dev-team. It costs 74 tokens per session (1,531 once invoked), scanned A, original, MIT.

A workflow for removing an agent from a coding-agent system and cleaning up its files, registry entries, references, and documentation. It requires confirmation before deletion.

In plain words
What is it for?
Use it to retire a team or review agent after confirming exactly what will be deleted and updated.
Why use it?
It prevents an agent from being partly removed while stale references or documentation remain behind.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions .claude-plugin; mentions CLAUDE.md; positional $N argument.

Part of the marketplace-dev plugin — 10 skills, 1 agent shipped together

Good fit Use it to retire a team or review agent after confirming exactly what will be deleted and updated.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bdfinst/agentic-dev-team/agent-remove
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bdfinst/agentic-dev-team --skill agent-remove
Clone the repo
git clone --depth 1 https://github.com/bdfinst/agentic-dev-team

Made for: Claude Code.

Or install marketplace-dev, the plugin that ships this one along with the rest of its 10 skills, 1 agent.

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 agent-remove

README.md
[![agentmods](https://agentmods.dev/badge/skills/bdfinst/agentic-dev-team/agent-remove/github.svg)](https://agentmods.dev/skills/bdfinst/agentic-dev-team/agent-remove)
Your own site
<a href="https://agentmods.dev/skills/bdfinst/agentic-dev-team/agent-remove"><img src="https://agentmods.dev/badge/skills/bdfinst/agentic-dev-team/agent-remove/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 agent-remove

Your own site · 80×15
<a href="https://agentmods.dev/skills/bdfinst/agentic-dev-team/agent-remove"><img src="https://agentmods.dev/badge/skills/bdfinst/agentic-dev-team/agent-remove.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,531 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 101
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00074 $0.01531
Opus 5.5 $0.00030 $0.00612
Sonnet 5.5 $0.00015 $0.00306
Haiku 4.5 $0.00007 $0.00153

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

Security

Grade A, and why

agent-remove 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 2mo ago.

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/marketplace-dev/skills/agent-remove/SKILL.md · 198 lines

How it starts

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

Agent Remove

Role: implementation. This skill removes an agent and all its references from the system — it does not modify agent behavior or content.

You have been invoked with the /agent-remove skill. Fully remove a named agent and update all required documentation.

Implementation constraints

  1. Confirm before deleting. Always show the user what will be removed and wait for confirmation before any destructive action.
  2. Detect agent type first. Review agents (declare Model tier:) and team agents (declare persona sections) require different cleanup paths.
  3. Remove all references. An agent that is deleted but still referenced in other files leaves the system in an inconsistent state.
  4. Always update documentation. Documentation steps are mandatory. Review updated docs before reporting completion.
  5. Be concise. Report only what changed. No narration of each step.

Parse Arguments

Arguments: $ARGUMENTS

Required: agent name ($0) — the filename stem without .md (e.g., js-fp-review, security-engineer)

Optional:

  • --plugin <dir>: target plugin directory. Resolved as: this flag if given; else single plugins/*/; else cwd ancestor with .claude-plugin/plugin.json; else ask. Stored as $PLUGIN.
  • --dry: Show what would be removed without making changes

Steps

0. Resolve target plugin

Determine $PLUGIN using the convention above. Read $PLUGIN/.claude-plugin/plugin.json and extract name as $NAME.

1. Locate agent file

Verify $PLUGIN/agents/<name>.md exists. If not, list all agent files and report that the named agent was not found.

2. Detect agent type

Read $PLUGIN/agents/<name>.md:

  • If it declares Model tier: → review agent
  • Otherwise → team agent

3. Show removal plan

Display a confirmation prompt listing every action that will be taken:

Remove agent: <name> (<type>) from $PLUGIN

Files to delete:
  - $PLUGIN/agents/<name>.md
  [review agents only — if eval fixtures exist at repo root]
  - evals/$NAME/fixtures/<name>-* (if any)
  - evals/$NAME/expected/<name>-* (if any)

Registry entries to remove:
  - $PLUGIN/knowledge/agent-registry.md: <table row> (if file exists)
  - $PLUGIN/CLAUDE.md: Quick Reference list entry (if section exists)
  [team agents only — if plugin maintains team-structure docs]
  - $PLUGIN/docs/team-structure.md: <diagram node and edges> (if file exists)

Documentation to update:
  - $PLUGIN/docs/agent_info.md: remove table row (if file exists)
  [team agents only]
  - $PLUGIN/agents/orchestrator.md: Tier guidance bullet (if listed)
  - Other agent files in $PLUGIN/agents/ referencing <name>

Proceed? (yes to continue)

Read the full file on GitHub · 198 lines

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. 2mo ago First seen · 198 lines · 74 tokens per session scan A e7d855a72f20

Subscribe to this mod's changes

agent-remove is a skill published in the GitHub repository bdfinst/agentic-dev-team (312 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 1,531 once invoked, about $0.0003 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-05.

Related

agent-remove compared with skills from other repositories

agent-remove next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-removebdfinst/agentic-dev-teamSkill312todayMITA74Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code