sf-agentforce

sf-agentforce is a skill for Claude Code from Clientell-Ai/salesforce-skills. It costs 111 tokens per session (4,193 once invoked), scanned A, original, Apache-2.0.

A guide for building and testing Agentforce agents, Salesforce’s configurable AI assistants.

In plain words
What is it for?
Use it to configure service or employee agents, connect Flow, Apex, prompt templates, or external services, and test deployments through Salesforce tools.
Why use it?
It explains how to set up agents safely, connect their actions, define prompts, and test their behavior.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Good fit Use it to configure service or employee agents, connect Flow, Apex, prompt templates, or external services, and test deployments through Salesforce tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/clientell-ai/salesforce-skills/sf-agentforce
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Clientell-Ai/salesforce-skills --skill sf-agentforce
Clone the repo
git clone --depth 1 https://github.com/Clientell-Ai/salesforce-skills

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/clientell-ai/salesforce-skills/sf-agentforce/github.svg)](https://agentmods.dev/skills/clientell-ai/salesforce-skills/sf-agentforce)
Your own site
<a href="https://agentmods.dev/skills/clientell-ai/salesforce-skills/sf-agentforce"><img src="https://agentmods.dev/badge/skills/clientell-ai/salesforce-skills/sf-agentforce/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sf-agentforce

Your own site · 80×15
<a href="https://agentmods.dev/skills/clientell-ai/salesforce-skills/sf-agentforce"><img src="https://agentmods.dev/badge/skills/clientell-ai/salesforce-skills/sf-agentforce.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,193 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.00111 $0.04193
Opus 5 $0.00056 $0.02096
Sonnet 5 $0.00022 $0.00839
Haiku 4.5 $0.00011 $0.00419

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

Security

Grade A, and why

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

skills/sf-agentforce/SKILL.md · 480 lines

How it starts

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

Agentforce Development Guide

You are a Salesforce Agentforce specialist. Build production-ready autonomous and deterministic agents following Salesforce best practices. API version 66.0 for all Agentforce features.

Agent Setup

Creating an Agent

Agents are created in Setup > Agentforce > Agents or via metadata deployment.

Two agent types:

Agent Type API Name Use Case
Service Agent AgentforceServiceAgent Customer-facing, runs as Agent User, deployed to channels
Employee Agent AgentforceEmployeeAgent Internal-facing, runs as logged-in user, embedded in apps

Agent User Configuration (Service Agents Only)

Service Agents require a dedicated Einstein Agent User:

  1. Create a user with the Salesforce Integration license
  2. Assign the AgentforceServiceAgent permission set
  3. Grant object/field permissions the agent needs via permission sets
  4. Set as default_agent_user in agent configuration

Employee Agents run as the logged-in user and do not need a dedicated agent user.

Channel Configuration

Agents can be deployed to:

  • Messaging channels (web chat, SMS, WhatsApp)
  • Embedded Service deployments (Lightning Web Runtime)
  • Slack (Employee Agent)
  • API (Agent Runtime API for programmatic access)

Configure channels in Setup > Messaging Settings or Embedded Service Deployments.


Topics

Topics define the scope of what an agent can handle. Each topic is a logical domain with its own instructions, actions, and scope boundaries.

Topic Design Principles

  • Specific scope: Each topic should have a clear, non-overlapping domain
  • Natural language description: The description is the routing signal — the planner uses it to match user utterances
  • Focused instructions: Tell the agent how to behave within this topic
  • Bounded actions: Only attach actions relevant to the topic

Topic Structure

A topic consists of:

  • Label and API Name: Human-readable name and developer reference
  • Description: Natural language explanation of what this topic covers (this drives routing)
  • Scope: Define what is in-scope and out-of-scope explicitly
  • Instructions: Step-by-step guidance for agent behavior within this topic
  • Actions: The tools available to the agent when this topic is active

Read the full file on GitHub · 480 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 480 lines · 111 tokens per session scan A b91020e26006

Subscribe to this mod's changes

sf-agentforce is a skill published in the GitHub repository Clientell-Ai/salesforce-skills (15 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 111 tokens to every session and 4,193 once invoked, about $0.0006 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.