nadolskimm-max/sf-skills/sf-code-review

Claude Code and agent skill by nadolskimm-max/sf-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Reviews Salesforce code (Apex, LWC, Flows) against best practices with a structured scoring rubric. Use when performing code reviews, generating review checklists, scoring code quality, or creating PR templates for Salesforce projects. Do NOT use for writing new code (use sf-apex, sf-lwc, sf-flow) or debugging (use sf-debug).

Install

npx vskill@latest install nadolskimm-max/sf-skills/sf-code-review

SKILL.md

The same SKILL.md was published earlier as nadolskimm-max/sf-skills/sf-code-review.

Salesforce Code Review

Core Responsibilities

  1. Review Apex classes and triggers against quality rubric
  2. Review LWC components for patterns and accessibility
  3. Review Flows for bulk safety and error handling
  4. Generate structured review feedback with severity levels
  5. Provide actionable fix suggestions

Review Process

Phase 1 — Security
CheckSeverityDetails
with sharing enforcedCriticalAll classes accessing data must use with sharing
FLS/CRUD checksCriticalstripInaccessible or WITH SECURITY_ENFORCED
No hardcoded credentialsCriticalCheck for API keys, passwords, tokens
No SOQL injectionCriticalBind variables or escapeSingleQuotes
No sensitive data in logsHighNo PII/PHI in System.debug
Phase 2 — Bulkification
CheckSeverityDetails
No SOQL in loopsCriticalQuery before loop, use Map lookups
No DML in loopsCriticalCollect in List, single DML after loop
No callouts in loopsCriticalUse Queueable chaining
Collection-based processingHighAll trigger logic handles 200+ records
Governor limit awarenessHighCheck Limits class usage
Phase 3 — Architecture
CheckSeverityDetails
One trigger per objectHighDelegate to handler classes
Separation of concernsMediumService, Selector, Domain layers
No business logic in triggersHighUse TAF handlers or service classes
Reusable methodsMediumNo duplicated logic across classes
Appropriate async patternMediumBatch for large data, Queueable for chaining
Phase 4 — Testing
CheckSeverityDetails
Test coverage >= 90%HighPer class, not just overall
Bulk test (200+ records)HighFor all trigger-related tests
Positive + negative casesMediumTest both success and failure paths
Meaningful assertionsMediumNot just System.assert(true)
No SeeAllData=trueHighCreate test data in @TestSetup
Mock calloutsMediumUse HttpCalloutMock interface
Phase 5 — Clean Code
CheckSeverityDetails
Consistent namingLowPascalCase classes, camelCase methods
No magic numbersLowUse constants or Custom Labels
Method length < 50 linesLowExtract sub-methods for clarity
No commented-out codeLowDelete unused code, use version control
Appropriate access modifiersLowprivate by default, public only when needed

Feedback Format

markdown
## Code Review: AccountService.cls
### Critical
-**L42**: SOQL inside for-loop. Move query to line 38, use Map<Id, Account> for lookups.
-**L67**: Missing FLS check before DML. Add `Security.stripInaccessible(AccessType.CREATABLE, records)`.
### High
-**L15**: Class uses `without sharing`. Document business justification or change to `with sharing`.
### Suggestions
-**L30**: Consider extracting account validation to separate `AccountValidator` class.
-**L55**: This method is 80 lines. Break into smaller methods for readability.
### Positives
-Good use of `@TestSetup` for shared test data.
-Proper bulk handling in trigger handler.

LWC Review Checklist

  • [ ] Uses lwc:if (not deprecated if:true)
  • [ ] key attribute on all for:each loops
  • [ ] Error handling for all wire/imperative calls
  • [ ] No direct DOM manipulation
  • [ ] SLDS classes for styling
  • [ ] aria-label on interactive elements
  • [ ] No @track on primitives

Flow Review Checklist

  • [ ] No DML/SOQL inside loop elements
  • [ ] Fault connectors on all DML/query elements
  • [ ] Entry criteria prevent unnecessary executions
  • [ ] Before-save used for same-record field updates
  • [ ] All elements have descriptions
  • [ ] Variables follow naming conventions

Cross-Skill References

  • For Apex patterns: see sf-apex
  • For LWC patterns: see sf-lwc
  • For Flow patterns: see sf-flow
  • For security review: see sf-security

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nadolskimm-max/sf-skills/sf-code-review/badge)](https://verified-skill.com/skills/nadolskimm-max/sf-skills/sf-code-review)

Something wrong with this skill or its page? Tell us.