Why This Matters#

A plugin is a set of add-ons for Claude Code packaged in a single folder. Just as a smartphone app extends the phone’s capabilities, a plugin adds new commands, skills, and automatic checks to Claude Code.

Plugins let you:

  • πŸ“¦ Install ready-made solutions from the community
  • πŸ”„ Reuse the same tools across different projects
  • πŸ‘₯ Share useful configurations with your team
  • 🎯 Use specialized skills (code review, Git workflow, design)

Plugin Structure#

Each plugin is a folder with the following structure:

my-plugin/
β”œβ”€β”€ .claude-plugin/
β”‚   └── plugin.json        ← Manifest (plugin passport)
β”œβ”€β”€ commands/              ← Commands (slash commands)
β”‚   └── my-command.md
β”œβ”€β”€ agents/                ← Agents (specialized assistants)
β”‚   └── my-agent.md
β”œβ”€β”€ skills/                ← Skills (knowledge bases)
β”‚   └── my-skill/
β”‚       └── SKILL.md
β”œβ”€β”€ hooks/                 ← Hooks (automatic checks)
β”‚   └── hooks.json
└── README.md              ← Documentation

Manifest β€” plugin.json#

This is the plugin’s “passport.” Minimal version:

{
  "name": "my-plugin"
}

Recommended version with full info:

{
  "name": "my-plugin",
  "version": "1.0.0",
  "description": "What this plugin does",
  "author": {
    "name": "Your Name",
    "email": "email@example.com"
  }
}

Rules for the name (name):

  • Only lowercase letters, numbers, and hyphens: code-review βœ…
  • No spaces or uppercase letters: Code Review ❌
  • Must start with a letter: 1-plugin ❌

Installing Plugins#

Method 1: From the Marketplace#

# Inside Claude Code, use the command
/plugins install code-review

Method 2: From a Local Folder (For Development)#

claude --plugin-dir ./path/to/my-plugin

Method 3: From a Git Repository#

Clone the repository and specify the path to the plugin folder.

Overview of Official Plugins#

πŸ” code-review β€” Automated Code Review#

Conducts pull request reviews using specialized agents and a confidence scoring system.

{
  "name": "code-review",
  "description": "Automated code review for pull requests",
  "version": "1.0.0"
}

What it does: analyzes your code for errors, style, and security.

πŸͺ hookify β€” Creating Hooks via Markdown#

Lets you create hooks (automatic checks) through simple .local.md files instead of writing scripts.

{
  "name": "hookify",
  "version": "0.1.0",
  "description": "Easily create hooks to prevent unwanted behaviors"
}

What it does: analyzes patterns in the conversation and configures hooks. Includes commands /hookify:hookify, /hookify:list, /hookify:configure.

πŸ“ pr-review-toolkit β€” Comprehensive Pull Request Analysis#

A set of 5+ specialized agents for deep PR analysis:

  • code-reviewer β€” general code review
  • pr-test-analyzer β€” test analysis
  • comment-analyzer β€” comment analysis
  • silent-failure-hunter β€” finding silent failures
  • code-simplifier β€” code simplification
  • type-design-analyzer β€” type analysis

πŸ“¦ commit-commands β€” Simplified Git Operations#

Three convenient commands:

  • /commit-commands:commit β€” create a commit
  • /commit-commands:commit-push-pr β€” commit + push + create PR
  • /commit-commands:clean_gone β€” clean up stale branches

🎨 frontend-design β€” Interface Design#

A skill for creating quality UI/UX implementations:

{
  "name": "frontend-design",
  "description": "Frontend design skill for UI/UX implementation"
}

πŸ”’ security-guidance β€” Security Checks#

Hooks that automatically remind about security when editing files. Checks Edit, Write, MultiEdit operations.

πŸ› οΈ plugin-dev β€” Plugin Development#

Skills for creating your own plugins: structure, commands, hooks, skills.

πŸ“š Other Plugins#

  • explanatory-output-style β€” explanatory response style
  • learning-output-style β€” educational response style
  • ralph-wiggum β€” fun response style πŸ˜„
  • feature-dev β€” feature development
  • claude-opus-4-5-migration β€” migration to new models

How Plugin Commands Differ from Regular Ones#

When using plugins, commands get a namespace:

Without Plugin With Plugin
/review /code-review:review
/commit /commit-commands:commit
/hello /my-plugin:hello

This prevents conflicts if two plugins have commands with the same name.

Step-by-Step: Using a Plugin#

Step 1: Download the Plugin#

# Clone the repository with plugins
git clone https://github.com/anthropics/claude-code-plugins

Step 2: Launch Claude Code with the Plugin#

claude --plugin-dir ./claude-code-plugins/plugins/code-review

Step 3: Use Plugin Commands#

> /code-review:code-review

Claude Code will perform an automated review of your code.

Lesson Summary#

  • A plugin is a folder with a plugin.json manifest and a set of components
  • Plugin components: commands, agents, skills, hooks
  • The plugin name must be in kebab-case format (lowercase letters and hyphens)
  • Plugin commands have a namespace: /plugin-name:command
  • Ready-made plugins exist for code review, Git operations, design, and security
  • Plugins are installed from the marketplace, a local folder, or a Git repository