What problem does it solve? Salesforce DX projects fail deploys for obscure reasons: invalid metadata tags, permission set quirks, and Apex patterns that only surface at runtime. This Skill consolidates hard-won lessons into short reference files so you avoid deploy failures and write correct Apex and LWC code the first time. ## Core Features & Use Cases - Metadata Gotchas: Documents constraints for Html fields, CustomObject sharingModel (OWD), and API 66.0+ permission set rules like the removed userLicense tag and required-field FLS restrictions. - Apex & Testing Patterns: Covers @AuraEnabled annotations, custom permission checks with FeatureManagement, Comparable sorting, sharing keywords, and granting custom permissions in tests via SetupEntityAccess. - LWC & CLI Reference: Shows record context wiring, refreshApex after DML, js-meta.xml object targeting, and sf CLI commands for deploys, test runs, and permission set assignment. - Use Case: A deploy fails with "You cannot deploy to a required field" — load the metadata reference to find the exact permission set fix, then redeploy with the documented sf CLI command. ## Quick Start Ask the AI to load the sf-dev skill before writing Salesforce metadata, Apex controllers, or LWC components, or when troubleshooting a failed sf project deploy.