From jaganpro-sf-skills-7
Creates and validates Salesforce Flows with 110-point scoring for record-triggered, screen, autolaunched, scheduled flows and .flow-meta.xml files.
npx claudepluginhub jaganpro/sf-skillsThis skill uses the workspace's default tool permissions.
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.
CREDITS.mdLICENSEREADME.mdassets/ai-decision-template.xmlassets/apex-action-template.xmlassets/architecture-review-template.mdassets/autolaunched-flow-template.xmlassets/bypass-check-decision.xmlassets/elements/get-records-pattern.xmlassets/elements/loop-pattern.xmlassets/elements/record-delete-pattern.xmlassets/elements/transform-pattern.xmlassets/flow-documentation-template.mdassets/platform-event-flow-template.xmlassets/record-triggered-after-save.xmlassets/record-triggered-before-delete.xmlassets/record-triggered-before-save.xmlassets/scheduled-flow-template.xmlassets/screen-flow-template.xmlassets/screen-flow-with-lwc.xmlGuides Salesforce Flow design and review: selects flow types (Record-Triggered, Screen, etc.), validates bulk safety (no DML/Get Records in loops), ensures fault handling and automation density checks.
Builds, scaffolds, deploys Power Automate cloud flows via FlowStudio MCP server. Constructs definitions, wires connections, tests programmatically without portal. For creating, updating flows.
Generates and reviews Salesforce Apex code for classes, triggers, test classes, batch/queueable/schedulable jobs with 150-point scoring. For .cls/.trigger files.
Share bugs, ideas, or general feedback.
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.
Use sf-flow when the work involves:
.flow-meta.xml filesDelegate elsewhere when the user is:
Ask for or infer:
Before building, confirm Flow is the right answer rather than:
| Need | Default flow type |
|---|---|
| same-record update before save | before-save record-triggered |
| related-record work / emails / callouts | after-save record-triggered |
| guided UI | screen flow |
| reusable background logic | autolaunched / subflow |
| scheduled processing | scheduled flow |
| event-driven declarative response | platform-event flow |
| AI-evaluated routing (sentiment, intent, tone) | autolaunched with AI Decision element |
Prefer the provided assets:
assets/record-triggered-before-save.xmlassets/record-triggered-after-save.xmlassets/screen-flow-template.xmlassets/autolaunched-flow-template.xmlassets/scheduled-flow-template.xmlassets/platform-event-flow-template.xmlassets/ai-decision-template.xmlassets/subflows/Focus on:
Use:
$RecordWhen finishing, report in this order:
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>
Run Flow tests from the command line without VS Code:
# Run all flow tests
sf flow run test --target-org <alias> --json
# Run tests for a specific flow
sf flow run test --class-names MyFlow --target-org <alias> --json
# Get results for an asynchronous run
sf flow get test --test-run-id <id> --target-org <alias> --json
Flow tests execute in the org and can take 1-5 minutes. sf flow run test returns a test run ID for asynchronous runs; use sf flow get test to retrieve results later. Always run with --json and use background execution for longer runs.
| Need | Delegate to | Reason |
|---|---|---|
| create objects / fields first | sf-metadata | schema readiness |
| deploy / activate flow | sf-deploy | safe deployment sequence |
| create realistic bulk test data | sf-data | post-deploy verification |
| create Apex actions / invocables | sf-apex | imperative logic |
| embed LWC in a screen flow | sf-lwc | custom UI components |
| expose Flow to Agentforce | sf-ai-agentscript | agent action orchestration |
| Score | Meaning |
|---|---|
| 88+ | production-ready Flow |
| 75–87 | good Flow with some review items |
| 60–74 | functional but needs stronger guardrails |
| < 60 | unsafe / incomplete for deployment |