Tobin South 6b70f99f76 docs(plugin-dev): deprecate commands/ in favor of skills/<name>/SKILL.md (#717) 5 месяцев назад
..
.claude-plugin 19a119f97e Update plugins library to include authors (#6) 8 месяцев назад
commands 6b70f99f76 docs(plugin-dev): deprecate commands/ in favor of skills/<name>/SKILL.md (#717) 5 месяцев назад
skills 6b70f99f76 docs(plugin-dev): deprecate commands/ in favor of skills/<name>/SKILL.md (#717) 5 месяцев назад
.mcp.json 4ca561fb85 creating intital scaffolding for claude code plugins 9 месяцев назад
LICENSE aecd4c852f Add Apache 2.0 LICENSE files to all internal plugins 6 месяцев назад
README.md 6b70f99f76 docs(plugin-dev): deprecate commands/ in favor of skills/<name>/SKILL.md (#717) 5 месяцев назад

README.md

Example Plugin

A comprehensive example plugin demonstrating Claude Code extension options.

Structure

example-plugin/
├── .claude-plugin/
│   └── plugin.json            # Plugin metadata
├── .mcp.json                  # MCP server configuration
├── skills/
│   ├── example-skill/
│   │   └── SKILL.md           # Model-invoked skill (contextual guidance)
│   └── example-command/
│       └── SKILL.md           # User-invoked skill (slash command)
└── commands/
    └── example-command.md     # Legacy slash command format (see note below)

Extension Options

Skills (skills/)

Skills are the preferred format for both model-invoked capabilities and user-invoked slash commands. Create a SKILL.md in a subdirectory:

Model-invoked skill (activated by task context):

---
name: skill-name
description: Trigger conditions for this skill
version: 1.0.0
---

User-invoked skill (slash command — /skill-name):

---
name: skill-name
description: Short description for /help
argument-hint: <arg1> [optional-arg]
allowed-tools: [Read, Glob, Grep]
---

Commands (commands/) — legacy

Note: The commands/*.md layout is a legacy format. It is loaded identically to skills/<name>/SKILL.md — the only difference is file layout. For new plugins, prefer the skills/ directory format. This plugin keeps commands/example-command.md as a reference for the legacy layout.

MCP Servers (.mcp.json)

Configure external tool integration via Model Context Protocol:

{
  "server-name": {
    "type": "http",
    "url": "https://mcp.example.com/api"
  }
}

Usage

  • /example-command [args] - Run the example slash command
  • The example skill activates based on task context
  • The example MCP activates based on task context