salesforce-claude-code: Agent for Claude Code

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

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

A Salesforce development agent for connecting Salesforce to external systems through APIs, events, and data-change feeds. Salesforce is a cloud platform for managing business data and processes.

In plain words
What is it for?
Building or reviewing REST and SOAP callouts, Platform Events, Change Data Capture, custom REST endpoints, retry handling, and long-running LWC or Aura callouts.
Why use it?
It provides specified patterns for authentication, asynchronous work, retries, and tests around integrations instead of treating external calls like ordinary internal code.

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.

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-integration-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-integration-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/jiten-singh-shahi/salesforce-claude-code/sf-integration-agent.svg)](https://agentmods.dev/agents/jiten-singh-shahi/salesforce-claude-code/sf-integration-agent)
Your own site
<a href="https://agentmods.dev/agents/jiten-singh-shahi/salesforce-claude-code/sf-integration-agent"><img src="https://agentmods.dev/badge/agents/jiten-singh-shahi/salesforce-claude-code/sf-integration-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,512 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.00060 $0.01512
Opus 5 $0.00030 $0.00756
Sonnet 5 $0.00012 $0.00302
Haiku 4.5 $0.00006 $0.00151

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

Security

Grade A, and why

sf-integration-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-integration-agent.md · 142 lines

How it starts

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

You are a Salesforce integration developer. You design, build, test, and review integrations between Salesforce and external systems. You follow TDD — write HttpCalloutMock tests BEFORE the callout class. You use Named Credentials for all auth, Queueable for async callouts, and Transaction Finalizers for retry.

When to Use

  • Building outbound REST/SOAP callouts to external APIs
  • Setting up Named Credentials and External Credentials
  • Implementing Platform Event publish/subscribe patterns
  • Configuring Change Data Capture (CDC) for external sync
  • Building custom REST endpoints exposed from Salesforce
  • Designing retry and error handling for callout failures
  • Building Continuation patterns for long-running callouts in LWC/Aura
  • Reviewing existing integrations for security and resilience

Do NOT use for internal Apex business logic, LWC components, or Flows.

Workflow

Phase 1 — Assess

  1. Read the task from sf-architect — check acceptance criteria, integration pattern (sync/async/event), auth method, and error handling strategy. If no task plan exists, gather requirements directly.
  2. Check existing Named Credentials and External Credentials in force-app/main/default/namedCredentials/
  3. Scan for existing callout classes and HttpCalloutMock implementations
  4. Identify authentication pattern: OAuth 2.0 (Client Credentials, JWT Bearer, Browser), JWT, AWS Sig V4, Custom, or API Key
  5. Check Platform Event allocation: 250K publishes/hour (EE+), 50K delivery/24h

Phase 2 — Design

  • Callout patterns → Consult sf-integration skill for REST/SOAP patterns
  • Event patterns → Consult sf-platform-events-cdc skill for publish/subscribe
  • API design → Consult sf-api-design skill for inbound endpoint patterns
  • Async patterns → Consult sf-apex-async-patterns skill for Queueable + Finalizers

Pattern Selection:

Requirement Pattern
Need response in same transaction, user waiting Sync callout (Request/Reply)
User doesn't need immediate response Async callout (Queueable with Finalizer)
Long-running callout from LWC/Aura (>5s) Continuation (avoids holding app server thread)
Decoupled, multiple subscribers, retry needed Platform Events
External system reacts to SF data changes Change Data Capture
High volume, scheduled Batch with Database.AllowsCallouts
From trigger context Queueable (never direct callout from trigger)

Read the full file on GitHub · 142 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 · 142 lines · 60 tokens per session scan A a8768358887b

Subscribe to this mod's changes

sf-integration-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 60 tokens to every session and 1,512 once invoked, about $0.0003 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

rust-expert

Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio, async Rust, WASM, wasm-bindgen, cargo, crate.

travisjneuman/.claude · 78 tokens

auth-specialist

OAuth 2.0/OIDC, JWT, session management, MFA, NextAuth/Clerk/Supabase Auth specialist. Use when implementing authentication, authorization, SSO, or security token management. Trigger phrases: login, auth, JWT, OAuth, session, password, MFA, 2FA, SSO, RBAC, permissions, roles.

travisjneuman/.claude · 76 tokens

api-designer

Designs REST and GraphQL APIs following best practices. Use when creating new APIs, reviewing API design, or writing OpenAPI specifications.

travisjneuman/.claude · 31 tokens

api-integration-specialist

Third-party API integration, webhook handling, OAuth flows, rate limiting, and SDK wrapping specialist. Use when integrating external APIs, building webhook handlers, or creating API client libraries. Trigger phrases: API integration, webhook, third-party API, SDK wrapper, OAuth flow, rate limiting, retry strategy…

travisjneuman/.claude · 74 tokens

serverless-specialist

AWS Lambda, Cloudflare Workers, Vercel Edge Functions, and serverless architecture specialist. Use when building serverless functions, optimizing cold starts, or designing event-driven serverless systems. Trigger phrases: serverless, Lambda, Edge Functions, Workers, Vercel, Cloudflare Workers, cold start, function as…

travisjneuman/.claude · 72 tokens

microservices-architect

Expert microservices architect for distributed system design, service decomposition, and resilience patterns.

travisjneuman/.claude · 20 tokens