项目文件夹

文件
wehub-resource-sync bb5c75ce05
Component Security Validation / Security Audit (push) Has been cancelled
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:38:58 +08:00

1 行
1.5 KiB
JSON

{"content": "---\nname: salesforce-development\ndescription: \"Expert patterns for Salesforce platform development including Lightning Web Components (LWC), Apex triggers and classes, REST/Bulk APIs, Connected Apps, and Salesforce DX with scratch orgs and 2nd generation packages (2GP). Use when: salesforce, sfdc, apex, lwc, lightning web components.\"\nsource: vibeship-spawner-skills (Apache 2.0)\n---\n\n# Salesforce Development\n\n## Patterns\n\n### Lightning Web Component with Wire Service\n\nUse @wire decorator for reactive data binding with Lightning Data Service\nor Apex methods. @wire fits LWC's reactive architecture and enables\nSalesforce performance optimizations.\n\n\n### Bulkified Apex Trigger with Handler Pattern\n\nApex triggers must be bulkified to handle 200+ records per transaction.\nUse handler pattern for separation of concerns, testability, and\nrecursion prevention.\n\n\n### Queueable Apex for Async Processing\n\nUse Queueable Apex for async processing with support for non-primitive\ntypes, monitoring via AsyncApexJob, and job chaining. Limit: 50 jobs\nper transaction, 1 child job when chaining.\n\n\n## Anti-Patterns\n\n### ❌ SOQL Inside Loops\n\n### ❌ DML Inside Loops\n\n### ❌ Hardcoding IDs\n\n## ⚠️ Sharp Edges\n\n| Issue | Severity | Solution |\n|-------|----------|----------|\n| Issue | critical | See docs |\n| Issue | high | See docs |\n| Issue | medium | See docs |\n| Issue | high | See docs |\n| Issue | critical | See docs |\n| Issue | high | See docs |\n| Issue | high | See docs |\n| Issue | critical | See docs |\n"}