salesforce-claude-code: Agent for Claude Code

.cursor/agents/sf-visualforce-reviewer.md

sf-visualforce-reviewer is an agent for Claude Code, Cursor from jiten-singh-shahi/salesforce-claude-code. It costs 51 tokens per session (3,876 once invoked), scanned A, original, MIT.

A security and architecture reviewer for Salesforce Visualforce, the older technology used to build Salesforce pages, and the Apex controllers behind those pages. It checks browser security, database access, page state, performance, and readiness to move to Lightning Web Components.

In plain words
What is it for?
Use it to review Visualforce pages and controllers for unsafe output, SOQL injection, missing permissions, ViewState size, inefficient queries, CSRF protection, and possible LWC migration. It is not for standalone LWC or unrelated Apex services.
Why use it?
It helps uncover data exposure, injection, cross-site scripting, excessive page state, and other problems that may be missed during a general code review.

Agent for Claude CodeCursor

Written for Claude Code and Cursor: shipped in a Claude Code plugin, but also installed under .cursor/. Also seen: model in frontmatter.

This is jiten-singh-shahi/salesforce-claude-code's own configuration. It tells Claude Code and Cursor how to work on salesforce-claude-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything salesforce-claude-code configures →

Part of the salesforce-claude-code plugin — 41 skills, 17 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to jiten-singh-shahi/salesforce-claude-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jiten-singh-shahi/salesforce-claude-code/main/.cursor/agents/sf-visualforce-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/jiten-singh-shahi/salesforce-claude-code

Made for: Claude Code, Cursor.

Or install salesforce-claude-code, the plugin that ships this one along with the rest of its 41 skills, 17 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sf-visualforce-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jiten-singh-shahi/salesforce-claude-code/sf-visualforce-reviewer/github.svg)](https://agentmods.dev/agents/jiten-singh-shahi/salesforce-claude-code/sf-visualforce-reviewer)
Your own site
<a href="https://agentmods.dev/agents/jiten-singh-shahi/salesforce-claude-code/sf-visualforce-reviewer"><img src="https://agentmods.dev/badge/agents/jiten-singh-shahi/salesforce-claude-code/sf-visualforce-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sf-visualforce-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/jiten-singh-shahi/salesforce-claude-code/sf-visualforce-reviewer"><img src="https://agentmods.dev/badge/agents/jiten-singh-shahi/salesforce-claude-code/sf-visualforce-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,876 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.03876
Opus 5 $0.00026 $0.01938
Sonnet 5 $0.00010 $0.00775
Haiku 4.5 $0.00005 $0.00388

Measured 9d ago against content hash 38069369f195, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sf-visualforce-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/agents/sf-visualforce-reviewer.md · 466 lines

How it starts

The opening of the file, as written. The whole thing — 466 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Visualforce security and architecture reviewer. You evaluate Visualforce pages and their backing controllers for security vulnerabilities, architectural anti-patterns, performance issues, and migration readiness to LWC. You are precise and only flag genuine issues — not stylistic preferences.

When to Use

Use this agent when you need to review Visualforce pages and their Apex controllers. This includes:

  • Auditing Visualforce pages for XSS vulnerabilities (escape="false", missing JSENCODE/HTMLENCODE/URLENCODE)
  • Reviewing controller classes for missing with sharing, CRUD/FLS violations, and SOQL injection
  • Identifying ViewState bloat (non-transient large collections, Blobs)
  • Assessing SOQL in getter methods and pagination anti-patterns
  • Evaluating CSRF protection (raw <form> tags vs <apex:form>)
  • Determining whether a Visualforce page should be migrated to LWC

Do NOT use this agent for reviewing standalone LWC components, Apex service classes unrelated to Visualforce, or deployment tasks.

Severity Matrix

Severity Definition Visualforce Examples
CRITICAL Active security vulnerability or data exposure escape="false" on user-controlled output, SOQL injection in controller, missing sharing keyword on user-facing controller
HIGH Security risk, broken CRUD/FLS, or major architectural flaw No CRUD/FLS enforcement in controller, raw <form> tag bypassing CSRF, ViewState exceeding 135KB (approaching 170KB limit)
MEDIUM Performance issue, anti-pattern, or missing best practice ViewState bloat from non-transient large collections, SOQL in getter methods, missing error handling in action methods
LOW Improvement opportunity, style, or migration consideration Missing lightningStylesheets="true", page could be migrated to LWC, docType not set to html-5.0

Security Review

XSS Prevention Audit

Scan every .page and .component file for XSS exposure:

Read the full file on GitHub · 466 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 466 lines · 51 tokens per session scan A 38069369f195

Subscribe to this mod's changes

sf-visualforce-reviewer is an agent published in the GitHub repository jiten-singh-shahi/salesforce-claude-code (16 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 3,876 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

atomic-reviewer

Diff / branch / file reviewer with two modes. Code-mode (default): reviews a diff against a spec, verifies TDD signals were actually run. Spec-mode: reviews a draft spec for alignment with its design doc, coverage, voice, and over-prescription. One line per finding, severity-tagged, no praise, no scope creep. Output…

damusix/atomic-claude · 127 tokens

architecture-analyst

Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.

travisjneuman/.claude · 36 tokens

deep-code-reviewer

Thorough 6-aspect code review covering correctness, security, performance, maintainability, testing, and documentation. Use for comprehensive PR reviews or code quality audits.

travisjneuman/.claude · 38 tokens

architect-reviewer

Use this agent for read-only architectural audits between waves. Reviews changed files for module depth, seams, dependency layering, ADR compliance per LANGUAGE.md vocabulary. Context: After Impl-Core wave shipped 8 files. user: "Audit the W2 architecture before proceeding." assistant: "I'll dispatch…

Kanevry/session-orchestrator · 117 tokens

changes-review

Changes review agent that verifies plan compliance, code quality, and goal achievement in a single pass. Returns structured JSON findings.

maxritter/pilot-shell · 27 tokens

security-auditor

Use when reviewing security-sensitive code paths or running OWASP / supply-chain checks. Dispatched by code-review-loop on sensitive paths (auth, payments, crypto, users, sessions, tokens). Returns findings with severity (Critical / High / Medium / Low) and OWASP category. Context: A diff touches the auth middleware.…

duthaho/claudekit · 164 tokens