nadolskimm-max/sf-skills/sf-automation-strategy
Claude Code and agent skill by nadolskimm-max/sf-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-strategySemi-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
- Choose the right automation tool for each use case
- Migrate from deprecated tools (Process Builder, Workflow Rules)
- Design automation architecture to avoid conflicts
- Manage order of execution across automations
- Prevent recursion and infinite loops
Automation Tool Selection
| Criteria | Flow (Before-Save) | Flow (After-Save) | Apex Trigger | Scheduled Flow | Queueable/Batch | |
|---|---|---|---|---|---|---|
| Update same record | Best | Possible | Yes | N/A | N/A | |
| Create related records | No | Yes | Yes | Yes | Yes | |
| Complex logic | Limited | Moderate | Full | Moderate | Full | |
| Callouts | No | No | No (use async) | No | Yes | |
| Bulk safe | Auto | Need care | Manual | Auto | Auto | |
| Admin maintainable | Yes | Yes | No (developer) | Yes | No | |
| Test coverage needed | No | No | Yes (75%+) | No | Yes | |
| Transaction control | Same txn | Same txn | Same txn | Own txn | Own txn |
Decision Flowchart
Deprecated Tools — Migration Guide
| Deprecated Tool | Migrate To | Notes | |
|---|---|---|---|
| Workflow Rules | Record-Triggered Flow | 1:1 replacement, use before-save for field updates | |
| Process Builder | Record-Triggered Flow | Flows are more performant, better error handling | |
| @future methods | Queueable Apex | Queueable supports chaining, complex types |
Process Builder → Flow Migration
Order of Execution
Recursion Prevention
In Apex
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
- SKILL.md in the repositoryCheckingskills/sf-automation-strategy/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/nadolskimm-max/sf-skills/sf-automation-strategy)