PluginBench
Skill
Pass
Audit score 90

platform-tracing-agentforce-configure

forcedotcom/sf-skills

Generate AgentforcePlatformTracingSettings metadata to enable or disable Agentforce agent execution trace spans to Data Cloud.

What is platform-tracing-agentforce-configure?

This skill generates AgentforcePlatformTracing.settings-meta.xml files to control whether Agentforce agent execution trace spans flow to Data Cloud. Use it when you need to enable or disable Agentforce agent tracing at the org level (requires API v68.0+, Data Cloud provisioning, and PlatformObservability permission).

  • Generate AgentforcePlatformTracing.settings-meta.xml with enableAgentforcePlatformTracing set to true or false
  • Validate XML namespace and file naming conventions for Salesforce metadata deployment
  • Warn about prerequisites: Data Cloud provisioning, PlatformObservability org permission, and API v68.0+ requirement
  • Distinguish between Agentforce agent tracing and Platform Tracing for TraceSpanEvent

How to install platform-tracing-agentforce-configure

npx skills add https://github.com/forcedotcom/sf-skills --skill platform-tracing-agentforce-configure
Prerequisites
  • Data Cloud must be provisioned in the org
  • PlatformObservability org permission must be active
  • Org must be on API version 68.0 or later (Spring '25+)
Claude Code
Cursor
Windsurf
Cline

How to use platform-tracing-agentforce-configure

  1. 1.Confirm whether you want to enable (true) or disable (false) Agentforce agent tracing
  2. 2.Run the skill and provide your desired state
  3. 3.Review the generated AgentforcePlatformTracing.settings-meta.xml file in settings/ directory
  4. 4.Deploy the file to your Salesforce org using your standard deployment process

Use cases

Good for
  • Enable Agentforce agent execution trace spans to flow to Data Cloud for observability
  • Disable Agentforce agent tracing when it is no longer needed
  • Configure org-wide Agentforce tracing settings as part of a deployment
  • Troubleshoot tracing configuration by regenerating the settings file with correct prerequisites
Who it's for
  • Salesforce developers configuring Agentforce observability
  • Platform architects setting up Data Cloud integration with Agentforce
  • DevOps engineers deploying Agentforce tracing metadata

platform-tracing-agentforce-configure FAQ

What is the difference between this skill and platform-tracing-configure?

This skill configures Agentforce agent execution trace spans flowing to Data Cloud via AgentforcePlatformTracingSettings. The platform-tracing-configure skill handles Platform Tracing for TraceSpanEvent publishing. They are separate features.

Why doesn't my tracing activate after deployment?

The most common causes are: Data Cloud is not provisioned in your org, the PlatformObservability org permission is not active, or your org is on API version below 68.0. These are org-level provisioning requirements, not settable via metadata.

Can I have multiple AgentforcePlatformTracing settings files?

No. AgentforcePlatformTracingSettings is a singleton type—only one instance per org. Deploying the file sets the org-wide preference.

What API version do I need?

API version 68.0 or later (Spring '25). Older orgs will not recognize the AgentforcePlatformTracingSettings metadata type.

What if I need to query or analyze existing trace data in Data Cloud?

Use the agentforce-observe skill instead. This skill only configures whether tracing is enabled; it does not query or analyze trace data.

Full instructions (SKILL.md)

Source of truth, from forcedotcom/sf-skills.


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"

Platform Tracing — Agentforce 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).

Scope

  • In scope: Generating AgentforcePlatformTracing.settings-meta.xml to enable or disable Agentforce agent tracing.
  • Out of scope: Platform Tracing for TraceSpanEvent (use platform-tracing-configure). Event Log Files. Change Data Capture. Org permission provisioning. Data Cloud provisioning.

Prerequisites

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.


Clarifying Questions

Before generating, confirm with the user if not already clear:

  • Enable or disable? (Which state do you want for Agentforce agent tracing?)

No other clarification needed — this is a singleton type with one boolean field.


Required Inputs

Gather or infer before proceeding:

  • Desired state: true (enable) or false (disable)

Defaults unless specified:

  • If user says "enable" or "turn on": set to true
  • If user says "disable" or "turn off": set to false

If the user provides a clear request, generate immediately without unnecessary back-and-forth.


Workflow

  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.


Rules / Constraints

ConstraintRationale
Singleton — only one file per org, one boolean fieldThe metadata type has exactly one instance. Deploying the file sets the org-wide preference.
XML namespace must be http://soap.sforce.com/2006/04/metadataAny other namespace causes deploy failure.
File must be named AgentforcePlatformTracing.settings-meta.xmlSFDX source format convention for this Settings type.
Only include enableAgentforcePlatformTracing fieldNo other fields exist on this type.
Requires API v68.0+Older orgs reject the metadata type entirely.

Gotchas

IssueResolution
Deploy succeeds but tracing doesn't activateOrg lacks PlatformObservability permission or Data Cloud is not provisioned. These are provisioned, not settable via metadata.
AgentforcePlatformTracingSettings type not recognizedOrg 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.

Output Expectations

Deliverables:

  • settings/AgentforcePlatformTracing.settings-meta.xml

Before delivering, verify:

  • XML namespace is exactly http://soap.sforce.com/2006/04/metadata
  • File is named AgentforcePlatformTracing.settings-meta.xml
  • Only enableAgentforcePlatformTracing is present (no extra fields)

Cross-Skill Integration

NeedDelegate to
Enable TraceSpanEvent publishing (Platform Tracing)platform-tracing-configure skill
Query or analyze existing Agentforce agent trace data in Data Cloudagentforce-observe skill
Set up Change Data Captureintegration-eventing-cdc-configure skill
Configure ManagedEventSubscriptionintegration-eventing-subscription-configure skill

Reference File Index

FileWhen to read
assets/AgentforcePlatformTracing-template.xmlStep 2 — template for generating the settings file