Skip to content
Back to skills

Plugin Authoring

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsbashgitapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add tomorrow-dev/tomorrow-code --skill plugin-authoring --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plugin Authoring?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plugin Authoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tomorrow-dev-plugin-authoring/badge)](https://www.skillsdirectory.com/skills/tomorrow-dev-plugin-authoring)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.