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/Theme/CONTEXT.md
View on GitHub# Theme Domain
## Purpose
Manages front-office theme lifecycle: import, enable, delete, RTL adaptation, and layout reset. Does NOT handle theme configuration data (colors, fonts) — that lives in theme-specific config files outside the CQRS layer.
## Layers
| Layer | Path |
|-------|------|
| Core CQRS | `src/Core/Domain/Theme/` — Commands, CommandHandlers (concrete, not interfaces), ValueObjects, Exceptions |
| Adapter | `src/Adapter/Theme/ThemeMultiStoreSettingsFormDataProvider.php` — multi-store form data only |
| Back-office UI | `src/PrestaShopBundle/Controller/Admin/Improve/Design/ThemeController.php` |
## Non-obvious patterns
- This domain has **no Query/QueryResult** — it is write-only via CQRS. Theme reading is done through the legacy `Theme` service layer, not through domain queries.
- Several `CommandHandler` implementations are **concrete classes directly in `src/Core/Domain/Theme/CommandHandler/`** (e.g. `DeleteThemeHandler`, `EnableThemeHandler`), not in `src/Adapter/`. This departs from the standard Core=interface / Adapter=implementation split.
- `ThemeImportSource` value object encapsulates three import strategies (archive upload, URL, FTP path) in one object using named static constructors.
- `AdaptThemeToRTLLanguagesCommand` triggers RTL CSS generation — it is only relevant when the shop has RTL languages installed.
## Canonical examples
- `src/Core/Domain/Theme/Command/ImportThemeCommand.php` + `src/Core/Domain/Theme/CommandHandler/ImportThemeHandler.php`
## Related
- [CQRS Component](../../Component/CQRS/CONTEXT.md)
- [Forms Component](../../Component/Forms/CONTEXT.md)
- [GOTCHAS.md](../../GOTCHAS.md) — concrete handlers live in Core (not Adapter), breaks standard pattern
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 |