Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sf-flow

БесплатноЗапускает вложенные скриптыНе проверен

Creates and validates Salesforce Flows with 110-point scoring. TRIGGER when: user builds or edits record-triggered, screen, autolaunched, or scheduled flows…

Jaganproот Jaganpro★ 420 звёзд на GitHub

Об этом скилле

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

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

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/ai-decision-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
  • AI Decision elements not placed inside loops (credit cost per iteration)
  • AI Decision prompts include merge field references for data context

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>

Flow Testing (CLI)

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.


Cross-Skill Integration

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

Reference Map

Start h

Полный SKILL.md на GitHub

Установить sf-flow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

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.xmlassets/subflows/subflow-bulk-updater.xmlassets/subflows/subflow-dml-rollback.xmlassets/subflows/subflow-email-alert.xmlassets/subflows/subflow-error-logger.xmlassets/subflows/subflow-query-with-retry.xmlassets/subflows/subflow-record-validator.xmlassets/wait-template.xmlhooks/scripts/post-tool-validate.pyhooks/scripts/simulate_flow.pyhooks/scripts/validate_flow.pyreferences/agentforce-flow-integration.mdreferences/ai-decision-guide.mdreferences/error-logging-example.mdreferences/flow-best-practices.mdreferences/flow-quick-reference.mdreferences/form-building-guide.mdreferences/governance-checklist.mdreferences/integration-patterns.mdreferences/lwc-integration-guide.mdreferences/multi-step-dml-rollback-example.md

FAQ

Что делает скилл sf-flow?

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).

Как установить скилл sf-flow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sf-flow запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить sf-flow с