sf-flow

Generate and validate Salesforce Flow XML with 110-point scoring.

423|97|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/Jaganpro/sf-skills --skill sf-flow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-flow
Source: https://github.com/Jaganpro/sf-skills/tree/main/sf-flow/skills/sf-flow
Command: npx skills add https://github.com/Jaganpro/sf-skills --skill sf-flow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sf-cli, python, and includes scripts (resource) components.

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.

Frequently Asked Questions about sf-flow

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

FAQPage Schema
How do I create a bulk-safe Salesforce Flow that won't hit governor limits?

Bulkification in Salesforce Flows means using the $Record context correctly and avoiding DML operations inside loops. This Skill generates flows with built-in bulk safety, applies strict validation across six categories with a 110-point scoring system, and guides you on optimizing Get Records elements to prevent governor limit violations.

What validation rules should a Salesforce Flow follow before deployment?

Salesforce Flows require alphabetical XML ordering, fault paths on all DML operations, API version compatibility, and proper error handling. This Skill enforces these critical best practices through strict XML validation, generates deployment-ready metadata, and provides a testing checklist to ensure your flows meet technical and functional requirements.

Can I automate the generation of record-triggered flows with error handling?

Yes. This Skill automates Flow XML generation for record-triggered, screen, autolaunched, scheduled, and platform event flows. It builds in error handling, fault paths, and best practices automatically, then validates the output against strict rules covering bulkification, XML structure, and performance optimization.

How do I validate that my Salesforce Flow follows performance best practices?

Performance validation checks bulkification safety, DML placement, and Get Records optimization to catch issues before deployment. This Skill scores flows across six categories totaling 110 points, identifies violations like DML in loops, and provides orchestration patterns and deployment guidance for production-ready flows.

What's the difference between manual flow creation and automated flow validation?

Manual creation risks missing best practices like proper fault paths, XML ordering, and bulk safety checks. Automated validation catches these issues early, ensures consistent structure across flow types, applies a standardized 110-point scoring system, and reduces deployment failures by enforcing strict rules before your flow reaches Salesforce.