Stats
Actions
Tags
From shopware-core
Scaffold eines CLI-Commands (bin/console) in einem Shopware-6-Plugin inkl. services.xml-Registrierung.
How this command is triggered — by the user, by Claude, or both
Slash command
/shopware-core:sw-command-create <command:name> [--plugin <PluginName>]haikuThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /sw-command-create Erzeuge einen Symfony-Command im Ziel-Plugin. Details siehe Skill `sw-cli-command`. 1. Command-Name `vendor:domain:action` (z.B. `ff:content:import`) aus `$ARGUMENTS`. 2. Ziel-Plugin bestimmen (aus `--plugin` oder erkanntem `custom/plugins/*`). 3. Datei `src/Command/<ClassName>.php` mit `#[AsCommand(name, description)]`, `execute()` mit `SymfonyStyle`, Rückgabe `Command::SUCCESS`. 4. Falls keine Attribut-Autoconfiguration: in `services.xml` mit Tag `console.command` registrieren. 5. Benötigte Repositories/Services als Constructor-Argumente ergänzen. Klassenname = ...
Erzeuge einen Symfony-Command im Ziel-Plugin. Details siehe Skill sw-cli-command.
vendor:domain:action (z.B. ff:content:import) aus $ARGUMENTS.--plugin oder erkanntem custom/plugins/*).src/Command/<ClassName>.php mit #[AsCommand(name, description)], execute() mit SymfonyStyle,
Rückgabe Command::SUCCESS.services.xml mit Tag console.command registrieren.Klassenname = PascalCase aus dem Action-Teil + Command. Keine Geschäftslogik im Command bündeln, die in einen Service gehört.
npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-core