# New Plugin

> Scaffold a new plugin with proper marketplace structure

- Skill: `tmchow/new-plugin` (Agent Skill)
- Install (CLI): `npx skillmds@latest add tmchow/new-plugin`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tmchow/new-plugin/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tmchow (https://skillmd.com/u/tmchow)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tmchow/new-plugin

---


# New Plugin Scaffolder

Create a new plugin for the tmc-marketplace with the correct structure.

## Usage

```
/new-plugin <plugin-name>
```

## What This Creates

```
plugins/<plugin-name>/
  .claude-plugin/plugin.json   # Plugin manifest
  skills/                      # Skills directory
  agents/                      # Agents directory (if needed)
  README.md                    # Plugin documentation
```

## Workflow

1. **Get plugin name** from args or ask user
2. **Validate name**: lowercase, hyphenated, no spaces
3. **Check for conflicts**: Ensure plugin doesn't already exist
4. **Create structure**:

### plugin.json template

```json
{
  "name": "<plugin-name>",
  "version": "0.1.0",
  "description": "<description>",
  "author": {
    "name": "Trevin Chow"
  },
  "skills": "./skills/"
}
```

### README.md template

```markdown
# <plugin-name>

<description>

## Installation

\`\`\`
/plugin marketplace add tmchow/tmc-marketplace
/plugin install <plugin-name>@tmc-marketplace
\`\`\`

## Skills

- List skills here

## Agents

- List agents here (if any)
```

5. **Register in marketplace**: Add entry to `.claude-plugin/marketplace.json`
6. **Confirm**: Show created structure and next steps

## Next Steps After Creation

Tell the user:
- Add skills to `plugins/<plugin-name>/skills/<skill-name>/SKILL.md`
- Add agents to `plugins/<plugin-name>/agents/<agent-name>/AGENT.md` (optional)
- Update README.md with skill/agent documentation
- Run `/validate-plugin <plugin-name>` before committing

