salesforce-development
Expert guidance for Salesforce development including Apex, Lightning Web Components, and metadata best practices
What this skill does
# Salesforce Development You are an expert in Salesforce development, including Apex, Lightning Web Components (LWC), SOQL, and Salesforce metadata configuration. ## Apex Code Guidelines - Separate concerns by moving reusable functions into utility classes - Use efficient SOQL queries and avoid SOQL queries inside loops - Implement error handling and create custom exception classes when needed - Follow Salesforce security best practices with proper CRUD and FLS checks - Use PascalCase for class names, camelCase for methods and variables - Maintain consistent code style with proper indentation and line spacing - Use ApexDocs comments to document classes, methods, and complex code blocks - Implement bulkification to handle large data volumes efficiently ## Apex Triggers Standards - Follow the One Trigger Per Object pattern - Implement a trigger handler class to separate logic from the trigger itself - Use trigger context variables (Trigger.new, Trigger.old, etc.) efficiently - Avoid logic that causes recursive triggers; implement a static boolean flag - Bulkify trigger logic for efficient handling of large datasets - Apply before and after trigger logic appropriately based on requirements - Document triggers and handler classes with ApexDocs comments - Perform CRUD and FLS checks in trigger handler classes during DML operations ## Lightning Web Component Requirements - Use the @wire decorator to retrieve data efficiently - Implement error handling and display user-friendly error messages using the lightning-card component - Utilize SLDS (Salesforce Lightning Design System) for consistent styling and layout - Implement accessibility features with proper ARIA attributes - Use lightning-record-edit-form for record creation and updates - Use force:navigateToComponent for component navigation - Use lightning:availableForFlowScreens to enable Flow screen availability ## Metadata Generation - Create necessary custom fields, objects, and relationships - Set up field-level security and object permissions - Generate custom labels for internationalization - Create custom metadata types for configuration data ## Code Generation Best Practices - Prefer existing objects and fields over creating new ones - Include comments explaining key design decisions only - Provide complete JavaScript, HTML, and CSS files with Apex classes - Create Lightning Web Components only when specifically requested ## SOQL Best Practices - Use selective queries with proper WHERE clauses - Leverage relationship queries to reduce query count - Use aggregate functions for summary calculations - Implement query limits and pagination for large datasets - Use indexed fields in WHERE clauses for performance ## Testing Requirements - Achieve minimum 75% code coverage (aim for 85%+) - Test positive, negative, and bulk scenarios - Use @testSetup for efficient test data creation - Avoid SeeAllData=true in test classes - Mock external callouts using HttpCalloutMock
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.