Skip to content
forcedotcom avatar

Agentforce Architecture Analyze

Architecture snapshot of one Agentforce agent's planner, topics, actions, flows, Apex, and prompts from design-time metadata.

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

Own this skill? Claim it

What it does

  • Covers the planner, topics, actions, flows, Apex classes, prompt templates, and NGA plugins declared for one agent
  • Reads only BotDefinition, GenAiPlanner*, GenAiPlugin*, GenAiFunction*, Flow, ApexClass, and GenAiPromptTemplate metadata, never runtime audit rows
  • Renders a human-readable architecture document and a Mermaid invocation graph, with a runtime budget of 30 to 60 seconds
  • Designed for diagramming, inventorying, or diffing a named agent's structure across versions; use agentforce-d360-analyze for session traces

Install

$ npx -y skills add forcedotcom/sf-skills --skill agentforce-architecture-analyze -y

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

Files

agentforce-architecture-analyze — declared architecture snapshot

Design-time metadata tree for one Agentforce agent: planner → topics → actions → flows → Apex → prompts → NGA plugins. Reads declared metadata only — BotDefinition, GenAiPlanner*, GenAiPlugin*, GenAiFunction*, Flow, ApexClass, GenAiPromptTemplate. Does not read runtime audit rows.

Runtime budget: 30–45s typical, ≤60s hard cap on reference fixtures. Sequential baseline would be 90–220s; parallel Tooling SOQL fan-out delivers a 3–5× speedup. Large bots with many flows scale approximately linearly — each flow metadata retrieve is one round-trip.

Runs inline — no subagent. Every phase is deterministic file processing.

If the user hasn't named an agent

Trigger condition: $ARGUMENTS names no agent (no --agent flag and no exact BotDefinition API name in the prose). Never invent an agent name. Instead, discover what the org actually contains — one read-only query, no pipeline yet. Use the --org alias if given, otherwise the default target org (omit --target-org):

Details

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

Questions

What does the agentforce-architecture-analyze skill do?

It produces a declared architecture snapshot for one Agentforce agent, covering its planner, topics, actions, flows, Apex, prompt templates and NGA plugins. It renders a human-readable architecture document and a Mermaid invocation graph from design-time metadata. It does not read runtime session traces or audit rows.

How do I install the agentforce-architecture-analyze skill?

Run this command in a project: npx -y skills add forcedotcom/sf-skills --skill agentforce-architecture-analyze -y. Once installed, the agent can describe, diagram, inventory, audit or diff the architecture of a named Agentforce agent in a Salesforce org.

When should I use agentforce-architecture-analyze instead of agentforce-d360-analyze?

Use agentforce-architecture-analyze to describe, diagram, inventory or diff the structure of a specific agent, such as comparing v3 with v5. Use agentforce-d360-analyze for runtime session traces and conversation transcripts, which this skill does not read.

What does the skill need to run?

It needs the sf CLI at version 2.136.8 or later and python3 at version 3.10 or later. It targets Agentforce metadata with minimum API version 64.0 and reads the agent by its API name from a Salesforce org you are authenticated to.

More from forcedotcom/sf-skills

All 78

Similar to Agentforce Architecture Analyze

More AI Agents & LLM Apps