S

sf-flow

by @jaganprov1.0.0
0.0(0)

Creates and validates Salesforce Flows with 110-point scoring. TRIGGER when: user builds or edits record-triggered, screen, autolaunched, or scheduled flows, or touches .flow-meta.xml files. DO NOT TRIGGER when: Apex automation (use sf-apex), process builder migration questions only, or non-Flow dec

Salesforce FlowSalesforce AutomationProcess BuilderCRM CustomizationLow-Code DevelopmentGitHub
安装方式
npx skills add jaganpro/sf-skills --skill sf-flow
compare_arrows

Before / After 效果对比

1
使用前
1在 Salesforce 中构建 Flow 时,不遵循最佳实践,导致 Flow 性能不佳、难以维护或不符合业务需求。
使用后
1遵循 sf-flow 技能,创建和验证 Salesforce Flow,确保其符合 110 点评分标准,构建高效、可维护的记录触发、屏幕、自动启动或计划 Flow,优化 Salesforce 自动化。

description SKILL.md


name: sf-flow description: > Creates and validates Salesforce Flows with 110-point scoring. TRIGGER when: user builds or edits record-triggered, screen, autolaunched, or scheduled flows, or touches .flow-meta.xml files. DO NOT TRIGGER when: Apex automation (use sf-apex), process builder migration questions only, or non-Flow declarative config (use sf-metadata). license: MIT metadata: version: "2.1.0" author: "Jag Valaiyapathy" scoring: "110 points across 6 categories"

sf-flow: Salesforce Flow Creation and Validation

Use this skill when the user needs Flow design or Flow XML work: record-triggered, screen, autolaunched, scheduled, or platform-event Flows, including validation, architecture choices, and safe deployment sequencing.

When This Skill Owns the Task

Use sf-flow when the work involves:

  • .flow-meta.xml files
  • Flow Builder architecture and XML generation
  • record-triggered, screen, scheduled, autolaunched, or platform-event flows
  • Flow-specific bulk safety, fault paths, and subflow orchestration

Delegate elsewhere when the user is:


Required Context to Gather First

Ask for or infer:

  • flow type
  • trigger object / entry conditions
  • core business goal
  • whether this is new, refactor, or repair
  • target org alias if deployment or validation is needed
  • whether related objects / fields already exist

Recommended Workflow

1. Choose the right automation tool

Before building, confirm Flow is the right answer rather than:

  • formula field
  • validation rule
  • roll-up summary
  • Apex

2. Choose the right Flow type

NeedDefault flow type
same-record update before savebefore-save record-triggered
related-record work / emails / calloutsafter-save record-triggered
guided UIscreen flow
reusable background logicautolaunched / subflow
scheduled processingscheduled flow
event-driven declarative responseplatform-event flow

3. Start from a template

Prefer the provided assets:

  • assets/record-triggered-before-save.xml
  • assets/record-triggered-after-save.xml
  • assets/screen-flow-template.xml
  • assets/autolaunched-flow-template.xml
  • assets/scheduled-flow-template.xml
  • assets/platform-event-flow-template.xml
  • assets/subflows/

4. Validate against Flow guardrails

Focus on:

  • no DML in loops
  • no Get Records inside loops
  • proper fault paths
  • correct trigger conditions
  • safe subflow composition

5. Hand off deployment and testing

Use:


High-Signal Rules

Flow architecture

  • before-save for same-record field updates
  • after-save for related records, emails, and callouts
  • do not loop over $Record
  • use subflows when logic becomes wide or repetitive

Bulk safety

  • no DML in loops
  • no Get Records in loops
  • test with 251+ records when bulk behavior matters
  • prefer Transform when the job is shaping data, not per-record branching

Error handling

  • every data-changing path should have fault handling
  • avoid self-referencing fault connectors
  • deploy Flows as Draft first when activation risk is non-trivial

Output Format

When finishing, report in this order:

  1. Flow type and goal
  2. Files created or updated
  3. Architecture choices
  4. Bulk/error-handling notes
  5. Deploy/testing next steps

Suggested shape:

Flow: <name>
Type: <flow type>
Files: <paths>
Design: <trigger choice, subflows, key decisions>
Risks: <bulk safety, fault paths, dependencies>
Next step: <dry-run deploy, activate, or test>

Cross-Skill Integration

NeedDelegate toReason
create objects / fields firstsf-metadataschema readiness
deploy / activate flowsf-deploysafe deployment sequence
create realistic bulk test datasf-datapost-deploy verification
create Apex actions / invocablessf-apeximperative logic
embed LWC in a screen flowsf-lwccustom UI components
expose Flow to Agentforcesf-ai-agentscriptagent action orchestration

Reference Map

Start here

Design / orchestration

Screen / integration / troubleshooting


Score Guide

ScoreMeaning
88+production-ready Flow
75–87good Flow with some review items
60–74functional but needs stronger guardrails
< 60unsafe / incomplete for deployment

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月17日
对比案例1 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月17日
最后更新2026年3月17日