jeffsenso/prestashop-skills / skills/prestashop-module-development
prestashop-module-development
VerifiedComplete PrestaShop module development workflow using modern architecture and best practices. Use when: creating new PrestaShop modules, updating legacy modules to modern code, implementing hooks and actions, setting up module configuration pages, adding front office features, handling database operations, implementing security measures, managing translations, creating cart rules and vouchers, building Symfony console commands, or modernizing existing PrestaShop modules from legacy patterns to current standards.
ps9-core-ai/Domain/AttributeGroup/CONTEXT.md
View on GitHub# AttributeGroup Domain
## Purpose
Manages product attribute groups (e.g., "Color", "Size") and their individual attributes (e.g., "Red", "XL") used to define product combinations. Does not handle product combinations directly — that belongs to the Product domain.
## Layers
| Layer | Path |
|-------|------|
| Core CQRS | `src/Core/Domain/AttributeGroup/` — Commands, Queries, QueryResults, ValueObjects, Exceptions |
| Core CQRS (sub-domain) | `src/Core/Domain/AttributeGroup/Attribute/` — full CQRS stack for individual Attributes |
| Adapter | `src/Adapter/AttributeGroup/` — handlers, repository, validator, abstract base handlers |
| Legacy ObjectModel | `classes/AttributeGroup.php` (391 lines) — do not add logic here |
| Back-office UI | `src/PrestaShopBundle/Controller/Admin/Sell/Catalog/AttributeGroupController.php` |
## Non-obvious patterns
- The `Attribute` sub-domain (`AttributeGroup/Attribute/`) has its own complete CQRS stack nested inside this domain — individual attribute CRUD lives here, not in a separate top-level domain.
- The legacy object `Attribute` was renamed to `ProductAttribute` to avoid conflict with the new Attribute system in PHP 8
- `src/Adapter/AttributeGroup/AbstractAttributeGroupHandler.php` and `AbstractAttributeGroupQueryHandler.php` provide shared base classes for handlers — extend these rather than duplicating repository access.
- `src/Adapter/AttributeGroup/AttributeGroupViewDataProvider.php` handles view data assembly outside the standard query handler pattern.
## Canonical examples
- `src/Core/Domain/AttributeGroup/Command/AddAttributeGroupCommand.php` + `src/Adapter/AttributeGroup/CommandHandler/AddAttributeGroupHandler.php`
## Related
- [CQRS Component](../../Component/CQRS/CONTEXT.md)
- [Forms Component](../../Component/Forms/CONTEXT.md)
- [Grid Component](../../Component/Grid/CONTEXT.md)
- `tests/Integration/Behaviour/Features/Scenario/AttributeGroup/` — Behat behavior scenarios
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |