grzmol/vibe-force/sf-process-builder-migration
Claude Code and agent skill by grzmol/vibe-force
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Migrate retired Process Builder processes to record-triggered Flows - inventory what is still active, read a process without loading its XML, map criteria nodes to entry conditions and Decisions, map action groups to before-save assignments or after-save elements, turn scheduled actions into scheduled paths, keep the start-of-process value semantics and the reevaluation option honest, and cut over in two deploys. Use when a project still has active processes, when a process and a flow fight over the same field, when planning a Process Builder decommission, or when the Migrate to Flow tool reports a partial migration.
Install
npx vskill@latest install grzmol/vibe-force/sf-process-builder-migrationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as grzmol/vibe-force/sf-process-builder-migration.
Process Builder Migration
When to use
- The org still has active processes. Salesforce blocked creating processes in Summer '23 and ended
support for Process Builder and Workflow Rules on 31 December 2025. Existing processes still execute, unsupported.
- A field is written by both a process and a flow, or two processes write it in step 13 of the save
order, where no order is guaranteed.
- A story touches an object that a process automates: migrate that concern first, then build.
/vf-check analyzeror an audit (sf-technical-debt-audit) reports active processes.
A process is not its own metadata type. It is a Flow whose processType is Workflow, stored in flows/ with a .flow-meta.xml suffix like every other flow. So a repository with "no Process Builder directory" can still be full of processes, and the retrieve command is Flow, not Process.
processType | What it is | Migratable | |
|---|---|---|---|
Workflow | Record change process - starts when a record is created or edited | Yes, this skill | |
InvocableProcess | Invoked by another process or the Invocable Actions REST resource | Not by the Setup tool; rebuild as a subflow or an autolaunched flow | |
CustomEvent | Event process, started by a platform event message | Not by the Setup tool; rebuild as a platform event-triggered flow | |
| anything else | Already a flow | Nothing to migrate |
Decision table: which route for which process
| Situation | Route | Why | |
|---|---|---|---|
| Whole process, mixed actions, you want it off Process Builder today | Migrate to Flow in Setup | It migrates the whole process as an after-save flow and reports what needs review | |
| A criteria node whose actions only stamp fields on the triggering record | `/vf-migrate-process convert` | Emits a before-save flow: no extra DML, no second save | |
| Process with scheduled actions | Migrate to Flow, one outcome at a time | Scheduled actions migrate only when you select the single criteria they belong to | |
| Invocable or event process | Rebuild by hand | Out of scope for the Setup tool | |
| Criteria with related-record fields, or a formula with a cross-object reference | Rebuild by hand | Field traversals are unsupported; a cross-object formula reference cannot migrate at all | |
| Process plus an Apex trigger on the same object | Decide one owner first | Migrating an ordering bug produces a flow with the same ordering bug | |
| Process nobody can explain | Read the org, not the file | FlowDefinitionView, debug logs, then this skill |
The Setup tool and this plugin's converter answer different questions. The Setup tool is the fastest way to a working after-save flow. /vf-migrate-process is the way to a cheap before-save flow for the nodes that qualify, and an explicit list of what does not.
1. Inventory before touching anything
Record the answer in .vibeforce/state/contract.md: object, process name, who else writes those fields. A migration that does not know the other writers is a rewrite with extra steps.
2. Read the process without reading the XML
A process file is large and almost entirely canvas coordinates and processMetadataValues. Reading it whole costs tens of thousands of tokens and tells you nothing the plan does not.
The plan prints, per criteria node: the conditions as flow entry conditions would express them, the field writes that can become before-save assignments, the actions that must become after-save elements, the scheduled actions, and every reason the node cannot be converted mechanically. It quotes no XML. Exit 1 means the file does not convert - the wrong processType, an unreadable trigger, no reachable criteria node.
The command wrapper is `/vf-migrate-process`; the guard that denies whole-file reads of big metadata is described in sf-project-structure.
3. Target architecture, decided before any conversion
One process usually becomes more than one flow, because a process mixes work that belongs on different sides of the save.
Rules that decide the shape:
- Field writes on the triggering record go before save. A before-save flow assigns to
$Record. An Update Records element on the triggering record saves the record a second time, which is exactly the cost the migration is supposed to remove.
- One Update Records element per target object, not per field. A process with four updates to
the same Account is one element with four inputAssignments.
- One flow per object per timing, not one flow per criteria node, once you are past the
mechanical conversion. Entry conditions and a Decision inside the flow cost less than five flows racing in step 14.
- Never both. The process is deactivated at the end of the migration, not kept "just in case".
4. Criteria nodes to entry conditions
| Process criteria | Flow | Notes | |
|---|---|---|---|
Conditions are met, AND / OR | start.filters + filterLogic and / or | Straight mapping | |
Conditions are met, custom logic (1 AND (2 OR 3)) | filterLogic with the same string | Flow accepts the logic string | |
| No criteria - just execute the actions | No filters at all | The flow runs on every save that matches the trigger | |
| Formula evaluates to true | Entry formula, or a Decision | References must be rewritten from [Object].Field / myVariable_current.Field to {!$Record.Field} | |
| Advanced: only when the record is created or edited to meet criteria | doesRequireRecordChangedToMeetCriteria true | Same intent, same wording in the metadata | |
myVariable_old.Field | {!$Record__Prior.Field} in a Decision or an entry formula | Entry conditions cannot read prior values | |
Related-record field (myVariable_current.Account.Industry) | Get Records + Decision | Entry conditions filter the triggering record only |
Operators are where a conversion quietly breaks. FlowRecordFilter (entry conditions) accepts only EqualTo, NotEqualTo, GreaterThan, LessThan, GreaterThanOrEqualTo, LessThanOrEqualTo, StartsWith, EndsWith, Contains, IsNull. A process condition may use any FlowComparisonOperator, including IsChanged, WasSet and In, which have no entry-condition form: rebuild them as a Decision, or as an entry formula comparing {!$Record.F} with {!$Record__Prior.F}.
5. Action groups to flow elements
| Process action | Flow element | Migrate to Flow tool | |
|---|---|---|---|
| Update Records, triggering record, literal or same-record reference | Assignment on $Record, before save | Migrates as after-save; optimise by hand | |
| Update Records, related records | Update Records, after save, grouped per object | Supported | |
| Create a Record | Create Records, after save | Supported | |
| Email Alerts | Action element, after save | Supported | |
| Apex | Action element (@InvocableMethod) | Supported | |
| Flows | Subflow, same transaction | Supported, but redesign anything with a callout or a pause as an asynchronous path | |
| Post to Chatter, Quick Actions, Submit for Approval, Send Custom Notification, Send Surveys, Quip, Live Message | Same element, needs configuration after migration | Partial | |
| Processes (invocable) | Subflow or autolaunched flow | Unsupported | |
| Scheduled actions | scheduledPaths on an after-save flow | Only when you migrate the single criteria that owns them |
sf-flow-automation owns the element-level detail of the flow you are building; sf-apex-development owns the invocable class behind an Apex action.
6. Scheduled actions to scheduled paths
| Process | Flow | |
|---|---|---|
| Scheduled action, N days/hours after the record date field | scheduledPaths entry with timeSource RecordField, recordField, offsetNumber, offsetUnit | |
| Scheduled action N hours after the triggering event | timeSource RecordTriggerEvent with the offset | |
| Pending actions already queued in the org | The migrated flow deletes the process's pending actions at run time and re-queues them on the right path, or cancels them when the record no longer qualifies |
A time-based process migrates one outcome per flow. Select several criteria in the Setup tool and no scheduled action is migrated at all. Monitor the queue in Setup before and after: pending items that silently disappear are the failure mode.
7. The two semantics a mechanical conversion gets wrong
Start-of-process values. When a process continues to the next criteria node - the EVALUATE THE NEXT CRITERIA option - the next node evaluates the values the record had at the beginning of the process. A flow does the opposite: a Decision after an Assignment sees the value the Assignment just wrote. Chained criteria therefore cannot be split into independent flows, or turned into a straight Decision chain, without deciding which value each branch should see. The converter blocks these nodes instead of emitting them.
Reevaluation. A process may be configured to evaluate the same record up to five additional times in a single save. Flows have no equivalent, and Salesforce documents that a migrated process with recursion is evaluated only once. If the process relied on reevaluating - ISNEW, PRIORVALUE or a field the process itself changes - the migrated flow is a different automation and needs a deliberate test, not a diff.
8. Cutover, in two deploys
The order is not negotiable. Deactivating first leaves a window with no automation. Doing both in one deploy leaves no way to roll back one half. Keeping both active writes the same field twice in one save, in an order the platform does not define.
Anti-patterns
One flow per criteria node, all after-save, Update Records on the triggering record
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sf-process-builder-migration/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/grzmol/vibe-force/sf-process-builder-migration)