/agent-engineer:agentforcefrom Agent Engineer
Builds, wires, tests, secures and operates Salesforce Agentforce agents in Agentforce Builder. Covers Agent Script, subagents, actions (Flow, Apex, prompt templates, Integration Procedures, External Services, MCP), Prompt Builder, Data Cloud retrievers, channels, Trust Layer, and the sf agent CLI.
Ships in Agent Engineer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
An Agentforce agent is a compiled Agent Script file plus the platform pieces it calls. Put what must never vary in script logic and code; leave the model only the choices that need judgement.
AgentforceServiceAgent (customers; runs as one
Einstein Agent User in access.default_agent_user; messaging, web, voice, email) vs
AgentforceEmployeeAgent (staff; runs as the logged-in user; Lightning panel, mobile,
Slack). It fixes identity, channels and which constructs are legal.if, run, set, transition to and
available when are deterministic; | instruction text is only a hint to the model.
Verification, ordering and permission checks go in logic, never in instructions.start_agent. Logic runs top to bottom before the model, so
put deterministic transitions (verification gates) first.reasoning.actions lists and available when allows.
It sees stored values only through {[email protected]} templates.with customer_id = @variables.verified_customer_id; gate flags (*_verified,
*_confirmed) are set only from deterministic action outputs, never @utils.setVariables.outputs:. Input and output names match the flow
variable or @InvocableVariable exactly. Hide IDs and PII with filter_from_agent: True.isSuccess / errorMessage instead of throwing; writes re-check ownership and
are idempotent. Don't rely on require_user_confirmation.AiAgent*__dlm tables.sf agent test run
exits 0 on failed assertions, so gate CI on parsed results.aiAuthoringBundles/*/*.agent, legacy genAiPlannerBundles / bots,
flows, invocables, templates, IPs; agent type; target org (IsSandbox).agent-design. Success criteria, the smallest shape (one start_agent
for one domain; a router only for several real domains), human handoff points.agent-script-language.md and architecture-patterns.md:
variables (mutable vs linked), gates, subagents, transitions, escalation.actions.md); describe every action and input for
the planner (agent-tools).prompt-builder.md, data-cloud.md);
measure retrieval with agent-rag.trust-layer-and-guardrails.md; untrusted content + private data + an
outbound action → agent-guardrails lethal-trifecta check.connections-and-channels.md, lightning-components.md).coding-assistant-tooling.md and testing-and-evals.md:
sf agent validate → preview → test suite in a sandbox; failures feed agent-evals.dev-lifecycle-and-cli.md: publish, human approval, activate,
watch traces (observability-and-trace-sql.md), keep the previous version for rollback.| Need | Target |
|---|---|
| Record reads/writes, logic an admin will maintain | Autolaunched Flow (flow://) |
| Complex logic, bulk queries, callouts, strict typing | Apex @InvocableMethod (apex://) |
| Generated text (summary, email, classification) with grounding | Prompt template (prompt://) |
| OmniStudio org, multi-source fetch + transform, cached reads | Integration Procedure |
| External REST API with an OpenAPI spec | External Service via Named Credential |
| An existing external MCP server | Agentforce MCP client |
| Answers from knowledge articles or documents | Data Library / retriever |
| Unified profile, insights, segments | Data 360 actions, data graphs |
| Rich input or output card in the chat | Custom Lightning Type + LWC |
| Another agent owns the job | Delegation, A2A, Agent Fabric |
| instructions.confirmed or verified flag used as an authorization gate.NextGen_* permission set, or an admin as the agent user.versionIdentifiers.sf + sf-skills).The .agent bundle plus the flows, Apex, templates, IPs, CLTs and permission sets it
needs; test spec and results. Record agent type, subagents, actions (target, risk),
channels and gates in agent-engineering/design.md if the project keeps one, else the PR.
Read only what the task needs. "(verify in your org)" marks thinly sourced facts;
"ADLC" is Salesforce's agentforce-adlc skills repo.
| File | Read when |
|---|---|
agent-script-language.md | Writing script: blocks, variables, expressions, annotated agent, errors |
actions.md | Adding or debugging any action: targets, bindings, chaining, gating |
architecture-patterns.md | Choosing a shape; models; migrating legacy agents |
connections-and-channels.md | Messaging, web, Slack, voice, Agent API, handoff |
flows-and-apex.md | Flow or Apex actions; flows/Apex that call agents or models |
prompt-builder.md | Prompt templates, grounding, versions |
data-cloud.md | Data 360, search indexes, retrievers, Data Library |
integration-procedures.md | OmniStudio IPs and Data Mappers as actions |
external-integration-and-multi-agent.md | Credentials, External Services, MuleSoft, MCP, A2A |
lightning-components.md | Custom Lightning Types, LWCs, agent surfaces |
trust-layer-and-guardrails.md | Trust Layer, identity, injection, red-team, launch checklist |
observability-and-trace-sql.md | Trace data model, SQL recipes, analytics, alerts |
testing-and-evals.md | Preview, test specs, CI gate, test sets |
dev-lifecycle-and-cli.md | Metadata, sf agent commands, versions, CI/CD |
coding-assistant-tooling.md | LSP, offline validation, build loop, approvals |
gotchas-and-limits.md | Limits, Flex Credits, error messages → fixes |
references/actions.md (opens in a new tab)references/agent-script-language.md (opens in a new tab)references/architecture-patterns.md (opens in a new tab)references/coding-assistant-tooling.md (opens in a new tab)references/connections-and-channels.md (opens in a new tab)references/data-cloud.md (opens in a new tab)references/dev-lifecycle-and-cli.md (opens in a new tab)references/external-integration-and-multi-agent.md (opens in a new tab)references/flows-and-apex.md (opens in a new tab)references/gotchas-and-limits.md (opens in a new tab)references/integration-procedures.md (opens in a new tab)references/lightning-components.md (opens in a new tab)references/observability-and-trace-sql.md (opens in a new tab)references/prompt-builder.md (opens in a new tab)references/testing-and-evals.md (opens in a new tab)references/trust-layer-and-guardrails.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
salesforce, agentforce, agent-script, einstein, prompt-builder, data-cloud
npx claudepluginhub sarthakrastogi/agent-engineer --plugin agent-engineer13 skills in this plugin
/agent-accuracyDebug and fix an LLM agent or RAG system that gives wrong, inconsistent, hallucinated or low-quality results: reproduce, localise the failing component, one hypothesis, the least-powerful fix, measure, check regressions, log. Use when the user says "it hallucinates", "wrong answers", "accuracy dropped", "flaky / right only sometimes", "worse after the model upgrade", "should I add RAG / a bigger model / fine-tune?", or wants a pass rate up. Not for building evals (agent-evals), errors/timeouts/migrations (agent-production), retrieval internals (agent-rag), prompt rewrites (agent-prompting) or tool redesign (agent-tools)./agent-contextEngineer what an agent's context window holds over long or multi-turn runs: ordering and token budgets, just-in-time loading, tool-result clearing and compaction, scratchpads, progress files, long-term memory, subagent isolation, prompt-cache hit rate, and measuring context from traces. Use when the agent forgets instructions or decisions, degrades or loops as runs grow, hits context limits, has token bloat or low cache hits, needs memory across sessions, or runs for hours. Not for prompt wording (agent-prompting), document search (agent-rag), one tool's output size (agent-tools), or overall cost and latency (agent-production)./agentcoreBuilds, secures, ships and operates agents on Amazon Bedrock AgentCore: the harness (config-based managed agent, "agent builder"), code agents and MCP servers on Runtime, the @aws/agentcore CLI, Gateway, Identity (JWT, OAuth, on-behalf-of), Memory, Code Interpreter, Browser, Web Search, Policy (Cedar) and Bedrock Guardrails, Observability, Evaluations, Registry, and CDK/CloudFormation/Terraform. Use when code or the request mentions AgentCore, bedrock-agentcore, harness.yaml, agentcore.json, InvokeAgentRuntime or InvokeHarness, or migrates Bedrock Agents Classic. Not for vendor-neutral design, prompts, tool design, evals or tracing (the agent-* skills; this one maps them onto AgentCore)./agent-designScopes and architects LLM agents: testable success criteria, the simplest shape (single call, workflow, single agent, multi-agent), framework and models, human checkpoints, agent-engineering/design.md. Use when building an agent from scratch, deciding agent vs workflow vs multi-agent, choosing a framework or model, or redesigning one that is too slow, costly or unreliable. Not for tool schemas or MCP (agent-tools), prompt wording (agent-prompting), memory (agent-context), retrieval (agent-rag), tuning a running agent (agent-production), or permissions (agent-guardrails)./agent-engineerEntry point for LLM agent work when the right agent-* skill isn't obvious. Maps symptoms to the specialised agent-* skills and defines the optional agent-engineering/ project record. Use when starting a blank-page agent, chatbot or RAG project ("build an agent that…", "where do I start?"), for a broad request spanning several areas ("we're launching next week", "review our agent"), or to survey an existing LLM codebase before changing it. For a specific task (a prompt, tools, evals, tracing, retrieval, cost) load that skill directly instead./agent-evalsMeasure LLM agents and RAG systems: error analysis on traces, failure taxonomy, datasets and synthetic inputs, code graders and LLM judges, judge validation (TPR/TNR, bias correction), trajectory and tool-call evals, pass@k vs pass^k, CI gates, online evals. Use when the user says "add evals", "is this change better?", "write a judge", "can I trust this judge", "build a test set", "add an eval gate to CI", "score production traffic", or has traces and doesn't know what to measure. Not for fixing the cause of wrong output (agent-accuracy), retrieval metrics in depth (agent-rag) or emitting traces (agent-observability).Other plugins' skills for the same job