automation-flow-generate
БесплатноБез исполняемых скриптовНе проверенGenerate Salesforce Flows using the MCP tool execute_metadata_action. Use when the user asks to create, build, or generate a flow — including Screen…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
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
MANDATORY: You MUST follow this exact 3-step pipeline. No exceptions. No shortcuts. No skipping steps. Do NOT manually create flow metadata XML or attempt to generate flow metadata outside of this pipeline. Do NOT attempt to use any other tool, API, or method to generate flow metadata. This pipeline is the ONLY supported way to generate flows. Any deviation will produce invalid or broken metadata.
MCP Connection Details
All 3 pipeline steps MUST be called using this MCP tool:
- MCP Tool Name:
execute_metadata_action - The
actionparameter selects which pipeline step to run:"fetchGroundedObjectMetadata","flowElementSelection", or"flowElementGeneration"
Flow generation is a strict 3-step pipeline. ALL steps must be called in order. Every step is required. There is no alternative approach — this is the only way to generate flow metadata:
Step 1 (REQUIRED): Fetch Grounded Object Metadata (fetchGroundedObjectMetadata)
Fetches org schema metadata relevant to the flow generation request. This step is mandatory and must always be called first.
Inputs (all required):
- userPrompt (STRING, REQUIRED): The user's natural language request
- inflightMetadata (ARRAY, REQUIRED): Custom objects/fields from local sfdx project. Use empty array
[]if none needed.
Outputs:
- groundingMetadata (STRING): Grounded object metadata for org schema relevant to the request, returned as a JSON string. You must pass this directly to Step 2 — it is already a string and does not need to be serialized again.
Step 2 (REQUIRED): Flow Element Selection (flowElementSelection)
Selects flow elements (assignments, decisions, record ops, etc.) and their connections based on the user prompt and grounded metadata. This step is mandatory and must be called after Step 1.
Inputs (all required):
- userPrompt (STRING, REQUIRED): The user's natural language request (must be the same value as Step 1)
- groundingMetadata (STRING, REQUIRED): Org schema metadata (must be the exact string returned from Step 1 output — pass it directly, do NOT serialize it again)
- operationId (STRING, REQUIRED): Operation ID (use empty string
""for first call)
Outputs:
- operationId (STRING): Operation ID. You must pass this to Step 3.
- userOutput (STRING): Reasoning for next steps. You can show this to the user.
Step 3 (REQUIRED): Flow Element Generation (flowElementGeneration)
Generates flow metadata element by element. This step is mandatory and must be called after Step 2. Must be called repeatedly in a loop until isComplete is true.
Inputs (all required):
- operationId (STRING, REQUIRED): Operation ID from Step 2 output
- requestSource (STRING, REQUIRED): The source of the request. Use
"A4V"to get flow metadata in XML format.
Outputs:
- isComplete (BOOLEAN): Indicates if the flow generation is complete. You must check this value.
- result (STRING): Result of the flow element generation. Contains the final flow metadata only when
isCompleteistrue.
MANDATORY: Loop until complete. NEVER pause or ask the user to confirm continuation.
- A flow can have any number of elements. Each call generates one element at a time, so you may need many iterations.
- Call
flowElementGenerationwith theoperationIdfrom Step 2 andrequestSource(use"A4V"for XML output, empty string or other value for JSON). - Check the
isCompleteoutput and theresultfield after each call. - If
isCompleteisfalseand no errors are returned, you MUST callflowElementGenerationagain with the sameoperationIdfrom Step 2. Do NOT ask the user if they want to continue. Do NOT pause. Do NOT summarize progress mid-loop. Just keep calling — there is no maximum number of iterations. - When
isCompleteistrue, extract the f
Установить automation-flow-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл automation-flow-generate?
Generate Salesforce Flows using the MCP tool execute_metadata_action. Use when the user asks to create, build, or generate a flow — including Screen, Autolaunched, Record-Triggered (before/after-save), Scheduled. Also trigger for flow-like requests such as "when a record is created", "trigger daily at", "send an email when", "update the field when", "automate", "workflow", or "flow XML/metadata". This is the only skill for Salesforce Flow generation.
Как установить скилл automation-flow-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл automation-flow-generate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic