nadolskimm-max/sf-skills/sf-automation-strategy

Claude Code and agent skill by nadolskimm-max/sf-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Guides architectural decisions on which Salesforce automation tool to use: Flow vs Apex vs Scheduled vs Platform Events. Use when deciding between automation approaches, migrating from Process Builder/Workflow Rules, planning automation architecture, or resolving order-of-execution conflicts. Do NOT use for building specific automations (use sf-flow, sf-apex, sf-async-patterns).

Install

npx vskill@latest install nadolskimm-max/sf-skills/sf-automation-strategy

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as nadolskimm-max/sf-skills/sf-automation-strategy.

Automation Strategy

Core Responsibilities

  1. Choose the right automation tool for each use case
  2. Migrate from deprecated tools (Process Builder, Workflow Rules)
  3. Design automation architecture to avoid conflicts
  4. Manage order of execution across automations
  5. Prevent recursion and infinite loops

Automation Tool Selection

CriteriaFlow (Before-Save)Flow (After-Save)Apex TriggerScheduled FlowQueueable/Batch
Update same recordBestPossibleYesN/AN/A
Create related recordsNoYesYesYesYes
Complex logicLimitedModerateFullModerateFull
CalloutsNoNoNo (use async)NoYes
Bulk safeAutoNeed careManualAutoAuto
Admin maintainableYesYesNo (developer)YesNo
Test coverage neededNoNoYes (75%+)NoYes
Transaction controlSame txnSame txnSame txnOwn txnOwn txn

Decision Flowchart

Is it a simple field update on the triggering record?
├── YES → Before-Save Flow (fastest, no DML cost)
└── NO
Does it need to create/update related records?
├── YES → After-Save Flow (declarative) or Apex Trigger (complex)
└── NO
Does it need callouts?
├── YES → Queueable Apex or Platform Event → subscriber
└── NO
Does it need to run on a schedule?
├── YES → Scheduled Flow or Schedulable Apex
└── NO
Is the logic very complex (50+ decision paths)?
├── YES → Apex Trigger + Service class
└── NO → After-Save Flow

Deprecated Tools — Migration Guide

Deprecated ToolMigrate ToNotes
Workflow RulesRecord-Triggered Flow1:1 replacement, use before-save for field updates
Process BuilderRecord-Triggered FlowFlows are more performant, better error handling
@future methodsQueueable ApexQueueable supports chaining, complex types
Process Builder → Flow Migration
For each Process Builder:
1. Document all criteria nodes and actions
2. Create Record-Triggered Flow on same object
3. Replicate entry criteria → Flow entry conditions
4. Replicate Immediate Actions:
- Field Update → Assignment element (before-save) or Update Records (after-save)
- Email Alert → Send Email action
- Create Record → Create Records element
- Apex → Action element (Invocable Apex)
5. Replicate Scheduled Actions → Scheduled Path in Flow
6. Test with bulk records (200+)
7. Deactivate Process Builder, activate Flow

Order of Execution

1. System validation rules (required fields, field types)
2. Before-save Flows
3. Before triggers (Apex)
4. Custom validation rules
5. After triggers (Apex)
6. Assignment rules
7. Auto-response rules
8. After-save Flows
9. Entitlement rules
10. Roll-up summary calculations
11. Cross-object workflow/process
12. Post-commit logic (email, async)

Recursion Prevention

In Apex
apex
public class RecursionGuard {
private static Set<Id> processedIds = new Set<Id>();
public static Boolean isFirstRun(Id recordId) {
if (processedIds.contains(recordId)) {
return false;
}
processedIds.add(recordId);
return true;
}
public static void reset() {
processedIds.clear();
}
}
In Flow
  • Set entry conditions to prevent re-entry (e.g., only when specific field changes)
  • Use a checkbox field as "processing flag"
  • Enable "Only when a record is updated to meet the condition requirements"

One Automation Per Object Rule

Recommended pattern:

  • One trigger per object → delegates to handler classes (TAF)
  • One record-triggered flow per object per timing (before-save, after-save)
  • Avoid mixing Flow + Apex trigger on same object/timing when possible

Cross-Skill References

  • For Flow development: see sf-flow
  • For Apex triggers: see sf-apex
  • For async patterns: see sf-async-patterns
  • For Process Builder migration: see sf-flow

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nadolskimm-max/sf-skills/sf-automation-strategy/badge)](https://verified-skill.com/skills/nadolskimm-max/sf-skills/sf-automation-strategy)

Something wrong with this skill or its page? Tell us.