Salesforce flow automation review skill

From Raishin/vanguard-frontier-agentic · View interactive version

Salesforce flow automation review skill is an AI agent skill from the GitHub repository Raishin/vanguard-frontier-agentic. Use this skill when Salesforce Flow XML, validation rules, approval processes, or record-triggered automation must be reviewed for correctness, safety, and maintainability. Flags recursion, ungoverned bypass flags, brittle null handling, missing fault paths, hardcoded recipients, before-save vs afte

How to use this skill

Skill file

Salesforce Flow Automation Review Skill

Purpose

This skill reviews Salesforce Flow XML, validation rules, approval processes,

and record-triggered automation for correctness, safety, and maintainability.

It flags patterns that cause data corruption, runaway governor-limit

consumption, incorrect execution order, and logic errors. It does not access

live orgs and does not authorize automation activation.

When to use

When not to use

Minimum payload (required inputs)

,

validation rules) are active on the same object.

Workflow

1. Recursion detection

field as recursion guard, or explicit entry condition excluding re-triggered records.

2. Bypass flags

execution (e.g., Bypass_All_Flows__c custom field or permission set bypass).

documentation.

3. Null handling

the element.

4. Fault paths

platform events) has a connected Fault path.

5. Before-save vs after-save misuse

(not allowed in before-save context).

before-save for efficiency (field updates only, no related-record operations).

6. Hardcoded recipients and IDs

7. Mixed automation on same object

(deprecated),

Apex triggers, and Flows are all active on the same object.

deterministic; flag if both Fire at the same DML moment.

8. Approval process review

9. Validation rule review

a VLOOKUP — this can cause silent failures.

conditioned on specific record types or entry points.

Evidence requirements

Output format

flow_automation_findings:
  recursion_risks:
    - finding: [description]
      severity: Critical | High | Medium | Low
      evidence: [element name or condition]
      recommendation: [brief]
  bypass_flag_risks: [same structure]
  null_handling_risks: [same structure]
  fault_path_gaps: [same structure]
  before_after_save_issues: [same structure]
  hardcoded_values: [same structure]
  mixed_automation_risks: [same structure]
  approval_process_findings: [same structure]
  validation_rule_findings: [same structure]

summary:
  total_findings: [count]
  critical_count: [count]
  high_count: [count]
escalation_gates_fired: [from salesforce-risk-taxonomy, or "none"]
assumptions: [list]
missing_evidence: [what would improve the review]

Redaction rules

Privilege / data handling rules

Handoff rules

salesforce-permission-model-review-skill (if permission bypass is found),

salesforce-org-assessment-skill (if mixed automation is systemic).

critical_count.

Audit log fields

Stop conditions

Security notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.