salesforce-claude-code: Agent for Claude Code

.cursor/agents/sf-agentforce-agent.md

sf-agentforce-agent is an agent for Claude Code, Cursor from jiten-singh-shahi/salesforce-claude-code. It costs 41 tokens per session (2,179 once invoked), scanned A, original, MIT.

A Salesforce Agentforce developer for building AI agents with Agent Script, topics, prompt templates, and custom actions. It also connects agents to Apex or Flow actions, tests their behavior, and prepares their metadata for deployment.

In plain words
What is it for?
Use it to create Agentforce agents, author .agent files, build invocable Apex actions, configure Flow or MCP actions, write prompt templates, run agent tests, and deploy agent metadata. It is not for unrelated standard Apex.
Why use it?
It organizes the work needed to make an Agentforce agent use the right topics, context, actions, and tests instead of treating it like a standard Apex feature.

Agent for Claude CodeCursor

Written for Claude Code and Cursor: shipped in a Claude Code plugin, but also installed under .cursor/. Also seen: model in frontmatter; mentions subagents.

This is jiten-singh-shahi/salesforce-claude-code's own configuration. It tells Claude Code and Cursor how to work on salesforce-claude-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything salesforce-claude-code configures →

Part of the salesforce-claude-code plugin — 41 skills, 17 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to jiten-singh-shahi/salesforce-claude-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jiten-singh-shahi/salesforce-claude-code/main/.cursor/agents/sf-agentforce-agent.md
Clone the repo
git clone --depth 1 https://github.com/jiten-singh-shahi/salesforce-claude-code

Made for: Claude Code, Cursor.

Or install salesforce-claude-code, the plugin that ships this one along with the rest of its 41 skills, 17 agents.

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 sf-agentforce-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/jiten-singh-shahi/salesforce-claude-code/sf-agentforce-agent.svg)](https://agentmods.dev/agents/jiten-singh-shahi/salesforce-claude-code/sf-agentforce-agent)
Your own site
<a href="https://agentmods.dev/agents/jiten-singh-shahi/salesforce-claude-code/sf-agentforce-agent"><img src="https://agentmods.dev/badge/agents/jiten-singh-shahi/salesforce-claude-code/sf-agentforce-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,179 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.00041 $0.02179
Opus 5 $0.00020 $0.01090
Sonnet 5 $0.00008 $0.00436
Haiku 4.5 $0.00004 $0.00218

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

Security

Grade A, and why

sf-agentforce-agent 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 8d 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.

.cursor/agents/sf-agentforce-agent.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Salesforce Agentforce developer. You design, build, test, and review Agentforce AI agents with Agent Script, custom actions, and prompt templates. You follow TDD — write Apex tests for @InvocableMethod actions BEFORE the production class. You enforce topic limits and context engineering best practices. You default to Agent Script for all new agents.

When to Use

  • Creating Agentforce agents with Agent Script (.agent files)
  • Generating and publishing authoring bundles
  • Building custom Apex actions (@InvocableMethod) for agents
  • Building Flow actions for agent orchestration
  • Creating and testing Prompt Templates
  • Configuring MCP Server, Named Query, or AuraEnabled actions
  • Testing agent behavior with sf agent test and YAML test specs
  • Deploying agent metadata (GenAi types, AiAuthoringBundle)
  • Reviewing existing Agentforce configurations for context engineering quality

Do NOT use for standard Apex classes, LWC, or Flows unrelated to Agentforce.

Workflow

Phase 1 — Assess

  1. Read the task from sf-architect — check acceptance criteria, topic design, action scope, and grounding strategy. If no task plan exists, gather requirements directly.
  2. Check existing Agentforce configuration in the org:
    • Look for aiAuthoringBundles/ directory (Agent Script)
    • Inventory existing .agent files and their topics
    • Check for classic config: genAiPlugins/, genAiPlanners/, genAiPlannerBundles/
  3. Inventory existing @InvocableMethod classes and their labels/descriptions
  4. Review existing topics — count total (max 10 recommended)
  5. Review existing actions per topic — count total (max 12-15 per topic)
  6. Determine approach: Agent Script (API v65+, recommended) or Classic Setup (API < v65)

Phase 2 — Design Topics

Consult sf-agentforce-development skill for patterns.

Default to Agent Script for new agents. Use Classic Setup only for orgs on API < v65 or for minimal single-topic agents managed by admins.

Topic Design Rules (both approaches):

Read the full file on GitHub · 184 lines

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. 8d ago First seen · 184 lines · 41 tokens per session scan A 3c1652d88f03

Subscribe to this mod's changes

sf-agentforce-agent is an agent published in the GitHub repository jiten-singh-shahi/salesforce-claude-code (16 stars, last pushed 2mo ago), licensed MIT. It adds 41 tokens to every session and 2,179 once invoked, about $0.0002 per session on Opus 5. 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-30.

Related

Other agents, from other repositories

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

product-analytics-specialist

PostHog, Mixpanel, Amplitude event tracking, funnels, cohorts, and A/B testing specialist. Use when implementing analytics, designing event schemas, or setting up experimentation. Trigger phrases: analytics, tracking, PostHog, Mixpanel, Amplitude, Segment, events, funnel, cohort, A/B test, feature flag, conversion…

travisjneuman/.claude · 80 tokens

whitepaper-coherence

Analyse la cohérence globale d'un livre blanc (logique, contradictions, ruptures narratives, redondances). Utiliser pour auditer un whitepaper avant publication.

FlorianBruniaux/claude-code-ultimate-guide · 39 tokens

eval-judge

Use this agent during the /eval Skill Phase 3 (Epic #803, issue #810) to judge — from a session-eval record's dimension evidence, kpis, and sessionid — the record's instruction-adherence and report-quality per rubric-v1.md's Judge Dimensions section. Dispatched read-only, coordinator-side (never inside a wave) by…

Kanevry/session-orchestrator · 249 tokens

qa-engineer

Senior QA engineer for test suite creation, coverage analysis, and quality assurance. Runs in an isolated worktree and produces coverage deltas and structured reports…

KevinZai/commander · 34 tokens

verifier

Post-execution verification agent. Runs every acceptance criterion, checks requirement coverage, and produces a PASS/FAIL report with evidence. Never skips a criterion.

randomittin/heimdall · 33 tokens