building-plugins

building-plugins is a skill for Claude Code from C0ntr0lledCha0s/claude-code-plugin-automations. It costs 44 tokens per session (6,489 once invoked), scanned A, original, MIT.

A set of instructions for creating Claude Code plugins, which are packages that bundle related agents, skills, commands, and hooks.

In plain words
What is it for?
Use it when creating plugin folders, manifests, component structures, or a distributable toolkit with several related parts.
Why use it?
It helps organize related coding-agent components into a package that can be installed, shared, and maintained together.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions subagents.

Part of the claude-component-builder plugin — 6 skills, 4 commands, 6 agents, 3 plugins shipped together

Good fit Use it when creating plugin folders, manifests, component structures, or a distributable toolkit with several related parts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/c0ntr0lledcha0s/claude-code-plugin-automations/building-plugins
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.

Any agent
npx skills add C0ntr0lledCha0s/claude-code-plugin-automations --skill building-plugins
Clone the repo
git clone --depth 1 https://github.com/C0ntr0lledCha0s/claude-code-plugin-automations

Made for: Claude Code.

Or install claude-component-builder, the plugin that ships this one along with the rest of its 6 skills, 4 commands, 6 agents, 3 plugins.

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 building-plugins

README.md
[![agentmods](https://agentmods.dev/badge/skills/c0ntr0lledcha0s/claude-code-plugin-automations/building-plugins/github.svg)](https://agentmods.dev/skills/c0ntr0lledcha0s/claude-code-plugin-automations/building-plugins)
Your own site
<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.

agentmods 80×15 button for building-plugins

Your own site · 80×15
<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>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,489 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.00044 $0.06489
Opus 5.5 $0.00018 $0.02596
Sonnet 5.5 $0.00009 $0.01298
Haiku 4.5 $0.00004 $0.00649

Measured 3mo ago against content hash 36c4b492b04f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/validate-plugin.py, templates/full-plugin-template/hooks/scripts/validate-bash.sh, templates/standard-plugin-template/scripts/helper.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

claude-component-builder/skills/building-plugins/SKILL.md · 996 lines

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:

  1. Gathering requirements (name, components, metadata)
  2. Creating the directory structure
  3. Writing the plugin.json manifest
  4. Creating each component (agents, skills, commands, hooks)
  5. Writing comprehensive README.md
  6. 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

Read the full file on GitHub · 996 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. 3mo ago First seen · 996 lines · 44 tokens per session scan A 36c4b492b04f

Subscribe to this mod's changes

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.

Related

building-plugins compared with skills from other repositories

building-plugins next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
building-pluginsC0ntr0lledCha0s/claude-code-plugin-automationsSkill39mo agoMITA44Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code