agentforce-architecture-analyze

Analyze Salesforce Agentforce bot architecture and generate a Mermaid invocation graph.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Agents --skill agentforce-architecture-analyze-padjei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agentforce-architecture-analyze
Source: https://github.com/padjei/SF_Agents/tree/main/.claude/skills/agentforce-architecture-analyze
Command: npx skills add https://github.com/padjei/SF_Agents --skill agentforce-architecture-analyze-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sf, python, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive analysis and visualization of the architecture of a Salesforce Agentforce bot, including planners, topics, actions, flows, Apex, prompts, and NGA plugins. It helps developers understand the internal structure and dependencies of the bot.

Core Features & Use Cases

  • Declared Architecture Analysis: Provides a snapshot of the architecture, including planners, topics, actions, flows, Apex, prompts, and NGA plugins.
  • Visualization: Generates a human-readable architecture document and a Mermaid invocation graph.
  • Metadata Retrieval: Reads design-time metadata, such as BotDefinition, GenAiPlanner*, GenAiPlugin*, GenAiFunction*, Flow, ApexClass, and GenAiPromptTemplate.
  • Use Case: Use this Skill to analyze the architecture of a specific Salesforce Agentforce bot, understand its components, and identify potential areas for improvement or optimization.

Quick Start

Analyze the architecture of 'MyAgent' in the 'my-org-alias' org using the agentforce-architecture-analyze skill.

Frequently Asked Questions about agentforce-architecture-analyze

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze the architecture of a Salesforce Agentforce bot?

You can analyze an Agentforce bot by retrieving its declared metadata, such as BotDefinition and GenAiPlanner, to generate an architecture document and a Mermaid invocation graph. This Skill automates that retrieval and processing.

What components are included in an Agentforce architecture analysis?

An Agentforce architecture analysis includes planners, topics, actions, flows, Apex classes, prompts, and NGA plugins. The Skill reads design-time metadata to map these internal structures and dependencies.

Do I need Salesforce CLI and Python to visualize Agentforce metadata?

Yes, you need Salesforce CLI and Python to retrieve and process the design-time metadata for visualization. These dependencies are required to read the metadata and generate the architecture graph.

Can I generate a Mermaid invocation graph for a Salesforce Agentforce bot?

Yes, you can generate a Mermaid invocation graph for an Agentforce bot. This Skill processes the bot's metadata to produce a visual graph alongside a text-based architecture document.

How does metadata retrieval work for Agentforce architecture analysis?

Metadata retrieval uses Salesforce CLI to read design-time objects like GenAiFunction, Flow, ApexClass, and GenAiPromptTemplate. Python then processes this data to map the architecture.

What is the best way to visualize Salesforce Agentforce dependencies?

The best way to visualize Agentforce dependencies is by generating a Mermaid invocation graph from the bot's declared metadata. This maps planners, topics, and actions to highlight structural relationships.