analyze-flow

analyze-flow is a command for Claude Code from BanibrataChatterjee/AwesomeSalesforceSkills. It costs 0 tokens per session (480 once invoked), scanned A, original, Apache-2.0.

A Salesforce Flow review tool for checking automated processes. Salesforce Flow is a visual system for running actions when records or other events change.

In plain words
What is it for?
Use it with a Flow file or Salesforce object to review bulk processing, database operations inside loops, missing error paths, and whether automation should stay in Flow or move elsewhere.
Why use it?
It helps catch inefficient record processing and conflicts when both flows and Apex triggers respond to the same event.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it with a Flow file or Salesforce object to review bulk processing, database operations inside loops, missing error paths, and whether automation should stay in Flow or move elsewhere.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/banibratachatterjee/awesomesalesforceskills/analyze-flow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/BanibrataChatterjee/AwesomeSalesforceSkills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-flow

README.md
[![agentmods](https://agentmods.dev/badge/commands/banibratachatterjee/awesomesalesforceskills/analyze-flow/github.svg)](https://agentmods.dev/commands/banibratachatterjee/awesomesalesforceskills/analyze-flow)
Your own site
<a href="https://agentmods.dev/commands/banibratachatterjee/awesomesalesforceskills/analyze-flow"><img src="https://agentmods.dev/badge/commands/banibratachatterjee/awesomesalesforceskills/analyze-flow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-flow

Your own site · 80×15
<a href="https://agentmods.dev/commands/banibratachatterjee/awesomesalesforceskills/analyze-flow"><img src="https://agentmods.dev/badge/commands/banibratachatterjee/awesomesalesforceskills/analyze-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 480 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00480
Opus 5 $0.00000 $0.00240
Sonnet 5 $0.00000 $0.00096
Haiku 4.5 $0.00000 $0.00048

Measured 10d ago against content hash f13792282f70, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

analyze-flow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/analyze-flow.md · 62 lines

What it actually says

/analyze-flow — Flow vs Apex routing + bulkification review

Wraps agents/flow-analyzer/AGENT.md. For a Flow or an sObject, routes via standards/decision-trees/automation-selection.md, checks bulkification, and flags trigger/flow co-existence risks.


Step 1 — Collect inputs

Ask:

1. Either a Flow path or an sObject API name?
   Example flow path: force-app/main/default/flows/Lead_AutoConvert.flow-meta.xml
   Example object:    Lead

2. Target-org alias? (optional — enables list_flows_on_object)

If the user gave a flow path, skip the object question. If they gave an object, scan force-app/main/default/flows/ for matching flows.


Step 2 — Load the agent

Read agents/flow-analyzer/AGENT.md fully + the automation decision tree + flow skills listed in Mandatory Reads.


Step 3 — Execute

Follow the 5-step plan:

  1. Gather flows in scope (local + optional org-side via list_flows_on_object)
  2. Apply the automation decision tree to each flow (KEEP / FIX_IN_PLACE / MIGRATE_TO_APEX / MIGRATE_TO_AGENTFORCE)
  3. Bulkification checks (DML/SOQL in loops, missing fault paths, untyped collections)
  4. Co-existence check (trigger + flow on same event)
  5. Recommendations with specific element changes

Step 4 — Deliver

  • Summary with verdict distribution
  • Per-flow report (verdict, decision-tree branch, findings, fixes)
  • Co-existence section if triggers + flows overlap
  • Citations

Step 5 — Recommend follow-ups

  • /consolidate-triggers if co-existence is flagged and Apex should own the event.
  • /refactor-apex if a flow should migrate to Apex — applied to the new handler.
  • /request-skill if a flow pattern has no canonical skill.

What this command does NOT do

  • Does not modify the flow XML.
  • Does not activate or deactivate flows in the org.
  • Does not pass judgment on Flow vs Apex outside the decision tree.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 62 lines · 0 tokens per session scan A f13792282f70

Subscribe to this mod's changes

analyze-flow is a command published in the GitHub repository BanibrataChatterjee/AwesomeSalesforceSkills (3 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 480 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.