plugin-structure
Erstellen Sie gut strukturierte Claude Code-Plugins
Également disponible depuis: anthropics,davila7
Die Entwicklung von Claude Code-Plugins erfordert das Verständnis der richtigen Verzeichnisstruktur, Manifestkonfiguration und Komponentenorganisationsmuster. Diese Fähigkeit bietet umfassende Anleitungen zur Plugin-Architektur, damit Sie wartbare Plugins erstellen können, die den Claude Code-Konventionen entsprechen.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "plugin-structure". How do I structure a new plugin with commands and hooks?
Résultat attendu:
- A Claude Code plugin follows this structure:
- • .claude-plugin/plugin.json - Required manifest
- • commands/ - Slash command definitions (.md files)
- • hooks/ - Event handler configuration
- The manifest defines plugin metadata and can specify custom paths. Commands and hooks auto-discover from their directories. Hooks can run bash scripts in response to events like PreToolUse or PostToolUse.
Utilisation de "plugin-structure". What goes in the plugin.json file?
Résultat attendu:
- The plugin.json manifest requires only a name field at minimum. Recommended fields include version, description, author, and license. Component paths can be customized but default directories are auto-discovered. Use ${CLAUDE_PLUGIN_ROOT} for portable script references in hook configurations.
Utilisation de "plugin-structure". How do I organize skills in my plugin?
Résultat attendu:
- Skills go in the skills/ directory with each skill in its own subdirectory containing a SKILL.md file. Claude Code auto-discovers all SKILL.md files in skill subdirectories. Skills can include supporting files like scripts, references, and examples in their subdirectories.
Audit de sécurité
SûrThis is a documentation-only skill from the official Anthropic repository (anthropics/claude-plugins-official). All 583 static findings are FALSE POSITIVES - the detected patterns are markdown code block delimiters, example configurations, and educational content in documentation files, not executable code with security implications.
Facteurs de risque
⚙️ Commandes externes (457)
🔑 Variables d’environnement (8)
🌐 Accès réseau (21)
📁 Accès au système de fichiers (9)
Score de qualité
Ce que vous pouvez construire
Erstellen Sie Ihr erstes Plugin
Neuentwickler, die die Claude Code-Plugin-Struktur lernen, benötigen klare Anleitungen zum Verzeichnislayout, Manifest-Setup und zur Komponentenorganisation.
Teamstandards etablieren
Teams, die Claude Code einführen, benötigen konsistente Plugin-Architekturmuster für wartbare, skalierbare Plugin-Entwicklung über Projekte hinweg.
Im Marketplace veröffentlichen
Autoren, die Plugins für den Marketplace vorbereiten, müssen Konventionen und Best Practices für die Community-Adoption verstehen.
Essayez ces prompts
Wie strukturiere ich ein neues Claude Code-Plugin? Welche Verzeichnisse benötige ich und wo sollte die plugin.json-Datei platziert werden?
Welche Felder werden in plugin.json benötigt? Zeigen Sie mir, wie ich benutzerdefinierte Pfade für Befehle, Agenten und Hooks konfiguriere.
Wie sollte ich Befehle, Agenten, Fähigkeiten und Hooks in meinem Plugin organisieren? Welche Namenskonventionen sollte ich befolgen?
Zeigen Sie mir ein fortgeschrittenes Plugin-Beispiel mit MCP-Servern, Hooks und gemeinsam genutzten Skripten. Wie verwende ich ${CLAUDE_PLUGIN_ROOT} korrekt?Bonnes pratiques
- Verwenden Sie kebab-case für alle Verzeichnisnamen, Dateinamen und Komponentennamen für Konsistenz über alle Plattformen hinweg.
- Halten Sie das plugin.json-Manifest schlank und verlassen Sie sich auf Auto-Discovery für Standard-Komponentenverzeichnisse.
- Verwenden Sie immer ${CLAUDE_PLUGIN_ROOT} anstelle von hartcodierten absoluten Pfaden, um Ihr Plugin portabel zu machen.
Éviter
- Hartcodieren von absoluten Pfaden wie /Users/name/plugins/ - dies bricht die Portabilität über verschiedene Systeme hinweg.
- Verschachteln von Komponentenverzeichnissen innerhalb von .claude-plugin/ - Komponenten müssen auf Plugin-Root-Ebene sein.
- Überspringen des plugin.json-Manifests oder Platzierung am falschen Ort - Claude Code erfordert es in .claude-plugin/