agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Generate AgentforcePlatformTracingSettings metadata to enable or disable Agentforce agent execution trace spans flowing to Data Cloud. Use this skill for any AgentforcePlatformTracingSettings metadata work. TRIGGER when: user mentions Agentforce tracing, agent trace spans, Data
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill platform-tracing-agentforce-configure --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill platform-tracing-agentforce-configure -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill platform-tracing-agentforce-configure -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill platform-tracing-agentforce-configure -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill platform-tracing-agentforce-configure -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill platform-tracing-agentforce-configure -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill platform-tracing-agentforce-configure -a windsurf -y
name: platform-tracing-agentforce-configure
description: "Generate AgentforcePlatformTracingSettings metadata to enable or disable Agentforce agent execution trace spans flowing to Data Cloud. Use this skill for any AgentforcePlatformTracingSettings metadata work. TRIGGER when: user mentions Agentforce tracing, agent trace spans, Data Cloud tracing, AgentforcePlatformTracingSettings, platform observability tracing, enable agent tracing, wants agent execution spans in Data Cloud, mentions .settings-meta.xml for AgentforcePlatformTracing, or asks about enabling observability for Agentforce agents. DO NOT TRIGGER when: user wants Platform Tracing for TraceSpanEvent (use platform-tracing-configure), wants to query or analyze existing agent trace data in Data Cloud (use agentforce-observe), wants Event Log Files or ELF configuration, wants Change Data Capture (use integration-eventing-cdc-configure), or wants ManagedEventSubscription (use integration-eventing-subscription-configure)."
metadata:
version: "1.0"
domains: ["Platform", "Agentforce", "Data 360"]
minApiVersion: "68.0"
relatedSkills:
- "agentforce-observe"
- "integration-eventing-cdc-configure"
- "integration-eventing-subscription-configure"
- "platform-tracing-configure"Generate AgentforcePlatformTracingSettings metadata to enable or disable forwarding of Agentforce agent execution trace spans to Data Cloud's ingestion pipeline. This is a singleton Settings type with one boolean field introduced in API v68.0 (Spring '25).
---
Before generating, inform the user of these requirements. The skill cannot check org state, but deploying without these prerequisites means the setting has no effect:
1. **Data Cloud must be provisioned** in the org — trace spans are forwarded to Data Cloud's ingestion pipeline. Without Data Cloud, there is no destination for the spans. 2. **`PlatformObservability` org permission** must be active — this permission gates the feature. It is provisioned (not settable via metadata). 3. **API version 68.0+** — the `AgentforcePlatformTracingSettings` type was introduced in Spring '25. Orgs on older API versions will not recognize it.
If the user reports the setting isn't working after deploy, the most likely cause is a missing prerequisite above.
---
Before generating, confirm with the user if not already clear:
No other clarification needed — this is a singleton type with one boolean field.
---
Gather or infer before proceeding:
Defaults unless specified:
If the user provides a clear request, generate immediately without unnecessary back-and-forth.
---
1. **Warn about prerequisites** — inform the user that this feature requires Data Cloud and the `PlatformObservability` org permission.
2. **Read the template** — load `assets/AgentforcePlatformTracing-template.xml`.
3. **Generate the settings file** — replace `{ENABLED}` with `true` or `false` based on the user's desired state.
4. **Place the file** — output to `settings/AgentforcePlatformTracing.settings-meta.xml` in the project's source directory.
---
| Constraint | Rationale | |---|---| | Singleton — only one file per org, one boolean field | The metadata type has exactly one instance. Deploying the file sets the org-wide preference. | | XML namespace must be `http://soap.sforce.com/2006/04/metadata` | Any other namespace causes deploy failure. | | File must be named `AgentforcePlatformTracing.settings-meta.xml` | SFDX source format convention for this Settings type. | | Only include `enableAgentforcePlatformTracing` field | No other fields exist on this type. | | Requires API v68.0+ | Older orgs reject the metadata type entirely. |
---
| Issue | Resolution | |---|---| | Deploy succeeds but tracing doesn't activate | Org lacks `PlatformObservability` permission or Data Cloud is not provisioned. These are provisioned, not settable via metadata. | | `AgentforcePlatformTracingSettings` type not recognized | Org or tooling is on API version < 68.0. Update `sfdx-project.json` sourceApiVersion. | | User confuses this with Platform Tracing (TraceSpanEvent) | Clarify: this sends Agentforce agent execution spans to Data Cloud. For TraceSpanEvent publishing, use the `platform-tracing-configure` skill. |
---
Deliverables:
Before delivering, verify:
---
| Need | Delegate to | |---|---| | Enable TraceSpanEvent publishing (Platform Tracing) | `platform-tracing-configure` skill | | Query or analyze existing Agentforce agent trace data in Data Cloud | `agentforce-observe` skill | | Set up Change Data Capture | `integration-eventing-cdc-configure` skill | | Configure ManagedEventSubscription | `integration-eventing-subscription-configure` skill |
---
| File | When to read | |---|---| | `assets/AgentforcePlatformTracing-template.xml` | Step 2 — template for generating the settings file |
This repository provides Salesforce agent skills, plugins, and sample apps for building applications.
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use this skill to Upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec…
Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific…
Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates,…
Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…
Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.