sf-review
/sf-review
Przegląda kod i dokumentację Salesforce pod kątem limitów, bezpieczeństwa CRUD i FLS, udostępniania, LWC, Flow i integracji.
- Autor
- divingsbysangam ↗
- Repozytorium
- salesforce-compound-engineering-plugin ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 21.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 37
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 21.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Przegląda kod i dokumentację Salesforce pod kątem limitów, bezpieczeństwa CRUD i FLS, udostępniania, LWC, Flow i integracji.
Wyzwalacze z opisu
Argumenty
/sf-review [mode:doc|polish|slds2|browser] [path, PR number, or depth fast|thorough|comprehensive]
Oryginalny opis (EN)
Review Salesforce code or docs: governor limits, bulkification, CRUD/FLS, sharing, LWC, Flow, integrations; UI polish, SLDS 2, browser tests. Use for 'review this', 'security review', 'review the plan'.
Jak działa
- Modes
- Required reads
- Copy-paste-to-agent
- Goal
- Non-Negotiable Gates (Principle 1)
Podgląd SKILL.md
--- name: sf-review tier: discipline-gate description: "Review Salesforce code or docs: governor limits, bulkification, CRUD/FLS, sharing, LWC, Flow, integrations; UI polish, SLDS 2, browser tests. Use for 'review this', 'security review', 'review the plan'." argument-hint: "[mode:doc|polish|slds2|browser] [path, PR number, or depth fast|thorough|comprehensive]" --- # /sf-review ## Modes First argument `mode:<name>` selects a mode; everything after it passes to that mode's guide. Load only the guide for the chosen mode. | Mode | Use for | Guide | |---|---|---| | `(none)` | Code review of a diff, path, or PR | this file | | `doc` | Review a plan, brainstorm, or requirements doc | `references/doc/guide.md` | | `polish` | UX, accessibility, and copy polish for UI surfaces | `references/polish/guide.md` | | `slds2` | Migrate LWC/Aura from SLDS 1 to SLDS 2 | `references/slds2/guide.md` | | `browser` | Browser-test UI pages touched by the branch | `references/browser/guide.md` | > **Principles enforced:** 1 (preserve the quality ceiling), 3 (jagged intelligence), 5 (taste and oversight). See `PRINCIPLES.md`. ## Required reads Procedure lives in sibling files, not only in this orchestrator: - **Review Depth Levels** — read `references/review-depth-levels.md` before acting on this section. - **Step 1: Identify and Classify Files** — read `references/step-1-identify-and-classify-files.md` before acting on this section. - **Step 2: Dispatch Review Lenses in Parallel** — read `references/step-2-dispatch-review-personas-in-parallel.md` before acting on this section. - **Step 3: Parallel Research (comprehensive depth only)** — read `references/step-3-parallel-research-comprehensive-depth-only.md` before acting on this section. - **Step 4: Consolidate Findings** — read `references/step-4-consolidate-findings.md` before acting on this section. - **Output Format** — read `references/output-format.md` before acting on this section. ## Copy-paste-to-agent ``` Review Salesforce code by dispatching one subagent per review lens (Apex / Security / Flow / LWC / Integration / Metadata / Tests / Architecture). Output findings categorized as Critical / High / Medium / Low. Critical and High findings are non-negotiable abort triggers — see "Non-Negotiable Gates" below. If the target isn't specified, review the current git diff. ``` You are reviewing Salesforce code using parallel agent dispatch for speed and thoroughness. ## Goal Review the code at: `$ARGUMENTS.target` If no target specified, review uncommitted changes (`git diff`). *** ## Non-Negotiable Gates (Principle 1) The following findings are **abort triggers**, not warnings. They block the review from passing regardless of how minor the surrounding diff is. They exist because vibe coding does not exempt the diff from production-grade Salesforce constraints. | Gate | What it catches | Owning lens | | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Security regression** | CRUD/FLS bypass, SOQL injection, sharing-model violation, hardcoded credential, unsafe `without sharing` | `security` lens (+ `integration` for callout credentials) | | **Governor regression** | SOQL/DML inside loops, missing bulkification, non-selective query on >100k-row object | `apex` and `flow` lenses | | **Test coverage regression** | Production class without test class, test class with no `assertEquals`/`assertTrue`, bulk path untested at 200+ records | `tests` lens | | **Trigger context regression** | Recursion guard missing, mixed-DML violation, handler bypassing the project's trigger framework | `apex` lens | | **Sharing regression** | `without sharing` introduced without justification, sharing-recalculation skipped on owner change | `security` lens | If any gate fires, the review output must include the gate name in the Critical section, and `/sf-lfg` must abort the pipeline. Do not route gate findings to "warnings." **Clearing a gate requires evidence, not a self-report.** A gate is only cleared when the review output cites the proof — the pasted `sf apex run test --result-format human` coverage output, the specific `file:line` and the check that passed, or the `Limits.get*()` calculation — not "looks fine" or "no issues found." A gate marked clear without its underlying evidence is treated as unverified, and the finding stays open. ### Rationalizations (Excuse → Reality) _Pressure-test-pending hypotheses (see `docs/pressure-tests/`): guidance to pre-empt the excuses used to wave a gate through under deadline, not yet independently validated._ | Excuse | Reality | | --- | --- | | "This trigger only ever gets one record from the UI." | Data Loader, the REST/Bulk API, and Flow-triggered DML all pass collections on day one — and the org cannot stop them. Bulk safety is not optional. | | "Governor limits don't matter in a scratch org, it's just for testing." | Scratch-org and sandbox limits mirror production Enterprise Edition. There is no test-only exemption. | | "We'll fix sharing after it ships — it's admin-only for now." | Profile/permission-set assignment is a config change an admin makes without redeploying code. `without sharing` does not auto-correct when the audience widens. | | "Coverage is at 75%, we're good." | 75% is a deploy gate, not a behavior check. Coverage counts lines executed, not assertions made — a test with no asserts hits coverage and proves nothing. | | "It's just a config/Flow change, there's no code to review." | Flow, validation-rule, and formula changes still change behavior and can bypass CRUD/FLS or sharing. They get the same gate scrutiny as Apex. | ***
Pliki w paczce (37)
- SKILL.md 7 KB
- references/output-format.md 1 KB
- references/review-depth-levels.md 1 KB
- references/step-1-identify-and-classify-files.md 1 KB
- references/step-2-dispatch-review-personas-in-parallel.md 2 KB
- references/step-3-parallel-research-comprehensive-depth-only.md 1 KB
- references/step-4-consolidate-findings.md 1 KB
- references/subagent-confidence-rubric.md 2 KB
- references/browser/guide.md 1 KB
- references/browser/references/agent-browser-driver.md 2 KB
- references/browser/references/browser-driver-policy.md 1 KB
- references/browser/references/browser-test-results.md 1 KB
- references/browser/references/driver-reference.md 1 KB
- references/browser/references/modes.md 1 KB
- references/browser/references/pipeline-orchestration.md 4 KB
- references/browser/references/quick-usage-examples.md 1 KB
- references/browser/references/workflow.md 8 KB
- references/doc/guide.md 2 KB
- references/lenses/apex.md 3 KB
- references/lenses/architecture.md 3 KB
- references/lenses/contract.md 1 KB
- references/lenses/doc.md 3 KB
- references/lenses/flow.md 3 KB
- references/lenses/integration.md 3 KB
- references/lenses/lwc.md 3 KB
- references/lenses/metadata.md 3 KB
- references/lenses/security.md 3 KB
- references/lenses/tests.md 3 KB
- references/personas/sf-deployment-verification-agent.md 4 KB
- references/polish/guide.md 6 KB
- references/slds2/guide.md 4 KB
- references/slds2/references/hand-off.md 1 KB
- references/slds2/references/inspiration.md 1 KB
- references/slds2/references/output-report.md 1 KB
- references/slds2/references/slds-2-hook-categories-the-namespace.md 4 KB
- references/slds2/references/when-to-use.md 1 KB
- references/slds2/references/workflow.md 12 KB
Wersje
W bazie nie ma innych skilli o nazwie sf-review.
Migawka bazy z 13.11.2026 · wersja paczki 75b3d04a6a8f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90sf-know
Dostarcza wiedzę o platformie Salesforce: limity governora, wzorce Apex, LWC i Flow, bezpieczeństwo oraz integracje. - 100salesforce-security
Przegląda bezpieczeństwo organizacji Salesforce: model udostępniania, CRUD i FLS, bezpieczeństwo wywołań zewnętrznych, sekrety i Shield Encryption. - 100salesforce-apex-lwc-code-review-skill
Przegląda kod Apex, triggery i komponenty LWC pod kątem podatności i ryzyka limitów zarządcy, w tym SOQL i DML w pętlach. Przydaje się przed wdrożeniem zmian w Salesforce. - 100platform-architecture-analyze
Ocenia architekturę projektu Salesforce pod kątem uprawnień, limitów i pakowania, z dowodami z plików i linii kodu. - 90lwc-component-scaffold
Tworzy szkielet komponentu Lightning Web Component z plikami HTML, JS i meta oraz kontrolerem Apex zgodnym z FLS. - 100salesforce-apex-quality
Pilnuje jakości kodu Apex: bezpieczeństwo operacji masowych, modele współdzielenia, CRUD i FLS, ochrona przed SOQL injection oraz testy Positive, Negative i Bulk.