Spree Development Patterns
Implements modern Spree Commerce architecture and customization patterns for robust e-commerce extensions.
This skill provides a comprehensive framework of best practices and architectural patterns specifically designed for Spree Commerce v5+ development. It guides users through the customization preference hierarchy—prioritizing event-driven logic and service-object swapping via Spree::Dependencies over invasive decorators. By enforcing idempotent subscribers, multi-store scoping, and modern Hotwire/Turbo idioms, the skill ensures that Spree extensions are maintainable, performant, and easy to upgrade. It is an essential tool for developers building complex commerce features, custom calculators, or integrating third-party ERP systems with the Spree ecosystem.