add

add is a command for Claude Code from claude-market/marketplace. It costs 8 tokens per session (1,293 once invoked), scanned A, original, MIT.

A guided command for adding a new component to an existing Claude Code plugin. Components can include reusable commands, specialist agents, automated hooks, skills, or external tool connections.

In plain words
What is it for?
Use it to add a slash command, subagent, lifecycle hook, skill, or Model Context Protocol server to a plugin.
Why use it?
It helps avoid configuration mistakes by checking the existing plugin and collecting the information needed for the selected component type.

Command for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Part of the plugin-builder plugin — 5 commands shipped together

Good fit Use it to add a slash command, subagent, lifecycle hook, skill, or Model Context Protocol server to a plugin.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/claude-market/marketplace/add
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.

Clone the repo
git clone --depth 1 https://github.com/claude-market/marketplace

Made for: Claude Code.

Or install plugin-builder, the plugin that ships this one along with the rest of its 5 commands.

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 add

README.md
[![agentmods](https://agentmods.dev/badge/commands/claude-market/marketplace/add/github.svg)](https://agentmods.dev/commands/claude-market/marketplace/add)
Your own site
<a href="https://agentmods.dev/commands/claude-market/marketplace/add"><img src="https://agentmods.dev/badge/commands/claude-market/marketplace/add/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 add

Your own site · 80×15
<a href="https://agentmods.dev/commands/claude-market/marketplace/add"><img src="https://agentmods.dev/badge/commands/claude-market/marketplace/add.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,293 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.00008 $0.01293
Opus 5 $0.00004 $0.00647
Sonnet 5 $0.00002 $0.00259
Haiku 4.5 $0.00001 $0.00129

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

Security

Grade A, and why

add 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 10d 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.

plugin-builder/commands/add.md · 187 lines

How it starts

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

You are helping a user add a new component to an existing Claude Code plugin.

Step 1: Select Plugin

Use Glob to find all plugins in ./*/.claude-plugin/plugin.json and ask the user which plugin they want to add to (or let them specify a path).

Step 2: Read Current Plugin Configuration

Read the plugin.json to understand what components already exist.

Step 3: Select Component Type to Add

Use AskUserQuestion to ask what type of component they want to add:

  • Slash Command - Reusable prompt template for frequent operations
  • Agent (Subagent) - Specialized AI assistant for specific tasks
  • Hook - Automated workflow trigger at lifecycle events
  • Skill - Domain-specific expertise invoked when needed
  • MCP Server - External tool/data source via Model Context Protocol

Present these as clear options explaining what each type does.

Step 4: Collect Basic Information

Based on the selected component type, collect the essential information:

For Slash Command:

Use AskUserQuestion to collect:

  1. Command name (kebab-case, must not conflict with existing commands)
  2. Brief description (what does this command do?)

For Agent (Subagent):

Use AskUserQuestion to collect:

  1. Agent name (kebab-case, must not conflict with existing agents)
  2. Brief description (when should this agent be invoked?)

For Hook:

Use AskUserQuestion to collect:

  1. Hook name (kebab-case identifier)
  2. Brief description (what workflow does this automate?)

For Skill:

Use AskUserQuestion to collect:

  1. Skill name (kebab-case, must not conflict with existing skills)
  2. Brief description (what domain expertise does this provide?)

For MCP Server:

Use AskUserQuestion to collect:

  1. Server name (kebab-case identifier)
  2. Brief description (what tools/data does this provide?)

Step 5: Invoke Appropriate Builder Skill

Based on the component type selected, invoke the corresponding builder skill to handle the detailed generation:

Read the full file on GitHub · 187 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. 10d ago First seen · 187 lines · 8 tokens per session scan A 98cb53c90aa5

Subscribe to this mod's changes

add is a command published in the GitHub repository claude-market/marketplace (22 stars, last pushed 10mo ago), licensed MIT. It adds 8 tokens to every session and 1,293 once invoked, about $0.0000 per session on Opus 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-08-30.