Agent skill
framework:make:urls
Génère classe Urls + Message CQRS + Handler
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/frameworkmakeurls
SKILL.md
Framework Make Urls Skill
Description
Génère une classe Urls pour la génération d'URLs d'une entité avec pattern CQRS (Message + Handler).
Usage
Use skill framework:make:urls
Variables requises
- {EntityName} - Nom de l'entité en PascalCase (ex: Product)
- {entityName} - Nom de l'entité en camelCase (ex: product)
- {namespace} - Namespace du projet (défaut: App)
Dépendances
- Entité dans
src/Entity/{EntityName}.php - Repository dans
src/Repository/{EntityName}Repository.php - Interface repository dans
src/Repository/{EntityName}RepositoryInterface.php
Outputs
src/Urls/{EntityName}Urls.phpsrc/MessageHandler/{EntityName}UrlsMessage.phpsrc/MessageHandler/{EntityName}UrlsMessageHandler.php
Workflow
- Demander le nom de l'entité (EntityName)
- Vérifier que l'entité et le repository existent
- Générer les 3 classes depuis les templates
templates/ - Afficher les fichiers créés
Patterns appliqués
Classe Urls
final readonly, constructeur privé, factorynew()- Propriétés : UrlGeneratorInterface + entité
Message CQRS
- Extends AbstractQueryEvent, Implements QueryInterface
final, constructeur privé, factorynew()
MessageHandler
final readonly, attribut #[AsMessageHandler]- Injection : repository + UrlGeneratorInterface
References
- Usage - Architecture CQRS et exemples d'enrichissement
Notes
- Pattern CQRS : séparation query (Message) / handler
- Classe Urls enrichissable avec méthodes spécifiques (show, edit, delete)
- Immutabilité (readonly)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?