Skip to content
forcedotcom avatar

Agentforce Observe

Observe production Agentforce sessions in Data Cloud, reproduce failures in preview, and manage AHM alerts.

CCM score
69 of 100
skills.sh installs
5.8K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers production trace analysis across STDM session data, Data Cloud trace records, conversation logs, and agent metrics
  • Includes a three-phase workflow: Observe sessions, Reproduce issues with sf agent preview, and Improve the .agent file
  • Enforces a Data Space check and an STDM availability probe, falling back to local test suites and preview traces when STDM is absent
  • Designed for teams investigating production regressions, failures, or alert behavior rather than authoring or testing agents

Install

$ npx -y skills add forcedotcom/sf-skills --skill agentforce-observe -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Agentforce Observability

Improve Agentforce agents using session trace data and live preview testing.

Three-phase workflow:

  • Observe -- Query STDM sessions from Data Cloud (if available), OR run test suites + preview with local traces as fallback
  • Reproduce -- Use sf agent preview to simulate problematic conversations live
  • Improve -- Edit the .agent file directly, validate, publish, verify

Platform Notes

  • Shell examples below use bash syntax. On Windows, use PowerShell equivalents or Git Bash.
  • Replace python3 with python on Windows.
  • Replace /tmp/ with $env:TEMP\ (PowerShell) or %TEMP%\ (cmd).
  • Replace jq with python -c "import json,sys; ..." if jq is not installed.

Routing

Gather these inputs before starting:

Details

Repository
github.com/forcedotcom/sf-skills
Categories
AI Agents & LLM Apps, Debugging, Sales & CRM
First seen
Jul 14, 2026

Questions

What does the agentforce-observe skill do?

It analyzes production Agentforce agent behavior using session traces and Data Cloud, covering failures, regressions and performance issues. It can also manage Agent Health Monitoring alerts on agent metrics such as escalation rate and deflection.

How do I install agentforce-observe?

Run npx -y skills add forcedotcom/sf-skills --skill agentforce-observe -y in a project. Once installed, the agent can query STDM session data, run findSessions or trace analysis, and reproduce reported production issues in preview.

Which skills in its category lead the way, and how does this one stand out?

It sits in the AI Agents & LLM Apps category, alongside microsoft-foundry, azure-ai and several google-agents-cli skills. This skill is focused on observing production Agentforce agents through session traces rather than building or testing them.

Does agentforce-observe need Data Cloud or other tools set up first?

It expects an authenticated Salesforce org, the sf CLI, git, jq and python3, and the STDM Data Model Objects must be active in Data Cloud. If STDM is unavailable, it falls back to test suites and local preview traces.

More from forcedotcom/sf-skills

All 78

Similar to Agentforce Observe

More AI Agents & LLM Apps