Creating A Plugin

Szkieletuje plugin Claude Code: układ katalogów, plugin.json i wszystkie formaty komponentów

Autor: ed3dai · ed3dai/ed3d-plugins

Testowano · Działa ★ 9.2/10

Creating A Plugin — Szkieletuje plugin Claude Code: układ katalogów, plugin.json i wszystkie formaty komponentów

Co robi ten skill

Referencyjna umiejętność do tworzenia pluginów Claude Code: przedstawia wymaganą strukturę katalogów, format manifestu .claude-plugin/plugin.json oraz konwencje plików dla commands, agents, skills, hooks i MCP server configs. Uruchamia się, gdy budujesz nowy plugin lub konfigurujesz strukturę pluginu do dystrybucji komponentów wielokrotnego użytku. Zawiera konfigurację dev-marketplace i lokalną pętlę testową install/reload.

Raport z testu

Pobrano SKILL.md via raw GitHub; frontmatter parsował (name + description, user-invocable:false), brak hardcoded paths lub security smells. Zweryfikowano jedną referencyjną zależność, pokrewną sub-skill "writing-skills", zwraca HTTP 200 w tym samym repozytorium. Testowane frazy wyzwalające — POWINNO: "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" (wszystkie ładowane); NIE POWINNO: "write a slash command that reviews PRs" (pojedyncza komenda, brak pluginu), "install the Playwright MCP server in my project" (oba poprawnie pomijane) — 5/5. Test output: dwukrotnie szkieletowano plugin "commit-helper"; baseline umieścił plugin.json w katalogu głównym pluginu i nie nadał komendzie frontmatter, podczas gdy wersja zgodna z umiejętnością umieściła go w .claude-plugin/plugin.json z pełnym frontmatter komendy — baseline nie zostałby rozpoznany jako plugin, dokładnie taka awaria, przed którą ostrzega #1 Common Mistake umiejętności.

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

Instalacja

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.

Komendy i przykładowe prompty

  • /creating-a-pluginSzkieletuje plugin Claude Code: układ katalogów, plugin.json i wszystkie formaty komponentów

Skille uruchamiają się na zwykłe polecenia — bez komend do zapamiętania. Po instalacji aktywują go prompty takie jak te (po angielsku):

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