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/Search/CONTEXT.md
View on GitHub# Search Domain
## Purpose
Handles product search indexation (triggering full or partial reindexing) for the back-office. It does NOT implement front-office search UI rendering — that is handled by `src/Core/Product/Search/` and `SearchProductSearchProvider`.
## Layers
| Layer | Path |
|-------|------|
| Core CQRS | `src/Core/Domain/Search/` — Commands, CommandHandler interface, Exceptions only (no Queries) |
| Adapter | `src/Adapter/Search/` — `SearchIndexationHandler`, `SearchProductSearchProvider` (front-office, unrelated to CQRS) |
| Legacy ObjectModel | `classes/Search.php` (1273 lines) — do not add logic here |
## Non-obvious patterns
- The domain is command-only (no Query/QueryResult). Reindexation is a fire-and-forget operation.
- `SearchIndexationCommand` accepts an optional `ProductId` and `ShopConstraint`, allowing single-product or shop-scoped reindexation in addition to full reindex.
- `src/Adapter/Search/SearchProductSearchProvider.php` is a front-office concern that happens to live in this adapter but has nothing to do with the CQRS indexation flow.
- `SearchIndexationHandlerInterface` is declared in Core (`CommandHandler/`), not in Adapter — the adapter provides the concrete implementation.
## Canonical examples
- `src/Core/Domain/Search/Command/SearchIndexationCommand.php` + `src/Adapter/Search/CommandHandler/SearchIndexationHandler.php`
## Related
- [CQRS Component](../../Component/CQRS/CONTEXT.md)
- [Shop Domain](../Shop/CONTEXT.md) — `ShopConstraint` is used to scope indexation
- `tests/Integration/Behaviour/Features/Scenario/Search/` — 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 |