nadolskimm-max/sf-skills/sf-flow

Claude Code and agent skill by nadolskimm-max/sf-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Creates and reviews Salesforce Flows (Record-Triggered, Screen, Scheduled, Autolaunched, Platform Event-Triggered). Use when building or reviewing Flow XML, designing flow logic, handling bulk operations in flows, or troubleshooting flow errors. Do NOT use for Apex triggers (use sf-apex) or Process Builder (deprecated — migrate to Flow).

Install

npx vskill@latest install nadolskimm-max/sf-skills/sf-flow

SKILL.md

The same SKILL.md was published earlier as nadolskimm-max/sf-skills/sf-flow.

Salesforce Flow Development

Core Responsibilities

  1. Generate Flow XML metadata for all flow types
  2. Design screen flows with proper validation and navigation
  3. Ensure bulk-safe patterns in record-triggered flows
  4. Implement fault paths and error handling
  5. Apply naming conventions and documentation standards

Flow Types

TypeUse CaseEntry Condition
Record-TriggeredAutomate on record changesBefore/After Save, After Delete
ScreenUser-facing forms and wizardsUser clicks button/action
ScheduledTime-based batch processingSchedule or record-based time
AutolaunchedBackend automation (no UI)Called from Apex, other flows
Platform Event-TriggeredEvent-driven processingPlatform Event published

Workflow

Phase 1 — Design
  • Identify trigger conditions (object, when to run, entry criteria)
  • Plan decision logic and data operations
  • Determine if before-save (no DML needed) or after-save (related records)
  • Identify fault handling requirements
Phase 2 — Generate

Follow these rules:

Before-Save Flows (preferred for field updates on the same record):

  • Runs before commit — no DML count
  • Faster than after-save
  • Cannot create/update related records
  • Use $Record to modify the triggering record directly

After-Save Flows:

  • Use for creating/updating related records
  • Runs after DML commit
  • Can trigger other automations (beware recursion)
Phase 3 — Validate
bash
sf project deploy start --source-dir force-app/main/default/flows --dry-run --target-org <alias>

Naming Conventions

ElementPatternExample
Flow API Name{Object}_{Trigger}_{Purpose}Account_AfterSave_CreateTask
Screen FlowScreen_{Purpose}Screen_NewCustomerOnboarding
Scheduled FlowScheduled_{Purpose}Scheduled_LeadCleanup
Variablesvar{PurposePascalCase}varAccountName
Collectionscol{ObjectPlural}colContacts
Record variablesrec{Object}recAccount
Constantscon{Purpose}conDefaultStatus
Formulasfx{Purpose}fxIsHighValue
Decisiondec{Question}decIsNewCustomer
Looploop{Collection}loopContacts
Assignmentassign{Purpose}assignDefaultValues

Anti-Patterns

Anti-PatternFix
DML inside a loop elementCollect in collection variable, single DML after loop
SOQL inside a loop elementQuery before loop, use collection variable
No fault connectorAdd fault path to every DML/query element
Hardcoded IDs in criteriaUse Custom Metadata or Custom Labels
After-save for same-record updateUse before-save flow instead
No entry criteriaAlways add conditions to prevent unnecessary runs
Missing descriptionsAdd description to every flow and element

Bulk-Safe Flow Pattern

[Entry Criteria] → [Get Records (before loop)] → [Loop]
→ [Assignment (add to collection)] → [End Loop]
→ [Update Records (collection)] → [Fault Path]

Key: All Get/Create/Update/Delete elements must be outside loops.

Cross-Skill References

  • For Apex invocable actions: see sf-apex (@InvocableMethod)
  • For metadata deployment: see sf-deploy
  • For testing flows: see sf-testing

Security

  • Security scanPassed, 98 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nadolskimm-max/sf-skills/sf-flow/badge)](https://verified-skill.com/skills/nadolskimm-max/sf-skills/sf-flow)

Something wrong with this skill or its page? Tell us.