forcedotcom avatar

Agentforce Architecture Analyze

Pulls a complete design-time snapshot of an Agentforce agent: planner, topics, actions, flows, Apex classes, prompt templates, and NGA plugins. You get a human-readable architecture doc and a Mermaid invocation graph, all from declared metadata, not runtime audit rows. The pipeline runs inline with parallel Tooling SOQL queries to keep typical runs under 45 seconds, though large bots with many flows will scale linearly. Good for inventory audits, version diffs, or just understanding what an agent is actually wired to do before you touch it. Point it at an org alias and agent API name, and it writes everything under a versioned output directory you can diff or archive.

skills.sh installs
5.9K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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):

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Backend & APIs, Testing & QA, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Design & UI/UX
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1github avatarsecurity-reviewgithub/awesome-copilotAI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching5.8Kskills.sh installs
2affaan-m avatarai-regression-testingaffaan-m/eccRegression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns t5.7Kskills.sh installs
3affaan-m avatardocumentation-lookupaffaan-m/eccUse up-to-date library and framework docs via Context7 MCP instead of training data. Activates for setup questions, API references, code examples, or when the u5.7Kskills.sh installs
4wondelai avatarhigh-perf-browserwondelai/skillsOptimize web performance through network protocols, resource loading, and browser rendering internals. Use when the user mentions "my site is slow", "Core Web V5.5Kskills.sh installs
5affaan-m avatarkotlin-ktor-patternsaffaan-m/eccKtor server patterns including routing DSL, plugins, authentication, Koin DI, kotlinx.serialization, WebSockets, and testApplication testing.5.5Kskills.sh installs
6jeffallan avatarkotlin-specialistjeffallan/claude-skillsProvides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Kt5.4Kskills.sh installs