From jaganpro-sf-skills-7
Estimates Salesforce Flex Credits for Agentforce prompts/actions and Data Cloud workloads. Provides cost projections, scenario planning, budget sizing, and tradeoff analysis.
npx claudepluginhub jaganpro/sf-skillsThis skill uses the workspace's default tool permissions.
Use this skill when the user needs a **public-price estimate** for:
CREDITS.mdLICENSEREADME.mdassets/calculators/flex_calculator.pyassets/calculators/tier_multiplier.pyassets/templates/basic-agent-template.jsonassets/templates/data-cloud-template.jsonassets/templates/hybrid-agent-template.jsonhooks/scripts/validate_estimate.pyreferences/agentforce-pricing.mdreferences/calculation-methodology.mdreferences/common-use-cases.mdreferences/data-cloud-pricing.mdreferences/edge-cases.mdreferences/scoring-rubric.mdProvides guidance on Salesforce Agentforce AI agents, Atlas Reasoning Engine, components, and 2025 features for autonomous automation.
Optimizes Salesforce costs via API call reduction with batching, edition selection from pricing tables, and usage monitoring scripts. Useful for integrations nearing API limits or budget reviews.
Builds, modifies, debugs, and deploys Salesforce Agentforce AI agents using Agent Script, .agent files, aiAuthoringBundle metadata, and sf CLI commands like generate/preview/publish/test.
Share bugs, ideas, or general feedback.
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