
Generating Flow
This is the skill you reach for when you need to generate Salesforce Flow metadata without writing XML by hand. It handles Screen Flows, Autolaunched Flows, Record-Triggered Flows, and Scheduled Flows by running a strict three-step pipeline: fetch your org's schema metadata, select the flow elements, then generate the XML piece by piece until complete. The pipeline is mandatory and runs through the execute_metadata_action MCP tool. No shortcuts, no manual XML editing. One practical detail worth knowing: the final generation step loops element by element, so a flow with fifteen components means fifteen calls. It keeps going automatically until isComplete returns true. If you're automating Salesforce business processes declaratively, this handles the metadata generation grunt work.
- skills.sh installs
- 1.6K
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill generating-flow --agent claude-codeInstalls into .claude/skills of the current project.
Files
This is the skill you reach for when you need to generate Salesforce Flow metadata without writing XML by hand. It handles Screen Flows, Autolaunched Flows, Record-Triggered Flows, and Scheduled Flows by running a strict three-step pipeline: fetch your org's schema metadata, select the flow elements, then generate the XML piece by piece until complete. The pipeline is mandatory and runs through the execute_metadata_action MCP tool. No shortcuts, no manual XML editing. One practical detail worth knowing: the final generation step loops element by element, so a flow with fifteen components means fifteen calls. It keeps going automatically until isComplete returns true. If you're automating Salesforce business processes declaratively, this handles the metadata generation grunt work.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- First seen
- May 16, 2026
More from forcedotcom/afv-library
All 58- Generating Permission Set1.6K
- Building Ui Bundle App1.5K
- Building Ui Bundle Frontend1.5K
- Deploying Ui Bundle1.5K
- Developing Agentforce1.5K
- Generating Custom Application1.5K
- Generating Custom Lightning Type1.5K
- Generating Custom Tab1.5K
- Generating Flexipage1.5K
- Generating Lightning App1.5K
- Generating List View1.5K
- Generating Ui Bundle Features1.5K
- Generating Ui Bundle Metadata1.5K
- Generating Ui Bundle Site1.5K
- Generating Validation Rule1.5K
- Implementing Ui Bundle Agentforce Conversation Client1.5K
- Implementing Ui Bundle File Upload1.5K
- Observing Agentforce1.5K
- Searching Media1.5K
- Switching Org1.5K
- Testing Agentforce1.5K
- Uplifting Components To Slds21.5K
- Using Ui Bundle Salesforce Data1.5K
- Creating B2b Commerce Store1.4K