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.
npx skills add C0ntr0lledCha0s/claude-code-plugin-automations --skill building-pluginsgit clone --depth 1 https://github.com/C0ntr0lledCha0s/claude-code-plugin-automationsWrote 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.
[](https://agentmods.dev/skills/c0ntr0lledcha0s/claude-code-plugin-automations/building-plugins)<a href="https://agentmods.dev/skills/c0ntr0lledcha0s/claude-code-plugin-automations/building-plugins"><img src="https://agentmods.dev/badge/skills/c0ntr0lledcha0s/claude-code-plugin-automations/building-plugins/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.
<a href="https://agentmods.dev/skills/c0ntr0lledcha0s/claude-code-plugin-automations/building-plugins"><img src="https://agentmods.dev/badge/skills/c0ntr0lledcha0s/claude-code-plugin-automations/building-plugins.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.06489 |
| Opus 5.5 | $0.00018 | $0.02596 |
| Sonnet 5.5 | $0.00009 | $0.01298 |
| Haiku 4.5 | $0.00004 | $0.00649 |
Grade A, and why
building-plugins 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 996 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building Plugins Skill
You are an expert at creating Claude Code plugins. Plugins are bundled packages that combine agents, skills, commands, and hooks into cohesive, distributable units.
What is a Plugin?
A plugin is a package that bundles related Claude Code components:
- Agents: Specialized subagents for delegated tasks
- Skills: Auto-invoked expertise modules
- Commands: User-triggered slash commands
- Hooks: Event-driven automation
Plugins enable users to install complete functionality with a single command.
When to Create a Plugin vs Individual Components
Use a PLUGIN when:
- You want to distribute multiple related components together
- You're building a cohesive feature set or domain expertise
- You want users to install everything with one command
- You need to maintain version compatibility across components
- You're creating a reusable toolkit for a specific domain
Use INDIVIDUAL COMPONENTS when:
- You only need a single agent, skill, or command
- Components are unrelated and can be used independently
- You're customizing for a specific project
- You don't plan to distribute or share
Plugin Creation Process
Creating a plugin involves:
- Gathering requirements (name, components, metadata)
- Creating the directory structure
- Writing the plugin.json manifest
- Creating each component (agents, skills, commands, hooks)
- Writing comprehensive README.md
- Validating the complete plugin
Component Creation: Each component type (agents, skills, commands, hooks) should follow its respective best practices. Use the corresponding building-* skills for expertise on creating each type.
Plugin Structure & Schema
Directory Structure
plugin-name/
├── .claude-plugin/
│ └── plugin.json # Required: Plugin manifest
├── agents/ # Optional: Agent definitions
│ ├── agent1.md
│ └── agent2.md
├── skills/ # Optional: Skill directories
│ ├── skill1/
│ │ ├── SKILL.md
│ │ ├── scripts/
│ │ ├── references/
│ │ └── assets/
│ └── skill2/
│ └── SKILL.md
├── commands/ # Optional: Slash commands
│ ├── command1.md
│ └── command2.md
├── hooks/ # Optional: Event hooks
│ ├── hooks.json
│ └── scripts/
├── scripts/ # Optional: Helper scripts
│ └── setup.sh
├── .mcp.json # Optional: MCP server configuration
└── README.md # Required: Documentation
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/plugin-architecture-guide.md 11 KB
- references/plugin-distribution-guide.md 13 KB
- scripts/validate-plugin.py 15 KB runs code
- templates/full-plugin-template/.claude-plugin/plugin.json 632 B
- templates/full-plugin-template/hooks/hooks.json 615 B
- templates/full-plugin-template/hooks/scripts/validate-bash.sh 630 B runs code
- templates/full-plugin-template/skills/example-skill/SKILL.md 2.2 KB
- templates/minimal-plugin-template/.claude-plugin/plugin.json 451 B
- templates/minimal-plugin-template/commands/example.md 684 B
- templates/minimal-plugin-template/README.md 1.3 KB
- templates/plugin-readme-template.md 3.7 KB
- templates/standard-plugin-template/.claude-plugin/plugin.json 539 B
- templates/standard-plugin-template/agents/example-agent.md 1.5 KB
- templates/standard-plugin-template/commands/analyze.md 2.3 KB
- templates/standard-plugin-template/commands/fix.md 1.5 KB
- templates/standard-plugin-template/README.md 4.9 KB
- templates/standard-plugin-template/scripts/helper.sh 1.2 KB runs code
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.
- 3mo ago First seen · 996 lines · 44 tokens per session scan A 36c4b492b04f
building-plugins is a skill published in the GitHub repository C0ntr0lledCha0s/claude-code-plugin-automations (3 stars, last pushed 9mo ago), licensed MIT. It adds 44 tokens to every session and 6,489 once invoked, about $0.0002 per session on Opus 5.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-31.
building-plugins compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| building-pluginsC0ntr0lledCha0s/claude-code-plugin-automations | Skill | 3 | 9mo ago | MIT | A | 44 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 333k | 7d ago | MIT | A | 21 | Claude Code |