Harness Notes

Plugin formats

Updated 2026-11-22,

On this page

Plugin manifests, component layouts and distribution formats checked November 16, 2026. Agent Plugins 1.0 is the published portable format for skills and MCP; 1.1 portable hooks remain a working draft. Vendor formats and executable extensions have separate contracts. Source inspection and documentation review do not establish runtime conformance.

QuestionClaude Code
Manifest and format

.claude-plugin/plugin.json is optional when the standard component layout is enough. Without it, the name comes from the marketplace or --plugin-dir directory. Other assets stay at the plugin root, outside .claude-plugin/.

Required and optional fields

When present, name is required. Optional identity, listing, version, dependency and userConfig fields accompany component keys. $schema is for editors and ignored at runtime. Advanced keys include types, channels, workflows and experimental themes/monitors/evals. Unknown fields are stripped with warnings.

Components and default layout

Default layout includes skills/, commands/, agents/, hooks/hooks.json, .mcp.json, .lsp.json, output-styles/, workflows/, themes/, monitors/monitors.json and evals/. Top-level bin/ exposes executables on Bash PATH; claude.ai and Cowork reject packages containing it. Plugin-root CLAUDE.md is not loaded as instructions.

Paths and variables

Component paths require ./, must exist and stay inside the plugin. skills additionally permits the root as .; mcpServers permits HTTPS bundle URLs. skills paths add to defaults; commands/agents/styles/workflows replace defaults; hooks/MCP/LSP merge. ${CLAUDE_PLUGIN_ROOT}, ${CLAUDE_PLUGIN_DATA} and ${CLAUDE_PROJECT_DIR} expand only in documented fields; they are not automatically present in model Bash commands.

MCP configuration

.mcp.json merges with manifest mcpServers, which accepts paths, inline server maps or arrays. Referenced .mcpb/.dxt bundles are also supported. Later declarations replace earlier servers of the same name. This differs from fixed portable mcp.json and its transport schema.

Distribution and marketplaces

Marketplaces use .claude-plugin/marketplace.json with name, owner and plugins; entries select plugin sources and may supplement component declarations. Entry/manifest merging and strict behavior have their own rules. Use claude plugin validate for the package and marketplace rather than treating their schemas as interchangeable.

Compatibility and verification limits

Partly

Claude Code packages use their own component paths, merge rules, variable names and execution APIs. A manifest accepted by Codex compatibility parsing does not carry every Claude component across. Root Agent Plugins support is unknown in this audit; no cross-host execution probe ran.

Commands

From your shell

Commands you run in a terminal or script, outside a session.

TaskClaude Codechecked at 2.1.296
Set up
Install

claude plugin install [options] <plugin>

also claude plugin i <plugin>

Install a plugin from an available marketplace.

2 notes

--marketplace <source> adds the marketplace first (2.1.292+). --config sets options, including <server>.<key>=<value>.

--json prints one result line; --accept-command <sha256> accepts exactly the displayed marketplace command; -y is required without a TTY.

Create a new one

claude plugin eval init [name]

Write a plugin eval suite through an interview.

1 note

--bare <name> writes a blank single-case template instead.

claude plugin init <name>

also claude plugin new <name>

Create a plugin at ~/.claude/skills/<name>/, loaded next session.

Configure

claude plugin configure [--json] [--values-stdin] <plugin>

Show a plugin's options and which are unset, or save values read from stdin.

1 note

Added in 2.1.285. Takes the qualified name@marketplace id.

Use
List

claude plugin list [--json] [--available] [--data-size [plugin]]

List installed plugins, optionally with available ones and data sizes.

1 note

--available and --data-size require --json.

Show details

claude plugin details <name>

Show a plugin's components and projected token cost.

Validate

claude plugin validate [--json] [--strict] <path>

Validate a plugin or marketplace manifest, or a directory's skills, agents and commands.

Evaluate

claude plugin eval [options] [target]

Run and score a plugin's eval cases against a no-plugin baseline.

2 notes

Asks for confirmation in an untrusted plugin directory; --trust-plugin answers for CI. Scaffold scripts and real MCP servers start only on opt-in and run outside the sandbox.

-j/--concurrency runs up to 8 agent runs at once on your credential.

claude plugin test [dir]

Run a mod's *.test.ts files in a hook-like environment.

1 note

Needs no session, sign-in or network; exits 1 on failure.

Change
Enable
Disable
Update

claude plugin update [options] <plugin>

Update a plugin to its latest version; restart to apply.

Tag a release

claude plugin tag [options] [path]

Create a {name}--v{version} Git tag after checking the manifest.

Remove
Uninstall

claude plugin uninstall [options] <plugin>

also claude plugin remove <plugin>

Uninstall a plugin from a scope.

1 note

Deletes the plugin's data unless --keep-data; --prune also removes orphaned dependencies.

Clean up unused

claude plugin prune [--dry-run] [-s <scope>] [-y]

also claude plugin autoremove

Remove automatically installed dependencies that are no longer needed.

Inside a session

Slash commands you type into an open session.

TaskClaude Codechecked at 2.1.296
Use
Open the manager

/plugin [subcommand]

also /plugins

Open the plugin panel, or run a subcommand against it.

1 note

Interactive terminal only. Subcommands include list, install, manage, stats, enable, disable, uninstall, configure, validate, tag and marketplace.

Change
Reload

/reload-plugins [--force]

Apply pending plugin changes without restarting.

1 note

Skips a reload that would invalidate the prompt cache unless --force.

Notes and sources

Claude Code, 2 sources
Manifest and format, 1
Required and optional fields, 1
Components and default layout, 1
Paths and variables, 1
MCP configuration, 1
Distribution and marketplaces, 2
Compatibility and verification limits, 1