forcedotcom avatar

Automation Flow Generate

This automates Salesforce Flow creation through a mandatory three-step MCP pipeline: fetch org schema metadata, select flow elements, then generate the XML piece by piece in a loop until complete. It handles all flow types (Screen, Autolaunched, Record-Triggered, Scheduled) and explicitly forbids shortcuts or manual XML editing. The pipeline can take many iterations for complex flows, which is expected. The main gotcha is the strict naming convention for inflightMetadata (use "apiName" not "objectApiName", "type" not "fieldType") and remembering that groundingMetadata from step one is already a string. If you need repeatable automation or record-triggered logic in Salesforce without writing Apex, this is the only supported generation path.

skills.sh installs
6.5K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill automation-flow-generate --agent claude-code

Installs into .claude/skills of the current project.

Files

Goal

Generate Salesforce Flow metadata by running the required 3-step MCP pipeline (fetchGroundedObjectMetadata → flowElementSelection → flowElementGeneration) and return the flow XML.

When to Use This Skill

Use this skill when you need to:

  • Create any type of Flow (Screen, Autolaunched, Record-Triggered, Scheduled)
  • Generate Flow metadata XML
  • Automate business processes without code
  • Build user-guided workflows or background automation
  • Troubleshoot deployment errors related to Flows

Specification

Flow Metadata Specification

Overview

Salesforce Flows are powerful automation tools that enable complex business process automation without code. Flows can collect and process data through interactive screens, execute logic and calculations, manipulate records, call external services, and trigger based on various events. Flow types include Screen Flows (user-guided), Autolaunched Flows (background processing), Record-Triggered Flows (database events) and Scheduled Flows (time-based).

Flow Generation Pipeline

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
DevOps & CI/CD, AI & Agent Building, Automation & Workflows, Sales & Marketing, CLI & Terminal
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1anthropics avatardebuganthropics/knowledge-work-pluginsStructured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "somet6Kskills.sh installs
2grafana avatarprometheusgrafana/skillsPrometheus and Grafana Cloud Metrics overview including PromQL query language, Metrics Drilldown, alerting, recording rules, and integration patterns. Use when 5.6Kskills.sh installs
3affaan-m avatarspringboot-verificationaffaan-m/eccVerification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.5.6Kskills.sh installs
4affaan-m avatarvideodbaffaan-m/eccSee, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable strea5.5Kskills.sh installs
5affaan-m avatarenterprise-agent-opsaffaan-m/eccOperate long-lived agent workloads with observability, security boundaries, and lifecycle management.5.4Kskills.sh installs
6affaan-m avatarquarkus-verificationaffaan-m/eccVerification loop for Quarkus projects: build, static analysis, tests with coverage, security scans, native compilation, and diff review before release or PR.5.4Kskills.sh installs