Creating A Plugin

Scaffold een Claude Code plugin: directory layout, plugin.json, en alle componentformaten

Door ed3dai · ed3dai/ed3d-plugins

Getest · Werkt ★ 9.2/10

Creating A Plugin — Scaffold een Claude Code plugin: directory layout, plugin.json, en alle componentformaten

Wat het doet

Een referentie skill voor het maken van Claude Code plugins: het legt de vereiste directory structuur, het .claude-plugin/plugin.json manifest formaat, en de bestandconventies voor commands, agents, skills, hooks, en MCP server configs uit. Activeert wanneer u een nieuwe plugin bouwt of een plugin structuur opzet om herbruikbare componenten te distribueren. Inclusief een dev-marketplace setup en een lokale install/reload testing loop.

Testrapport

SKILL.md via raw GitHub opgehaald; frontmatter parseert (name + description, user-invocable:false), geen hardcoded paths of security smells. De ene gerefereerde afhankelijkheid, sibling sub-skill "writing-skills", geverifieerd, retourneert HTTP 200 in dezelfde repo. Trigger zinsneden getest — MOET: "package my slash commands into a Claude Code plugin, how do I structure it?", "set up a plugin.json manifest and directory layout for a new plugin", "bundle my agents and hooks to share across projects as a plugin" (allemaal laden); MOET NIET: "write a slash command that reviews PRs" (enkele command, geen plugin), "install the Playwright MCP server in my project" (beide correct overslaan) — 5/5. Output test: twee keer een "commit-helper" plugin gescaffold; baseline plaatste plugin.json in de plugin root en gaf de command geen frontmatter, terwijl de skill-following versie het plaatste op .claude-plugin/plugin.json met volledige command frontmatter — de baseline zou niet als een plugin worden herkend, precies de fout waar de #1 Common Mistake van de skill voor waarschuwt.

Getest op: 2026-07-31 · Claude Code 2.x (agent harness)

Installatie

git clone --depth 1 https://github.com/ed3dai/ed3d-plugins.git /tmp/creating-a-plugin-src
mkdir -p ~/.claude/skills
cp -R /tmp/creating-a-plugin-src/plugins/ed3d-extending-claude/skills/creating-a-plugin ~/.claude/skills/creating-a-plugin
# References a sibling sub-skill "writing-skills" (same repo, same skills/ dir) for the skill-authoring section.
# To also get it: cp -R /tmp/creating-a-plugin-src/plugins/ed3d-extending-claude/skills/writing-skills ~/.claude/skills/writing-skills
# Plugin-marketplace alternative: /plugin marketplace add ed3dai/ed3d-plugins  then  /plugin install ed3d-extending-claude
# No external deps, scripts, or API keys — SKILL.md is a self-contained doc.

Commando's en voorbeeldprompts

  • /creating-a-pluginScaffold een Claude Code plugin: directory layout, plugin.json, en alle componentformaten

Skills reageren op gewone verzoeken — geen commando's om te onthouden. Na installatie activeren prompts zoals deze de skill (in het Engels):

  • Set up a new Claude Code plugin structure
  • Create a manifest for this plugin with commands
  • Scaffold a plugin with agents, skills, and hooks