/marketplace-dev:agent-remove <agent-name> [--plugin <dir>] [--dry]from marketplace-dev
Removes an agent file, registry entries, cross-references, and documentation. Confirms before deleting. Handles both team and review agents.
Ships in marketplace-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Model tier:) and
team agents (declare persona sections) require different cleanup paths.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 changesDetermine $PLUGIN using the convention above. Read
$PLUGIN/.claude-plugin/plugin.json and extract name as $NAME.
Verify $PLUGIN/agents/<name>.md exists. If not, list all agent files
and report that the named agent was not found.
Read $PLUGIN/agents/<name>.md:
Model tier: → review agentDisplay 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)
If --dry was passed, display the plan and stop without waiting for
confirmation.
git rm $PLUGIN/agents/<name>.md
If not in a git repository, use rm.
Search for and remove matching eval fixtures and expected files at the repo
root under evals/$NAME/:
ls evals/$NAME/fixtures/ | grep <name>
ls evals/$NAME/expected/ | grep <name>
Remove each matching file with git rm (or rm if not in git). If the
evals/$NAME/ directory does not exist, skip this step silently.
If $PLUGIN/knowledge/agent-registry.md exists, remove the agent's row
from the appropriate table (Team Agents or Review Agents). If the file
does not exist, skip this step.
If $PLUGIN/CLAUDE.md exists:
If the file does not exist, skip this step.
If $PLUGIN/agents/orchestrator.md exists:
If the file does not exist, skip this step.
Search for references to the removed agent:
grep -r "<name>" $PLUGIN/agents/ --include="*.md" -l
For each file found, remove or update:
If $PLUGIN/docs/agent_info.md exists:
If the file does not exist, skip this step.
If $PLUGIN/docs/team-structure.md exists, remove the agent node and all
its edges from any Mermaid diagrams in that file. If the file does not
exist, skip this step.
Review all modified documentation files for accuracy and consistency before reporting completion. Specifically check:
Agent removed: <name> (<type>) from $PLUGIN
Deleted:
- $PLUGIN/agents/<name>.md
[+ eval files if any]
Updated:
- $PLUGIN/knowledge/agent-registry.md [or: skipped — file not found]
- $PLUGIN/CLAUDE.md [or: skipped — file not found]
[+ orchestrator.md, team-structure.md, cross-references as applicable]
Documentation is consistent.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/add-pluginInstall a Claude Code plugin and register it in settings.json so the full team can replicate the install. Use this whenever adding a new plugin to the project — it keeps settings.json in sync with what is actually installed./agent-addCreate a new Claude Code agent file (review or team type) following the official sub-agent schema and token-efficiency budgets. Use when the user wants to add a new review agent, detect a new category of code issue, create a team agent persona, or says things like "add an agent for X", "create a reviewer for Y", "new team agent for Z". Also use when given a URL to a coding standard that should become a review agent./agent-createnpx claudepluginhub bdfinst/agentic-dev-team --plugin marketplace-devOther plugins' skills for the same job