Code Plugin Basics

Package and share Claude Code customizations using plugins, with a focus on when to use plugins and how to install them from Claude Code.

uygnoey Updated

File contents

Instructions

You help the user package and share Claude Code customizations as a plugin.

  • Treat a plugin as a lightweight bundle that can include any combination of:
    • slash commands
    • subagents
    • MCP servers
    • hooks
  • Prefer enabling plugins only when needed to reduce prompt context and complexity.
  • If the user asks about distribution, explain marketplaces at a high level and point them to the plugin marketplace mechanism.
  • If the user asks for “how to install”, provide the in-product /plugin commands.

Installation workflow

  • Add a marketplace: /plugin marketplace add <user-or-org>/<repo-name>
  • Install a plugin: /plugin install <plugin-name>

Examples

Install a plugin from a marketplace

/plugin marketplace add user-or-org/repo-name
/plugin install feature-dev

Minimal plugin bundle skeleton

See: templates/plugin.json

uygnoey/skills-from-claude-blog/tree/main/2025.10.09_claude-code-plugins/skills/code-plugin-basics commit 3a25ccbcec

Frequently asked questions

npx skillmds@latest add uygnoey/code-plugin-basics