Make or debug a plugin: a bundle of skills, slash commands, subagents, hooks, MCP servers and settings that installs from a marketplace. Use to create, change or debug a plugin, its plugin.json manifest, its marketplace entry, or its hooks.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Plugin Authoring?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tomorrow-dev-plugin-authoring)
---
name: plugin-authoring
description: 'Make or debug a plugin: a bundle of skills, slash commands, subagents, hooks, MCP servers and settings that installs from a marketplace. Use to create, change or debug a plugin, its plugin.json manifest, its marketplace entry, or its hooks.'
menu-description: 'Create and debug plugins (manifest, skills, commands, hooks, marketplace)'
allowed-tools: Read, Write, Edit, Bash
---
# Plugin Authoring
A plugin is a directory. Everything is optional except the manifest, and components sit at the plugin root, never inside `.claude-plugin/`.
```
my-plugin/
.claude-plugin/plugin.json manifest
skills/<name>/SKILL.md skills
commands/<name>.md slash commands (markdown with frontmatter)
agents/<name>.md subagents
hooks/hooks.json hooks (same schema as settings.json "hooks")
.mcp.json MCP servers
settings.json default settings applied while enabled
```
## Manifest
`.claude-plugin/plugin.json`:
```json
{
"name": "my-plugin",
"version": "0.1.0",
"description": "What it does",
"author": { "name": "You" },
"userConfig": { "apiKey": { "description": "Key", "sensitive": true } }
}
```
`name` is kebab-case and namespaces the components (`/my-plugin:deploy`). Custom paths (`commands`, `skills`, `agents`, `hooks`, `mcpServers`) may be given in the manifest and are relative to the plugin root, starting with `./`.
## Paths and options
- Use `${CLAUDE_PLUGIN_ROOT}` in hooks, MCP configs and scripts for files inside the plugin: the install location moves between versions.
- `${CLAUDE_PLUGIN_DATA}` is a directory that survives updates, for caches and state.
- `userConfig` values are available as `${user_config.<key>}` and as `CLAUDE_PLUGIN_OPTION_<KEY>` in hook processes.
- Hook scripts must be executable.
## Marketplace
A marketplace is a repository with `.claude-plugin/marketplace.json`:
```json
{
"name": "my-marketplace",
"owner": { "name": "You" },
"plugins": [
{ "name": "my-plugin", "source": "./plugins/my-plugin", "description": "..." }
]
}
```
`source` is a relative path, or a `{ "source": "github", "repo": "owner/repo" }` / git URL object.
## Try and debug
1. Run `tmrw plugin validate <path>` (or `/plugin validate`) to check the manifest and components.
2. Load it without installing: start with `--plugin-dir <path>`; restart or `/reload-plugins` after edits.
3. Publish: `tmrw plugin marketplace add <path-or-repo>`, then `tmrw plugin install my-plugin@my-marketplace`.
4. If a component is missing: check it is at the plugin root (not under `.claude-plugin/`), the manifest is valid JSON, and the plugin is enabled (`/plugin`).
When asked to build a plugin, ask what it should do, scaffold only the components needed, validate it, and say how to install it.