automation-flow-generate

Generate Salesforce Flow metadata XML through a mandatory three-step MCP pipeline.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Build --skill automation-flow-generate-padjei
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: automation-flow-generate
Source: https://github.com/padjei/SF_Build/tree/main/.claude/skills/automation-flow-generate
Command: npx skills add https://github.com/padjei/SF_Build --skill automation-flow-generate-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating Salesforce Flow metadata by hand is error-prone and requires deep knowledge of Flow XML structure. This Skill generates valid Flow metadata for Screen, Autolaunched, Record-Triggered, and Scheduled Flows by orchestrating a strict three-step MCP pipeline, eliminating manual XML authoring. ## Core Features & Use Cases - Guided Flow Generation: Runs the mandatory fetchGroundedObjectMetadata → flowElementSelection → flowElementGeneration pipeline via the execute_metadata_action MCP tool to produce valid Flow XML. - Custom Object Grounding: Scans the local sfdx project and passes relevant custom objects and fields as structured inflightMetadata so generated Flows reference real schema. - Multi-Flow Handling: Splits multi-flow requests into separate sequential pipelines, one focused userPrompt per flow. - Use Case: A user asks to create a Record-Triggered Flow that updates a custom object's status when assigned. The Skill extracts the custom object metadata from the sfdx project, runs the three pipeline steps, loops the generation step until complete, and returns the final Flow XML. ## Quick Start Ask the assistant to create a Record-Triggered Flow on your custom object that updates a field when a record is created, and the Skill will run the pipeline and return the Flow XML.

Frequently Asked Questions about automation-flow-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Salesforce Flow with this Skill?▼

Describe the Flow you want in natural language, such as a Record-Triggered Flow on a specific object. The Skill runs the three-step MCP pipeline (fetchGroundedObjectMetadata, flowElementSelection, flowElementGeneration) and returns the Flow XML when generation completes.

What types of Salesforce Flows can be generated?▼

The Skill supports Screen Flows, Autolaunched Flows, Record-Triggered Flows (before-save and after-save), and Scheduled Flows. Each flow type is produced through the same mandatory three-step pipeline with XML output.

Can I generate multiple Salesforce Flows in one request?▼

Yes, but the request is split into separate single-flow prompts. Each flow gets its own complete three-step pipeline executed sequentially, never in parallel, until every requested flow is fully generated.

Does flow generation use custom objects from my sfdx project?▼

Yes. The Skill scans the local sfdx project for relevant custom objects and fields and passes them as a structured inflightMetadata array. If no custom objects are relevant, it passes an empty array instead.

Can I manually edit the generated Flow XML?▼

Manual edits are only permitted when the user explicitly requests fixes to validation or deployment errors in already-generated XML. Otherwise the pipeline output must be used exactly as returned, with no added or removed nodes.

Why does flow generation take many iterations to complete?▼

The flowElementGeneration step produces one flow element per call, so flows with many elements require repeated calls with the same operationId. The loop continues until isComplete is true or an error is returned.