platform-architecture-analyze
БесплатноБез исполняемых скриптовНе проверенUse when the developer asks to "review the architecture", "run a Well-Architected check", "audit this project", "is this project well-architected?", or wants…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Analyzing Architecture (Well-Architected Review)
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.
Capability resolution
- 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.
- 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.
- API — not applicable.
The rubric (read these first)
Before scoring, read the three reference files — they are the source of truth:
references/well-architected-rubric.md— the full pillar → sub-pillar → criteria tree, each criterion tagged[observable]or[manual].references/observable-checks.md— each[observable]criterion mapped to its detection (skill / MCP tool / grep pattern) and the anti-pattern it flags.references/manual-review-checklist.md— the[manual]criteria as a copy-pasteable governance checklist.
Workflow
Step 1 — Scope the project
# Package directories + API version
cat sfdx-project.json
Establish:
- Package dirs (from
packageDirectories[].path) — where the source lives. - Inventory — count Apex classes, triggers, LWC bundles, Aura, Flows, objects:
find <pkgdir> -name '*.cls' | wc -l find <pkgdir> -name '*.trigger' | wc -l find <pkgdir> -name '*.js-meta.xml' | wc -l # LWC bundles - Tooling signals — does the repo have tests (
*Test.cls,__tests__/), CI (.github/workflows/), linting (.eslintrc*,.prettierrc*), apackage.xmlvs source/package strategy? - Org connection —
sf org display --jsonsucceeds → org-dependent checks (OWD, permission sets) are in play; otherwise mark them manual.
Record the scope line for the report header.
Step 2 — Run the observable checks (delegate; don't re-scan)
Work through references/observable-checks.md. For the heavy lifting, delegate:
- Apex security + performance →
dx-code-analyzer-run. It runssf code-analyzerand classifies findings by severity. Map its rules onto the rubric:ApexSOQLInjection,ApexCRUDViolation,ApexInsecureEndpoint,ApexBadCrypto→ SecureApexSharingViolations→ Secure (sharing) / Composable (separation)OperationWithLimitsInLoop,OperationWithHighCostInLoop→ Reliable / AutomatedAvoidDebugStatements→ Automated
- Inline SOQL parse + selectivity, compile-level diagnostics →
platform-lsp-integrate(apex_diagnostics,lwc_diagnostics,check_soql_selectivity) whenlsp_healthis green → Reliable / Automated. - OWD / sharing model / permission sets →
platform-metadata-retrieve+sf orginspection, only if an org is connected → Secure.
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.
Step 3 — Score each observable sub-pillar
Assign ✅ / ⚠️ / ❌ per sub-pillar using the thresholds in references/observable-checks.md:
- ✅ no anti-patterns found in the observable checks for that sub-pillar.
- ⚠️ low/moderate findings, or only some criteria observable.
Установить platform-architecture-analyze в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGlobGrepВложенные файлы
FAQ
Что делает скилл platform-architecture-analyze?
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).
Как установить скилл platform-architecture-analyze?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл platform-architecture-analyze запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic