agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use when the developer asks to \"review the architecture\", \"run a Well-Architected check\", \"audit this project\", \"is this project well-architected?\", or wants to assess security/governor-limit/risk as a holistic code-and-metadata health report. Grades observable criteria
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill platform-architecture-analyze --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill platform-architecture-analyze -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill platform-architecture-analyze -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill platform-architecture-analyze -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill platform-architecture-analyze -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill platform-architecture-analyze -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill platform-architecture-analyze -a windsurf -y
name: platform-architecture-analyze
description: "Use when the developer asks to \"review the architecture\", \"run a Well-Architected check\", \"audit this project\", \"is this project well-architected?\", or wants to assess security/governor-limit/risk as a holistic code-and-metadata health report. Grades observable criteria (sharing/FLS, bulkification, SOQL selectivity, packageability) with file:line evidence; emits a governance checklist for what it can't see. Read-only, never edits. DO NOT TRIGGER for single-tool Apex scans (dx-code-analyzer-run)."
allowed-tools:
- Bash
- Read
- Glob
- Grep
metadata:
cliTools:
- tool: ["sf"]
semver: ">=2.0.0"
relatedSkills:
- "dx-code-analyzer-run"
- "platform-lsp-integrate"
- "platform-metadata-retrieve"
- "platform-apex-generate"Grade a Salesforce DX project against the **Salesforce Well-Architected** framework and produce an honest, evidence-backed report: a pillar-scored table for what's observable in code and metadata, plus a human checklist for the governance/process concerns a local repo can't reveal.
This skill is an **orchestrator**. It does not re-implement static analysis — it drives the analysis skills the plugin already ships and maps their output onto the Well-Architected pillars. It is **read-only**: it grades and recommends; it never edits, deploys, or deletes.
It also backs the `architecture-review` agent, which runs this exact workflow as a dedicated read-only reviewer. Invoke the agent for an end-to-end review; use this skill directly when you want the workflow inline in the current session.
1. **Skill-orchestrated review** (this skill) — runs the observable checks by delegating to existing skills/MCP tools, scores each sub-pillar, and emits the manual checklist. 2. **Direct CLI / grep** — used only for the lightweight structural signals the rubric names (sharing keywords, legacy-tech file types, deploy strategy). Fine standalone, but skips the pillar scoring and the governance checklist this skill provides. 3. **API** — not applicable.
Before scoring, read the three reference files — they are the source of truth:
# Package directories + API version cat sfdx-project.json
Establish:
find <pkgdir> -name '*.cls' | wc -l find <pkgdir> -name '*.trigger' | wc -l find <pkgdir> -name '*.js-meta.xml' | wc -l # LWC bundles
Record the scope line for the report header.
Work through `references/observable-checks.md`. For the heavy lifting, delegate:
For the lightweight structural signals, grep directly (patterns in `references/observable-checks.md`), e.g.:
# Secure — classes missing a sharing keyword grep -rLE 'with(out)? sharing|inherited sharing' --include='*.cls' <pkgdir> # Intentional — legacy tech still present find <pkgdir> -name '*.workflow-meta.xml' -o -name '*.flowDefinition-meta.xml' grep -rl '@future' --include='*.cls' <pkgdir> # Composable — deploy strategy ls manifest/package.xml 2>/dev/null # package.xml-driven (anti-pattern past PoC) grep -l '"path"' sfdx-project.json # source/package strategy # Composable — runtime config in custom settings vs CMT find <pkgdir> -path '*objects*' -name '*.object-meta.xml' | xargs grep -l 'CustomSetting' 2>/dev/null
Collect every finding with `file:line` evidence. A check with no evidence is **not** a pass and **not** a fail — it's "not observable" and moves to the manual checklist.
Assign ✅ / ⚠️ / ❌ per sub-pillar using the thresholds in `references/observable-checks.md`:
Then roll the sub-pillar verdicts up to a pillar verdict (worst-of, with a note).
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.