skills/sf-flex-estimator/SKILL.md
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 building Agentforce metadata or .agent files themselves (use sf-ai-agentforce or sf-ai-agentscript), implementing Data Cloud assets (use sf-datacloud-*), or asking for contract-specific commercial approval that depends on non-public pricing terms.
npx skillsauth add jaganpro/claude-code-sfskills sf-flex-estimatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user needs a public-price estimate for:
This skill is for planning and estimation, not implementation.
Use sf-flex-estimator when the user is asking questions like:
Delegate elsewhere when the user is:
.agent files → sf-ai-agentscriptsf-datacloud-* skillsAsk for or infer:
starter, basic, standard, advancedstandard, custom, voice, sandboxIf the user does not know exact monthly volumes, start with a baseline template and generate multiple scenarios.
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 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 |
For the full meter table and examples, read:
Model the agent and Data Cloud footprint first.
Useful starting templates:
For Agentforce, estimate:
per-invocation FC = prompt FC + action FC + token overage FC
Map each monthly meter volume to the current public rate card, then apply cumulative tiering.
Use the standard scenario set unless the user provides a better one:
Check for:
This validator is a manual helper. It is intentionally not wired into the shared auto-validation dispatcher because generic
.jsonor.mdfile patterns would create too much noise.
# 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
When the estimate is complete, present:
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>
| 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
development
Lightning Web Components with PICKLES methodology and 165-point scoring. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use sf-apex), Aura components, or Visualforce.
tools
Use this skill whenever users want to build, inspect, debug, automate, or publish workflows in Agentforce Grid (AI Workbench) using Salesforce plus the Grid MCP or direct Grid REST calls. Trigger it for Grid workbook creation, worksheet setup, Object/Reference/AI/Agent/AgentTest/Evaluation/PromptTemplate/InvocableAction column design, prompt drafting inside Grid, worksheet execution troubleshooting, Grid YAML `apply_grid` specs, and Windows-specific Grid setup issues. Also use it when users mention AI Workbench, Grid Studio, workbook IDs, worksheet IDs, Grid Connect, or ask for recipes like "top opportunities with AI email drafts", "agent test suite in Grid", or "build this worksheet from YAML". Do not use it for generic Salesforce work unrelated to Agentforce Grid.
testing
Permission Set analysis, hierarchy viewer, and access auditing. TRIGGER when: user asks "who has access to X?", analyzes permission sets/groups, or touches .permissionset-meta.xml / .permissionsetgroup-meta.xml files. DO NOT TRIGGER when: creating new metadata (use sf-metadata), deploying permission sets (use sf-deploy), or Apex sharing logic (use sf-apex).
devops
Salesforce metadata generation and querying with 120-point scoring. TRIGGER when: user creates custom objects, fields, validation rules, or touches .object-meta.xml, .field-meta.xml, .profile-meta.xml files. DO NOT TRIGGER when: permission set analysis (use sf-permissions), deploying metadata (use sf-deploy), or Flow XML (use sf-flow).