Create a new plugin element (skill, command, agent, hook, or script) with best practice guidance
Interactively creates new plugin elements with best practice guidance and validation.
/plugin marketplace add lenneTech/claude-code/plugin install lt-dev@lenne-techplugin/Interactively create a new element for this Claude Code plugin package with automatic best practice compliance, consistent structure, and proper placement.
| Command | Purpose |
|---|---|
/lt-dev:plugin:check | Verify all plugin elements against best practices |
/lt-dev:skill-optimize | Optimize existing skill files |
Ask the user (in German):
"Was möchtest du erstellen? Bitte beschreibe dein Vorhaben:
Beispiele:
Wait for user response.
MANDATORY: Before proceeding, fetch the latest official documentation from GitHub:
WebFetch: https://github.com/anthropics/claude-code/blob/main/plugins/README.md
WebFetch: https://github.com/anthropics/skills/blob/main/README.md
For specific element types: Use WebSearch: "Claude Code [topic] documentation site:claude.com"
Topics by element type:
Based on the user's description, analyze and recommend the appropriate element type(s):
| Requirement | Recommended Element |
|---|---|
| Enhance Claude's expertise in a domain | Skill |
User-triggered workflow via /command | Command |
| Autonomous complex multi-step task | Agent |
| Automatic reaction to events | Hook |
| Reusable utility function | Script |
Sometimes multiple elements work together:
Present recommendation (in German):
"Basierend auf deiner Beschreibung empfehle ich:
[Element-Typ]: [Begründung]
[Optional: Kombination mit anderem Element]
Möchtest du so fortfahren, oder hast du Fragen zu den Element-Typen?"
Based on the chosen element type, ask for specific details using AskUserQuestion:
category/name)Before creating, check for:
# Check existing elements
ls -la plugins/lt-dev/skills/
ls -la plugins/lt-dev/commands/
ls -la plugins/lt-dev/agents/
If potential overlap found, inform user (in German):
"Ich habe ähnliche existierende Elemente gefunden:
Optionen:
Was möchtest du tun?"
Create the element with proper structure following the templates from the claude-code-plugin-expert skill.
SKILL.md (main file)reference.md (if detailed reference needed)examples.md (if complex usage patterns)hooks.jsonhooks/scripts/ if external logic neededAfter creation:
Confirm to user (in German):
"[Element-Typ] [Name] wurde erfolgreich erstellt:
[Dateipfad]Möchtest du das Element direkt testen oder weitere Anpassungen vornehmen?"
See: plugins/lt-dev/skills/claude-code-plugin-expert/SKILL.md
See: plugins/lt-dev/commands/create-story.md
See: plugins/lt-dev/agents/npm-package-maintainer.md
User: "Ich möchte, dass Claude bei Code-Reviews automatisch auf unsere Coding-Standards achtet."
Recommendation: Skill - Provides expertise that activates during code review contexts.
Result:
plugins/lt-dev/skills/code-review-standards/
├── SKILL.md
└── standards.md
User: "Entwickler sollen per Command eine neue API-Route mit Controller, Service und Tests erstellen können."
Recommendation: Command - User-triggered workflow with defined steps.
Result:
plugins/lt-dev/commands/scaffold-api-route.md
User: "Nach jedem File-Write soll automatisch Prettier laufen."
Recommendation: Hook - Automatic reaction to PostToolCall event for Write tool.
Result:
plugins/lt-dev/hooks/hooks.json (updated)
plugins/lt-dev/hooks/scripts/format-on-write.ts