claude-code-plugin-packaging

claude-code-plugin-packaging is a skill for Claude Code, Codex from phazurlabs/install-labs. It costs 97 tokens per session (4,690 once invoked), scanned F, original, Apache-2.0.

A reference guide for packaging Claude Code extensions. Claude Code is a coding agent, and its plugins can include reusable instructions, user-triggered commands, or tool servers.

In plain words
What is it for?
Use it when creating, organizing, distributing, or maintaining Claude Code plugins, including skills, commands, MCP servers, and plugin metadata.
Why use it?
It helps developers understand the files and structure needed to turn agent instructions and tools into an installable plugin.

Skill for Claude CodeCodex

Part of the install-labs plugin — 12 skills, 10 commands shipped together

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.

agentmods
npx agentmods add skills/phazurlabs/install-labs/claude-code-plugin-packaging
Any agent
npx skills add phazurlabs/install-labs --skill claude-code-plugin-packaging
Clone the repo
git clone --depth 1 https://github.com/phazurlabs/install-labs

Made for: Claude Code, Codex.

Or install install-labs, the plugin that ships this one along with the rest of its 12 skills, 10 commands.

Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,690 The whole file, excluding the scripts and references it only reads on demand.
Security scan F 4 findings. Scan, not verified.
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 $0.00097 $0.04690
Opus 5 $0.00048 $0.02345
Sonnet 5 $0.00019 $0.00938
Haiku 4.5 $0.00010 $0.00469

Measured 3d ago against content hash 084177e858f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade F, and why

claude-code-plugin-packaging scanned grade F with 4 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 3d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/you/my-plugin/main/install.sh | bash

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat > ~/.claude/plugins/$PLUGIN/.claude-plugin/plugin.json << 'EOF'

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.claude/plugins/my-plugin

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://raw.githubusercontent.com/you/my-plugin/main/install.sh | bash
skills/claude-code-plugin-packaging/SKILL.md · 600 lines

How it starts

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

Claude Code Plugin Packaging

Complete reference for building, structuring, distributing, and maintaining Claude Code plugins — the native extension format for Claude Code.


What Is a Claude Code Plugin?

A Claude Code plugin is a directory installed at ~/.claude/plugins/<name>/ that extends Claude Code with three capabilities:

Component Purpose Invocation
Skills Domain knowledge auto-injected into conversations Automatic — keyword match in the skill's description field triggers inclusion
Commands Structured protocols the user triggers explicitly Manual — user types /command-name in the conversation
MCP Servers Tool servers providing actions Claude can call Automatic — declared in plugin.json, started when the plugin loads

A plugin can contain any combination of these. A pure-knowledge plugin might have only skills. A workflow plugin might have only commands. A tool plugin might bundle an MCP server with contextual skills that teach Claude how to use it effectively.

Key mental model: Skills are what Claude knows. Commands are what Claude does on request. MCP servers are what Claude can interact with.


When to Build a Claude Code Plugin

Build a plugin when you want to:

  • Bundle domain expertise — Give Claude deep knowledge in a specific area (medical coding, legal research, design systems) that activates automatically when relevant
  • Create repeatable workflows — Define multi-step protocols (code review checklists, deployment procedures, audit processes) invokable via slash commands
  • Package MCP tools with context — An MCP server alone gives Claude tools; a plugin wraps those tools with skills that teach Claude when and how to use them
  • Distribute to a team — Share a standardized Claude Code configuration across developers, designers, or analysts
  • Sell on a marketplace — Package expertise as a product others install with one command

Read the full file on GitHub · 600 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. 3d ago First seen · 600 lines · 97 tokens per session scan F 084177e858f8

Subscribe to this mod's changes

claude-code-plugin-packaging is a skill published in the GitHub repository phazurlabs/install-labs (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 97 tokens to every session and 4,690 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it F with 4 findings (downloads and executes remote code, reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.