Process Builder to Flow Migration Planner
Quick answer
This skill teaches an AI assistant to plan a Process Builder to Flow migration. It inventories active processes, reads each definition, maps criteria and actions to Flow equivalents, flags what does not map cleanly, and writes an ordered migration plan with a test plan. It is read-only: all changes are made by a human in a sandbox.
What this skill does
- Inventories active Process Builder processes with a Tooling API query on Flow where ProcessType is Workflow, and groups them by object.
- Retrieves each process definition with sf project retrieve start and reads its criteria and actions.
- Maps each criteria node and action to the Flow equivalent: decision, update or create records, email alert, invocable Apex, Chatter post, quick action and subflow.
- Flags what does not map cleanly: scheduled actions, formulas, evaluate-next logic and order-of-execution changes.
- Recommends consolidating into one record-triggered flow per object and timing, and chooses before save or after save.
When to use it
- You still have active Process Builder processes and want a plan to move them to Flow.
- You want to consolidate several processes on one object into a single record-triggered flow.
- You want to know what Salesforce Migrate to Flow can handle and what needs a manual rebuild.
- You need a test plan to prove a new flow behaves like the old process.
What you need
- Connection: The Salesforce CLI logged in to an org (and an SFDX project to retrieve metadata into), or a Salesforce MCP server that can query, or process XML you provide. Without a connection, paste the XML.
- Permissions: Permission to query Flow through the Tooling API and to retrieve metadata. Use a sandbox. The skill only reads.
How it works
- It queries Flow where ProcessType is Workflow and Status is Active to list the processes, and groups them by object.
- It retrieves each process as Flow metadata and reads the start condition, criteria nodes and actions.
- It maps every criteria node and action using a mapping table that ships with the skill.
- It flags items that need a design decision, such as scheduled actions and evaluate-next logic.
- It recommends Migrate to Flow in Setup or a manual rebuild per process, and designs the target flows per object and timing.
- It writes an ordered plan and a test plan, and lists what it could not verify.
Safety rules built into the skill
- Read-only: it never modifies, activates, deactivates or deletes a process or flow, and never runs DML or deploys.
- It does not run the Migrate to Flow tool; that is a Setup action for a human.
- It plans for changes in a sandbox first and keeps the old process active until the new flow is verified.
- It states the Process Builder retirement timeline only as announced by Salesforce and sends you to the current announcement; it gives no shutdown date.
- It marks anything it cannot read from the XML as unknown instead of guessing.
Try asking
- List all active Process Builder processes in my org by object.
- Plan the migration of the Opportunity processes to Flow and consolidate them.
- Read the process Case_Routing and map each criteria and action to Flow.
- Write a test plan to prove the new Account flow behaves like the old process.
How to install a skill
A skill is a folder with a SKILL.md file: YAML frontmatter with a name and a
description, then plain Markdown instructions. An assistant reads the description to decide when the skill
applies and loads the rest only then. The format is the open
Agent Skills specification.
- Claude Code: unzip the download so the folder lands in
~/.claude/skills/process-builder-to-flow-migration/for all projects, or.claude/skills/process-builder-to-flow-migration/inside one project. Start a new session. - Claude app (web and desktop): upload the zip in the Skills section of your settings. Availability depends on your plan, and the menu names change, so check Anthropic's current help pages.
- Other assistants that support Agent Skills: copy the folder into the skills directory that assistant documents.
- Any other LLM: open
SKILL.mdand paste its contents into the system prompt, custom instructions or project instructions. You lose automatic loading, but the guidance works the same.
Skills that work with your org need a connection: a Salesforce MCP server added to your assistant, or the Salesforce CLI logged in to an org. Start with a sandbox or scratch org, and give the connection the least access that does the job.
The skill file (SKILL.md)
This is the exact file in the download. Read it before you install it.
---
name: process-builder-to-flow-migration
description: Plans the migration of Salesforce Process Builder processes to Flow. Inventories processes, reads each definition, maps criteria and actions to Flow equivalents, flags what does not map cleanly, and produces a migration plan with a test plan. Use when moving off Process Builder or consolidating automation. Read-only; never changes the org.
license: MIT
metadata:
version: "1.0.0"
publisher: SFDX Talk (sfdxtalk.com)
---
# Process Builder to Flow Migration Planner
Produce a migration plan for moving Process Builder processes to Flow. This skill only reads and plans. It never modifies, activates, deactivates or deletes anything. Every change is made by a human in a sandbox first.
## Connection
Use the first source that works:
1. The Salesforce CLI logged in to an org: `sf data query --use-tooling-api --query "<SOQL>" --target-org <alias>` for inventory, and `sf project retrieve start --metadata Flow:<ApiName> --target-org <alias>` inside an SFDX project to read a definition. Run `sf data query --help` and `sf project retrieve start --help` if a flag differs in the installed version.
2. A Salesforce MCP server that can run SOQL or Tooling API queries: use it for inventory and object descriptions only. Tool names vary by server.
3. Process XML supplied by the user, or already in the project at `force-app/main/default/flows/`.
4. No connection: ask for the XML and a list of processes, and say what you could not check.
## Workflow
1. **Inventory.** Process Builder processes are stored as Flow records with process type Workflow. Query:
`SELECT Id, DefinitionId, MasterLabel, ProcessType, Status, VersionNumber FROM Flow WHERE ProcessType = 'Workflow' AND Status = 'Active'`
with the Tooling API. Check the result: if it is empty or errors, run `sf data query --help` and confirm field names with a describe of `Flow`, then fall back to Setup, Process Automation, Process Builder. Do not select the `Metadata` field in a multi-row query. Group the processes by object (read it from each definition).
2. **Retrieve each definition.** Retrieve by API name and read the XML. Use `FlowDefinitionView` or the Setup page to find the API name if only the label is known.
3. **Read each process.** For every process note: the object, the start condition (record created, or created or edited, or invoked by another process), each criteria node with its conditions and its "stop or evaluate next" setting, each immediate action and each scheduled action.
4. **Map criteria and actions.** Use `references/process-builder-to-flow-mapping.md`. Record the Flow equivalent for each node and action.
5. **Flag what does not map cleanly.** Use the "Does not map cleanly" section of the reference: scheduled actions, formulas, evaluate-next logic, actions on related records, recursion settings, order of execution changes.
6. **Choose the approach per process.** Offer both: Salesforce's Migrate to Flow tool in Setup where it supports the process (check Setup, Migrate to Flow, for what it reports as supported), or a manual rebuild. Say which you recommend and why. Do not claim what the tool supports beyond what the user sees in Setup.
7. **Design the target flows.** Group processes by object. Recommend one record-triggered flow per object and trigger timing, with entry conditions and decisions inside, instead of one flow per process. Choose before save for same-record field updates (no extra DML) and after save for related records, emails, Chatter, Apex and subflow calls.
8. **Write the plan.** Order the work: lowest risk first, dependencies (processes that call other processes) respected. Include the test plan.
9. **Say what to verify.** State the retirement timeline only as in Rules.
## Rules
- Read-only. Never run deploy, activate, deactivate, delete or any DML. Do not run the Migrate to Flow tool; it is a Setup action for a human.
- All changes happen in a sandbox first, with a human reviewing before production.
- Keep the old process active until the new flow is verified. The human decides when to deactivate it, and only one of the two should be active for a given behavior, to avoid double actions.
- Do not invent behavior. If a criteria node, formula or action cannot be read from the XML, mark it unknown.
- Retirement timeline: Salesforce announced end of support for Workflow Rules and Process Builder effective December 31, 2025, according to secondary sources. Existing processes were reported to keep running. Tell the user to check Salesforce's current announcement for what that means for them, and do not state a shutdown date.
- Do not paste record data or personal data from queries into the plan.
## Output format
1. **Inventory table**: process label, API name, object, active version, trigger, action counts.
2. **Per-process mapping**: criteria and actions with the Flow equivalent.
3. **Flags**: items that do not map cleanly, each with a recommended handling.
4. **Target design**: flows to build per object and timing, before or after save, with reasons.
5. **Migration plan**: ordered steps, who does what in the sandbox, cutover and rollback.
6. **Test plan**: cases per process (see the reference), and bulk and negative tests.
7. **Unknowns**: what was not readable or verified.
Files in the download: process-builder-to-flow-migration/SKILL.md, process-builder-to-flow-migration/references/process-builder-to-flow-mapping.md
Frequently asked questions
Will this skill migrate my processes for me?
No. It plans. It reads the processes, maps them to Flow and writes the plan. A human builds or migrates the flows in a sandbox, tests them and decides when to deactivate the old process.
How does it find Process Builder processes?
Process Builder processes are stored as Flow records with ProcessType Workflow. The skill runs a Tooling API query for active ones, and if the query fails it falls back to checking Setup, Process Automation, Process Builder.
Should I use Salesforce Migrate to Flow or rebuild by hand?
The skill offers both and recommends one per process. It does not claim what the Migrate to Flow tool supports beyond what Setup reports for each process. Complex processes with scheduled actions or evaluate-next logic usually need review either way.
When does Process Builder stop working?
The skill does not state a shutdown date. Secondary sources report that Salesforce set end of support for Workflow Rules and Process Builder at December 31, 2025. Check Salesforce's current announcement for the exact impact on your org.
Does it work with assistants other than Claude?
Yes. Assistants that support the Agent Skills format can load the folder. For any other LLM, paste SKILL.md and the mapping reference into the system prompt, and give it the process XML.
Related prompts
Related tools
Related guides
Official sources
SFDX Talk is unofficial documentation. It is not affiliated with, endorsed by, or sponsored by Salesforce, Inc. Skills are provided as is, under the MIT license. Review what a skill does and test it in a sandbox before you rely on it. All skills