
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-codeInstalls 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- Experience Lwc Generate6.4K
- Platform Validation Rule Generate6.3K
- Platform Data Manage6.3K
- Dx Org Manage6.2K
- Platform Flexipage Generate6.2K
- Platform Metadata Api Context Get6.2K
- Platform Sharing Rules Generate6.2K
- Design Systems Slds Apply6.1K
- Design Systems Slds Validate6K
- Agentforce Generate6K
- Platform Custom Tab Generate6K
- Dx Code Analyzer Configure5.9K
- Platform Custom Application Generate5.9K
- Platform List View Generate5.9K
- Agentforce Architecture Analyze5.9K
- Dx Org Switch5.8K
- Dx Org Permission Set Assign5.8K
- Platform Custom Lightning Type Generate5.8K
- Agentforce Test5.8K
- Agentforce Observe5.8K
- Platform Lightning App Coordinate5.7K
- Design Systems Slds2 Migrate5.7K
- External Diagram Mermaid Generate5.6K
- Integration Connectivity Connected App Configure5.5K