sf-flow-development

Guide Salesforce Flow design, testing, and deployment for bulk-safe automation.

13|2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-flow-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-flow-development
Source: https://github.com/jiten-singh-shahi/salesforce-claude-code/tree/main/.cursor/skills/sf-flow-development
Command: npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-flow-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps Salesforce developers and admins build, review, and maintain Flows that are performant, bulk-safe, and resilient to failures, reducing runtime errors, governor limit breaches, and fragile automations.

Core Features & Use Cases

  • Guidance on flow types & decisions: When to use before-save vs after-save, Screen vs Autolaunched, and when to choose Apex instead of Flow.
  • Bulkification & governor-safe patterns: SOQL and DML outside loops, collection-based updates, selective field retrieval, and heap-size considerations.
  • Error handling & testing: Fault connector design, orchestration patterns, versioning, and Apex test patterns for record-triggered flows to validate bulk behavior.
  • Use Case: Migrate active Process Builders to record-triggered flows while ensuring bulk updates, proper fault paths, and test coverage for 200-record bulk scenarios.

Quick Start

Ask the assistant to review a record-triggered flow and provide a remediation plan for bulkification, fault handling, and required tests.

Frequently Asked Questions about sf-flow-development

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

FAQPage Schema
How do I prevent governor limit violations when building Salesforce Flows?

To prevent governor limit violations in Salesforce Flows, apply bulkification patterns by keeping SOQL and DML operations outside loops, using collection-based updates, and retrieving fields selectively to manage heap size.

What is the best way to migrate Process Builder to a record-triggered flow?

The best way to migrate Process Builder to a record-triggered flow is to redesign the logic for bulk updates, configure proper fault paths using fault connectors, and validate behavior with Apex test coverage for 200-record bulk scenarios.

How do I decide between before-save and after-save in Salesforce record-triggered flows?

Deciding between before-save and after-save in Salesforce record-triggered flows depends on whether you need to update the triggering record itself using before-save for efficiency, or perform post-save actions like creating related records using after-save logic.

How do I add error handling to Salesforce Flows using fault connectors?

You add error handling to Salesforce Flows by configuring fault connectors on elements to route execution to a fault path, enabling orchestration patterns to manage failures gracefully and ensure your automation remains fault-tolerant.

How do I write Apex test coverage for Salesforce record-triggered flows?

You write Apex test coverage for Salesforce record-triggered flows by creating test classes that validate bulk behavior, inserting up to 200 records in a single transaction to verify SOQL and DML bulkification and ensure runtime reliability.

When should I choose Apex instead of Flow for Salesforce automation?

You should choose Apex instead of Flow for Salesforce automation when requirements exceed Flow orchestration patterns, require complex fault-tolerant handling, or need advanced SOQL and DML bulkification that cannot be achieved through declarative flow design.