This skill provides a comprehensive set of best practices for developing applications using Shopware 6.6 and above. It's designed for AI agents and LLMs assisting agency developers, offering 77 rules across 22 categories to guide automated refactoring and code generation.
$ npx skills add https://github.com/bartundmett/skills --skill shopware6-best-practicesThis skill delivers structured best practices for Shopware 6.6 and above development, containing 77 rules organized across 22 categories. It's designed to guide AI agents and Claude Code in assisting agency developers with plugin development, storefront customization, and administration extensions. The skill ensures consistent code generation and refactoring by embedding Shopware-specific patterns and conventions that reduce manual review and accelerate development cycles. Developers working on Shopware projects benefit from automated guidance that enforces architecture decisions and platform conventions without requiring explicit instruction for each task.
Install with `npx skills add https://github.com/bartundmett/skills --skill shopware6-best-practices`
Automated code refactoring for Shopware 6.6+
Guiding developers in best practices for Shopware
Supporting LLMs in generating Shopware-related code
$ npx skills add https://github.com/bartundmett/skills --skill shopware6-best-practicesgit clone https://github.com/bartundmett/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as a Shopware 6 development expert specializing in Shopware 6.6+ best practices. Provide actionable recommendations for [TASK] in [COMPANY]'s [INDUSTRY] project. Follow the 77 Shopware 6 best practices across 22 categories, including [CATEGORY]. Use Shopware's latest standards for [PLATFORM_COMPONENT].
# Shopware 6 Best Practices Report: Payment Plugin Refactoring
## Summary
This report provides Shopware 6.6+ compliant recommendations for refactoring [COMPANY]'s payment integration plugin currently running on Shopware 6.5. The analysis covers 12 best practice violations across 3 critical categories.
## Critical Issues Found
### 1. Deprecated Payment Handler
**Current:** `PaymentHandler` class extends `AbstractPaymentHandler` with legacy `getDecorated()` method
**Best Practice:** Replace with `PaymentMethodRoute` pattern (Shopware 6.6+)
**Impact:** Future compatibility risk, missing async payment processing support
### 2. Database Schema Mismatch
**Current:** Custom `payment_method` table uses `description` instead of `translated` fields
**Best Practice:** Implement `translatable` fields for multi-language support
**SQL Migration Required:**
```sql
ALTER TABLE `payment_method`
MODIFY `description` VARCHAR(255) NULL DEFAULT NULL COMMENT 'payment_method.description',
ADD COLUMN `translated` JSON NULL COMMENT 'payment_method.translated';
```
### 3. Plugin Configuration Issues
**Current:** Payment plugin uses `SystemConfigService` with hardcoded keys
**Best Practice:** Implement structured configuration with `ConfigurationService`
**Recommended Structure:**
```json
{
"payment": {
"credentials": {
"apiKey": "",
"merchantId": ""
},
"features": {
"asyncProcessing": true,
"refundSupport": false
}
}
}
```
## Implementation Priority
- [ ] Update payment handler to `PaymentMethodRoute` (Priority: Critical)
- [ ] Migrate database schema (Priority: High)
- [ ] Refactor configuration service (Priority: Medium)
## Testing Checklist
- [ ] Verify async payment processing
- [ ] Test multi-language payment descriptions
- [ ] Validate configuration migration path
- [ ] Check plugin compatibility with Shopware 6.7+Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan