salesforce-flow-expert

Validate Salesforce Flow XML references, metadata structure, and governor-limit patterns.

5|4|Updated Nov 9, 2025
One-click install
npx skills add https://github.com/takusaotome/claude-skills-library --skill salesforce-flow-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salesforce-flow-expert
Source: https://github.com/takusaotome/claude-skills-library/tree/main/skills/salesforce-flow-expert
Command: npx skills add https://github.com/takusaotome/claude-skills-library --skill salesforce-flow-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

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.

Frequently Asked Questions about salesforce-flow-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Salesforce Flow deployment errors like undeclared variables and invalid references?

To fix Salesforce Flow deployment errors, you must validate Flow XML references and metadata structure before deployment. Catching undeclared variables, invalid element connectors, and collection vs single-value type mismatches prevents reference failures during sf CLI deployment.

How do I generate a valid Flow-meta.xml file for Salesforce deployment?

Generating a valid Flow-meta.xml file requires correct processType, apiVersion, label, and status fields. Validating the metadata structure ensures the Flow XML passes sf CLI deployment checks and prevents metadata-related build failures in sandbox or production environments.

How do I avoid governor limits in Salesforce Record-Triggered Flows?

To avoid governor limits in Salesforce Record-Triggered Flows, you must identify and eliminate DML and SOQL operations inside loops. Applying bulkification patterns structures your Flow logic to process multiple records safely without hitting SOQL or DML governor limit thresholds.

Can I validate Salesforce Screen Flows and Autolaunched Flows before sf CLI deployment?

Yes, you can validate Salesforce Screen Flows and Autolaunched Flows before sf CLI deployment. Pre-deployment validation checks Flow XML metadata correctness, variable declarations, and element connectors across all Flow types to prevent deployment failures.

Why does my Salesforce Flow fail with invalid element connectors during deployment?

Salesforce Flow deployment fails with invalid element connectors when the Flow XML references undeclared variables or mismatched types. Pre-deployment validation identifies broken connectors and metadata structure issues, allowing you to correct the Flow XML before attempting sf CLI deployment.

What is the best way to debug Salesforce Flow deployment failures?

The best way to debug Salesforce Flow deployment failures is validating Flow-meta.xml correctness and checking for undeclared variables, invalid references, and governor-limit antipatterns. This identifies fragile metadata structure and reference errors before attempting sf CLI production deployment.