Sf flex estimator

From Jaganpro/sf-skills · View interactive version

Sf flex estimator is an AI agent skill from the GitHub repository Jaganpro/sf-skills. Salesforce Flex Credit estimation for Agentforce and Data Cloud workloads. TRIGGER when: user needs cost projections, scenario planning, budget sizing, or architecture tradeoff analysis for Agentforce prompts/actions, Data Cloud meters, or monthly Flex Credit usage. DO NOT TRIGGER when: user is buil

How to use this skill

Skill file

sf-flex-estimator: Agentforce & Data Cloud Flex Credit Estimation

Use this skill when the user needs a public-price estimate for:

This skill is for planning and estimation, not implementation.


When This Skill Owns the Task

Use sf-flex-estimator when the user is asking questions like:

Delegate elsewhere when the user is:


Required Context to Gather First

Ask for or infer:

If the user does not know exact monthly volumes, start with a baseline template and generate multiple scenarios.


Core Pricing Model

Agentforce

Agentforce billing is linear — no volume tiers.

| Component | FC per invocation |

|---|---:|

| Starter prompt | 2 |

| Basic prompt | 2 |

| Standard prompt | 4 |

| Advanced prompt | 16 |

| Standard / custom action | 20 |

| Voice action | 30 |

| Sandbox action | 16 |

Data Cloud

Data Cloud uses monthly cumulative tiering.

| Tier | Monthly FC range | Multiplier |

|---|---:|---:|

| Tier 1 | 0 - 300K | 1.0x |

| Tier 2 | 300K - 1.5M | 0.8x |

| Tier 3 | 1.5M - 12.5M | 0.4x |

| Tier 4 | 12.5M+ | 0.2x |

Other rules

For the full meter table and examples, read:


Recommended Workflow

1. Baseline the structure

Model the agent and Data Cloud footprint first.

Useful starting templates:

2. Calculate the per-invocation cost

For Agentforce, estimate:

per-invocation FC = prompt FC + action FC + token overage FC

3. Calculate Data Cloud base FC

Map each monthly meter volume to the current public rate card, then apply cumulative tiering.

4. Generate scenarios

Use the standard scenario set unless the user provides a better one:

5. Validate assumptions and recommend optimizations

Check for:


Scripts and Templates

Calculator

Validation helper

This validator is a manual helper. It is intentionally not wired into the shared auto-validation dispatcher because generic .json or .md file patterns would create too much noise.

Example commands

# Per-invocation estimate for a template
python3 assets/calculators/flex_calculator.py \
  --mode structure \
  --agent-def assets/templates/basic-agent-template.json

# Scenario estimate for an Agentforce + Data Cloud design
python3 assets/calculators/flex_calculator.py \
  --mode scenarios \
  --agent-def assets/templates/hybrid-agent-template.json

# Tiering only
python3 assets/calculators/tier_multiplier.py \
  --base-fc 5000000 \
  --pretty

# Validate an estimate input document
python3 hooks/scripts/validate_estimate.py \
  --input assets/templates/hybrid-agent-template.json \
  --verbose

High-Signal Estimation Rules


Output Format

When the estimate is complete, present:

  1. workload summary
  2. per-invocation Agentforce cost
  3. monthly scenario table
  4. Data Cloud tiering impact
  5. top optimization recommendations
  6. confidence / validation notes

Suggested shape:

Flex Credit estimate: <name>
Agentforce per invocation: <fc> FC ($<cost>)
Data Cloud monthly base: <fc> FC
Scenarios: <low / medium / high / enterprise>
Optimization priorities: <1-3 bullets>
Confidence: <high / medium / low>

Cross-Skill Integration

| Need | Delegate to | Why |

|---|---|---|

| build the actual agent metadata | sf-ai-agentforce | implementation of Builder assets |

| build a deterministic .agent bundle | sf-ai-agentscript | authoring and validation of Agent Script |

| implement Data Cloud pipeline assets | sf-datacloud and sf-datacloud-* | live Data Cloud setup |

| package or deploy the solution | sf-deploy | deployment workflow |

| generate supporting test or sample data | sf-data | data preparation |

A common chain is:

sf-ai-agentforce / sf-ai-agentscript / sf-datacloud-* → sf-flex-estimator → sf-deploy

Reference Map

Start here

Pricing references

Validation and scoring

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.