salesforce-code-quality

salesforce-code-quality is a plugin for Claude Code from forcedotcom/sf-skills. Its manifest loads nothing; the 4 skills, 1 agent it bundles cost 911 tokens per session together, scanned A, original, Apache-2.0.

A Salesforce code-quality plugin built around static analysis, which checks source code without running the application. It supports scans for security, performance, style, duplication, and common mistakes, plus custom rules and architecture reviews.

In plain words
What is it for?
Use it to configure and troubleshoot Code Analyzer, scan Apex and related code, create custom PMD, ESLint, or regular-expression rules, and review architecture with file-and-line evidence.
Why use it?
It finds code problems and design risks consistently across a Salesforce codebase instead of relying only on manual inspection. It can also help enforce quality gates before changes are accepted.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest.

Good fit Use it to configure and troubleshoot Code Analyzer, scan Apex and related code, create custom PMD, ESLint, or regular-expression rules, and review architecture with file-and-line evidence.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add forcedotcom/sf-skills
/plugin install salesforce-code-quality
About the project

forcedotcom/sf-skills is a collection of reusable instructions that help AI coding agents build and work with Salesforce applications and platform features. Developers use it for Agentforce agents, Lightning apps, Flow, Apex, SOQL, Lightning Web Components, and related Salesforce configuration. The catalogue entries are the repository’s skills, plugins, commands, MCP servers, and agents for AI tools that support skills.

forcedotcom/sf-skills · 1,097 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/forcedotcom/sf-skills

Made for: Claude Code.

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 salesforce-code-quality

README.md
[![agentmods](https://agentmods.dev/badge/plugins/forcedotcom/sf-skills/salesforce-code-quality/github.svg)](https://agentmods.dev/plugins/forcedotcom/sf-skills/salesforce-code-quality)
Your own site
<a href="https://agentmods.dev/plugins/forcedotcom/sf-skills/salesforce-code-quality"><img src="https://agentmods.dev/badge/plugins/forcedotcom/sf-skills/salesforce-code-quality/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 salesforce-code-quality

Your own site · 80×15
<a href="https://agentmods.dev/plugins/forcedotcom/sf-skills/salesforce-code-quality"><img src="https://agentmods.dev/badge/plugins/forcedotcom/sf-skills/salesforce-code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 4 skills, 1 agent cost 911 tokens a session between them.
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.
Security

Grade A, and why

salesforce-code-quality 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 24d 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.

plugins/builder/salesforce-code-quality/.claude-plugin/plugin.json · 12 lines

What it actually says

{
  "name": "salesforce-code-quality",
  "displayName": "Salesforce Code Quality",
  "version": "0.1.0",
  "description": "Analyze and govern Salesforce code quality with Salesforce Code Analyzer and the Well-Architected framework: set up and troubleshoot Code Analyzer, run security/performance/best-practice/style scans across engines (PMD, ESLint, CPD, RetireJS, Flow, SFGE, ApexGuru), author custom Regex/PMD/ESLint rules, and run a multi-pillar Well-Architected architecture review with file:line evidence. Use for static analysis, code scanning, quality gates, custom lint rules, or a holistic architecture/Well-Architected audit — includes a read-only architecture-review agent.",
  "author": { "name": "Salesforce" },
  "license": "Apache-2.0",
  "keywords": ["salesforce code analyzer", "static analysis", "code scan", "pmd", "eslint", "sfge", "apexguru", "retirejs", "cpd", "custom rule", "quality gate", "well-architected", "architecture review", "code quality"],
  "dependencies": [],
  "skills": "./skills/"
}
Contents

What it installs

The manifest is a name and a version. 4 skills, 1 agent travel with it, and installing the plugin installs all of them — 911 tokens a session between them. Each is measured on its own page, and each can be installed alone.

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. 24d ago First seen · 12 lines scan A e9a5d7667a64

Subscribe to this mod's changes

salesforce-code-quality is a plugin published in the GitHub repository forcedotcom/sf-skills (1,097 stars, last pushed today), licensed Apache-2.0. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-09-23.