platform-architecture-analyze
Skill by forcedotcom
Grades a Salesforce DX project against the Salesforce Well-Architected framework. It produces a pillar-scored report with file and line evidence and a manual governance checklist, for developers who want a holistic health review.
Install platform-architecture-analyze
Built from the published package, never by AI.
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/plugins/builder/salesforce-code-quality/skills/platform-architecture-analyze ~/.claude/skills/platform-architecture-analyzeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install platform-architecture-analyze in Claude Code
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sf-skills/plugins/builder/salesforce-code-quality/skills/platform-architecture-analyze ~/.gemini/antigravity-cli/skills/platform-architecture-analyzeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install platform-architecture-analyze in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Platform Architecture Analyze is a skill that grades a Salesforce DX project against the Salesforce Well-Architected framework. It scores observable criteria such as sharing and field-level security, bulkification, SOQL selectivity and packageability, citing file and line evidence. The output is a report with Trusted, Easy and Adaptable pillar verdicts.
It works as an orchestrator. It delegates Apex analysis to dx-code-analyzer-run, uses platform-lsp-integrate for SOQL and compile diagnostics, and uses platform-metadata-retrieve for org checks when an org is connected. Criteria that cannot be seen from a local repo go into a manual governance checklist. The skill is read-only and is meant for developers who want a project-wide health report.
Written from the project's SKILL.md and checked against it.
What it can do
- Project scopingReads sfdx-project.json and counts Apex classes, triggers and LWC bundles.
- Observable checksRuns security, bulkification and selectivity checks with file and line evidence.
- dx-code-analyzer-runRuns Apex security and performance analysis and maps findings to the rubric.
- platform-lsp-integrateProvides compile diagnostics and SOQL selectivity checks when LSP is healthy.
- platform-metadata-retrieveSupports org checks such as OWD and permission sets when an org is connected.
- Pillar verdictsScores Trusted, Easy and Adaptable pillars, rolling sub-pillars up to the worst verdict.
- Manual governance checklistLists criteria that cannot be seen locally as unchecked items for team review.
What you need
- Salesforce CLI (sf) version 2.0.0 or later
- A Salesforce DX project with sfdx-project.json
- Code Analyzer v5 for Apex scans
- A connected Salesforce org (optional, for org-dependent checks)
Try asking
- Is this Salesforce project well-architected?
- Run a Well-Architected review before we package this for release
- Review my project's security and governor-limit risk
Good to know
- Read-only. It never edits, deploys or deletes.
- Criteria not visible from a local repo are not auto-graded.
- Works on SFDX projects only. It stops if there is no sfdx-project.json.
- For large repos, scope the Apex scan to package directories. Cross-file findings may be partial.
Security check
B- Allowed to use Bash without limitsIn
SKILL.md
Checked automatically: plugins/builder/salesforce-code-quality/skills/platform-architecture-analyze/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashReadGlobGrep
Alternatives to platform-architecture-analyze
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
platform-architecture-analyze: common questions
Does it change my code?
No. The skill is read-only. It grades the project and recommends fixes, but it never edits, deploys or deletes anything.
Does it need a connected org?
No. Org-dependent checks such as OWD and permission sets run only if an org is connected. Otherwise those criteria are marked for manual review.
Is this the same as a single Apex scan?
No. The skill says not to trigger it for single-tool Apex scans. Those should use dx-code-analyzer-run, which this skill calls as one of its checks.
How do I install platform-architecture-analyze?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is platform-architecture-analyze free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is platform-architecture-analyze safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.
What are alternatives to platform-architecture-analyze?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
