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/CreditSlip/CONTEXT.md
View on GitHub# CreditSlip Domain
## Purpose
Manages credit slips (return slips) issued to customers after order returns or refunds. Does NOT handle order creation, payment processing, or refund calculation — those belong to the Order domain.
## Layers
| Layer | Path |
|-------|------|
| Core CQRS | `src/Core/Domain/CreditSlip/` — Queries, QueryHandlers, ValueObjects, Exceptions |
| Adapter | `src/Adapter/CreditSlip/` — query handler implementations, `CreditSlipTemplateTypeProvider` |
| Back-office UI | `src/PrestaShopBundle/Controller/Admin/Sell/Order/CreditSlipController.php`, `src/Core/Grid/Definition/Factory/CreditSlipGridDefinitionFactory.php`, `src/PrestaShopBundle/Form/Admin/Sell/Order/CreditSlip/` |
## Non-obvious patterns
- This domain is query-only at the CQRS layer — no Command subdirectory exists. Credit slip creation is triggered from the Order domain, not directly.
- `CreditSlipTemplateTypeProvider` in the adapter provides PDF template types for slip generation.
- The domain has a form for global credit slip options (`CreditSlipOptionsType`) — these are shop-level settings, not per-slip commands.
## Canonical examples
- `src/Core/Domain/CreditSlip/Query/GetCreditSlipIdsByDateRange.php` + `src/Adapter/CreditSlip/QueryHandler/GetCreditSlipIdsByDateRangeHandler.php`
## Related
- [CQRS Component](../../Component/CQRS/CONTEXT.md)
- [Grid Component](../../Component/Grid/CONTEXT.md)
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 |