claude-code-plugin

claude-code-plugin is a skill for Claude Code, Codex from miles990/claude-software-skills. It costs 23 tokens per session (4,041 once invoked), scanned D, original, MIT.

A guide to creating, publishing, installing, updating, and managing Claude Code plugins. Plugins can bundle commands, skills, event-triggered actions, and tool connections.

In plain words
What is it for?
Use it to structure plugin folders, write the manifest, add commands and skills, configure hooks and tool servers, and manage marketplaces.
Why use it?
It explains the required files and locations, reducing setup mistakes when building or distributing a plugin.

Skill for Claude CodeCodex

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/miles990/claude-software-skills/claude-code-plugin
Any agent
npx skills add miles990/claude-software-skills --skill claude-code-plugin
Clone the repo
git clone --depth 1 https://github.com/miles990/claude-software-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin claude-code-plugin/plugin install claude-code-plugin after adding the marketplace above.

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 claude-code-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/miles990/claude-software-skills/claude-code-plugin.svg)](https://agentmods.dev/skills/miles990/claude-software-skills/claude-code-plugin)
Your own site
<a href="https://agentmods.dev/skills/miles990/claude-software-skills/claude-code-plugin"><img src="https://agentmods.dev/badge/skills/miles990/claude-software-skills/claude-code-plugin.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,041 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 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.00023 $0.04041
Opus 5 $0.00012 $0.02021
Sonnet 5 $0.00005 $0.00808
Haiku 4.5 $0.00002 $0.00404

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

Security

Grade D, and why

claude-code-plugin scanned grade D with 3 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 5d 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.

Reads agent configuration directoriesmediumAgent snooping

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

cat ~/.claude/plugins/installed_plugins.json | jq '.plugins["plugin@marketplace"][0].version'

Recursive force deletehighDestructive command

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

rm -rf "$PLUGIN_REPO/skills"

Makes network callslowCapability

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

curl -s https://raw.githubusercontent.com/owner/repo/main/.claude-plugin/plugin.json | jq -r '.version'
tools-integrations/claude-code-plugin/SKILL.md · 625 lines

How it starts

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

Claude Code Plugin 完整指南

建立、發布、安裝、更新、同步 Claude Code Plugin 的完整指南

適用場景

  • 開發新的 Claude Code Plugin
  • 發布 Plugin 到 Marketplace
  • 安裝和更新 Plugin
  • 管理 Plugin 版本
  • 同步最新版本
  • 建立自訂 Marketplace

Part 1: Plugin 架構

目錄結構

my-plugin/
├── .claude-plugin/
│   ├── plugin.json          # Plugin manifest(必要)
│   └── marketplace.json     # Marketplace 索引(選用)
├── commands/                # Slash 命令(在根目錄!)
│   └── my-command.md
├── skills/                  # Agent Skills
│   └── my-skill/
│       └── SKILL.md
├── hooks/
│   └── hooks.json           # Hook 配置
├── agents/                  # Subagent 定義
├── .mcp.json               # MCP 伺服器配置
├── CHANGELOG.md
└── README.md

⚠️ 重要:commands/、skills/、hooks/ 必須在根目錄,不要放進 .claude-plugin/

plugin.json 規範

{
  "name": "my-plugin",
  "version": "1.0.0",
  "description": "Plugin 功能描述",
  "author": {
    "name": "作者名稱",
    "email": "[email protected]"
  },
  "license": "MIT",
  "keywords": ["keyword1", "keyword2"]
}

四大組件

組件 用途 觸發方式 檔案格式
Commands 用戶執行的斜線命令 /command 手動 Markdown
Skills 教 Claude 如何做事 自動根據上下文 SKILL.md
Hooks 事件驅動自動化 系統事件觸發 JSON + Shell
MCP 提供工具能力 Claude 呼叫 .mcp.json

Part 2: 發布 Plugin

方式一:GitHub Marketplace(推薦)

Step 1: 建立 marketplace.json

{
  "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
  "name": "my-marketplace",
  "description": "我的 Plugin 集合",
  "owner": {
    "name": "username",
    "email": "[email protected]"
  },
  "plugins": [
    {
      "name": "my-plugin",
      "version": "1.0.0",
      "source": "./",
      "description": "Plugin 描述",
      "category": "development"
    }
  ]
}

Step 2: 推送到 GitHub

git add .
git commit -m "feat: add Plugin marketplace format"
git tag -a v1.0.0 -m "Release v1.0.0"
git push origin main
git push origin v1.0.0

Step 3: 用戶安裝

# 添加 marketplace
/plugin marketplace add owner/repo

# 安裝 plugin
/plugin install my-plugin@my-marketplace

Read the full file on GitHub · 625 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. 5d ago First seen · 625 lines · 23 tokens per session scan D c4ae108120d5

Subscribe to this mod's changes

claude-code-plugin is a skill published in the GitHub repository miles990/claude-software-skills (20 stars, last pushed 7mo ago), licensed MIT. It adds 23 tokens to every session and 4,041 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 3 findings (reads agent configuration directories, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.