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/Component/FacetedSearch/CONTEXT.md
View on GitHub# FacetedSearch Component
## Purpose
Layered/faceted product filtering on the storefront: Core defines the contracts (`ProductSearchProviderInterface`, `Facet`, `Filter`), the `ps_facetedsearch` native module provides the concrete implementation. Does not handle back-office search or grid filtering.
## Layers
| Layer | Path |
|-------|------|
| Core contracts + value objects | `src/Core/Product/Search/` |
| Module implementation | `modules/ps_facetedsearch/src/` |
## Non-obvious patterns
- The Core layer owns the contracts (`ProductSearchProviderInterface`, `FacetsRendererInterface`, `Facet`, `Filter`) but has zero concrete implementation — the module is mandatory for faceted search to work
- `Filter::nextEncodedFacets` encodes the entire URL filter state as a single string — used for shareable/bookmarkable filter URLs
- 8 filter types defined in `Filters/Converter`: `attribute_group`, `availability`, `category`, `condition`, `feature`, `manufacturer`, `price`, `weight`
- Cache invalidation is hook-driven: `HookDispatcher` listens to product/attribute/feature changes
## Canonical examples
- `src/Core/Product/Search/ProductSearchProviderInterface.php`
- `src/Core/Product/Search/Facet.php`
- `modules/ps_facetedsearch/src/Product/SearchProvider.php`
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 |