What problem does it solve?
Salesforce Flow deployments often fail or behave incorrectly due to fragile variable/element references, invalid Flow metadata, and governor-limit antipatterns. This Skill helps you prevent reference errors and deployment failures by guiding correct Flow design, metadata generation, validation, and production-safe deployment practices.
Core Features & Use Cases
- Flow reference & type error prevention: Catch undeclared variables, invalid element references, collection vs single-value mistakes, and type mismatches before deployment.
- Flow metadata XML generation & troubleshooting: Produce correct Flow-meta.xml structure (including processType, apiVersion, label, and status) and troubleshoot metadata-related deployment errors.
- Governor limit optimization for Flows: Identify and avoid DML/SOQL in loops, recommend bulkification patterns, and structure validations for safer scaling.
Use cases:
- Creating new Screen, Record-Triggered, Schedule-Triggered, or Autolaunched Flows with fewer iteration cycles.
- Debugging common Flow deployment errors like INVALID_FIELD_OR_REFERENCE and INVALID_TYPE_ON_FIELD_IN_RECORD.
- Deploying Flows to sandbox and production using sf CLI with validation and error guidance.
Quick Start
Use the salesforce-flow-expert skill to validate your Flow-meta.xml and generate a deployment-ready checklist for preventing reference and metadata errors.