What problem does it solve?
Creating Salesforce Flows that adhere to best practices (bulkification, error handling, XML structure, API version compatibility) is challenging and can lead to performance issues or deployment failures. This Skill automates flow generation and provides strict validation, ensuring your flows are performant and maintainable.
Core Features & Use Cases
- Flow Generation: Create well-structured Flow metadata XML for 7 flow types (Screen, Record-Triggered, Scheduled, Platform Event, Autolaunched) with built-in best practices.
- Strict Validation: Enforces critical best practices like alphabetical XML ordering, fault paths on all DML, and bulk safety with an 110-point scoring system.
- Bulkification & Performance: Guides on using the
$Record context correctly, avoiding DML in loops, and optimizing Get Records elements to prevent governor limit issues.
- Use Case: Generate a record-triggered flow (After Save) on the 'Lead' object to automatically assign leads to a specific queue based on their 'Industry' field, ensuring the flow is bulk-safe and includes proper error handling.
Quick Start
Use the sf-flow skill to create a record-triggered flow (After Save) on the 'Lead' object to automatically assign leads to a queue based on their 'Industry' field.