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-reviewSKILL.md
The same SKILL.md was published earlier as nadolskimm-max/sf-skills/sf-code-review.
Salesforce Code Review
Core Responsibilities
- Review Apex classes and triggers against quality rubric
- Review LWC components for patterns and accessibility
- Review Flows for bulk safety and error handling
- Generate structured review feedback with severity levels
- Provide actionable fix suggestions
Review Process
Phase 1 — Security
| Check | Severity | Details | |
|---|---|---|---|
with sharing enforced | Critical | All classes accessing data must use with sharing | |
| FLS/CRUD checks | Critical | stripInaccessible or WITH SECURITY_ENFORCED | |
| No hardcoded credentials | Critical | Check for API keys, passwords, tokens | |
| No SOQL injection | Critical | Bind variables or escapeSingleQuotes | |
| No sensitive data in logs | High | No PII/PHI in System.debug |
Phase 2 — Bulkification
| Check | Severity | Details | |
|---|---|---|---|
| No SOQL in loops | Critical | Query before loop, use Map lookups | |
| No DML in loops | Critical | Collect in List, single DML after loop | |
| No callouts in loops | Critical | Use Queueable chaining | |
| Collection-based processing | High | All trigger logic handles 200+ records | |
| Governor limit awareness | High | Check Limits class usage |
Phase 3 — Architecture
| Check | Severity | Details | |
|---|---|---|---|
| One trigger per object | High | Delegate to handler classes | |
| Separation of concerns | Medium | Service, Selector, Domain layers | |
| No business logic in triggers | High | Use TAF handlers or service classes | |
| Reusable methods | Medium | No duplicated logic across classes | |
| Appropriate async pattern | Medium | Batch for large data, Queueable for chaining |
Phase 4 — Testing
| Check | Severity | Details | |
|---|---|---|---|
| Test coverage >= 90% | High | Per class, not just overall | |
| Bulk test (200+ records) | High | For all trigger-related tests | |
| Positive + negative cases | Medium | Test both success and failure paths | |
| Meaningful assertions | Medium | Not just System.assert(true) | |
No SeeAllData=true | High | Create test data in @TestSetup | |
| Mock callouts | Medium | Use HttpCalloutMock interface |
Phase 5 — Clean Code
| Check | Severity | Details | |
|---|---|---|---|
| Consistent naming | Low | PascalCase classes, camelCase methods | |
| No magic numbers | Low | Use constants or Custom Labels | |
| Method length < 50 lines | Low | Extract sub-methods for clarity | |
| No commented-out code | Low | Delete unused code, use version control | |
| Appropriate access modifiers | Low | private by default, public only when needed |
Feedback Format
LWC Review Checklist
- [ ] Uses
lwc:if(not deprecatedif:true) - [ ]
keyattribute on allfor:eachloops - [ ] Error handling for all wire/imperative calls
- [ ] No direct DOM manipulation
- [ ] SLDS classes for styling
- [ ]
aria-labelon interactive elements - [ ] No
@trackon 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
- SKILL.md in the repositoryCheckingskills/sf-code-review/SKILL.md
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
[](https://verified-skill.com/skills/nadolskimm-max/sf-skills/sf-code-review)