CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/pmd-apex-rules

Runs PMD's built-in Apex security ruleset (`category/apex/security.xml`) against Salesforce Apex source to detect injection, privilege-escalation, cryptographic, and XSS vulnerabilities; configures custom rulesets for regulated-industry Apex codebases; emits SARIF for GitHub Code Scanning upload; integrates `pmd check` as a PR-blocking CI gate. Use when the codebase contains Salesforce Apex and the team needs SAST coverage for ApexSOQLInjection, ApexCRUDViolation, ApexSharingViolations, or the full 10-rule security category.

79

Quality

99%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

Quality

Content

100%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The content is concise, fully actionable, and clearly sequenced with validation checkpoints, and it correctly offloads the 10-rule catalog to a single real reference file. It scores at the top of every dimension with no verbosity, missing steps, or over-nested references.

DimensionReasoningScore

Conciseness

The body is lean and assumes Claude's competence — it avoids defining what Apex, SOQL, or SAST are, jumps straight to executable commands and tables, and every section earns its tokens; it matches the score-3 'lean and efficient' anchor rather than the padded score-2 example.

3 / 3

Actionability

Provides fully executable, copy-paste-ready commands and code — 'pmd check -d . -R category/apex/security.xml -f sarif -r pmd-apex.sarif', a complete custom-ruleset XML, a GitHub Actions YAML job, and an Apex suppression example — matching the score-3 anchor rather than the pseudocode score-2 example.

3 / 3

Workflow Clarity

Seven sequentially numbered steps with explicit validation checkpoints — 'Verify' after install, exit-code-4 gate semantics with 'continue-on-error: false', suppression-with-justification feedback loop, and an Anti-patterns table of error recovery — matching the score-3 anchor with feedback loops for the batch/destructive CI context.

3 / 3

Progressive Disclosure

The body is a clear overview that pushes the full 10-rule detail to a single one-level-deep, clearly signaled reference ([references/apex-security-rules.md](references/apex-security-rules.md), a real file confirmed in ./references/), matching the score-3 anchor of well-signaled one-level references rather than inline bloat (score 2) or nested chains (score 1).

3 / 3

Total

12

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is specific, trigger-rich, and complete, naming concrete actions, natural user keywords, an explicit Use-when clause, and a distinct niche relative to sibling SAST skills. It fully meets all four rubric anchors at the top of the scale.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'Runs PMD's built-in Apex security ruleset', 'configures custom rulesets', 'emits SARIF for GitHub Code Scanning upload', 'integrates pmd check as a PR-blocking CI gate' — matching the score-3 anchor of multiple specific actions rather than the single-action score-2 example.

3 / 3

Completeness

Explicitly answers both what (runs/configures/emits/integrates the Apex security ruleset) and when ('Use when the codebase contains Salesforce Apex and the team needs SAST coverage'), which matches the score-3 anchor; a missing Use-when clause would have capped it at 2, but the trigger is present.

3 / 3

Trigger Term Quality

Covers natural terms users would say — 'Salesforce Apex', 'SOQL injection', 'ApexSOQLInjection, ApexCRUDViolation, ApexSharingViolations', 'SAST coverage' — matching the score-3 anchor of good coverage of natural terms; it is not merely technical jargon (score 1) nor partial (score 2).

3 / 3

Distinctiveness Conflict Risk

Has a clear niche (PMD Apex security) with distinct triggers tied to Salesforce Apex and named Apex security rules, and explicitly distinguishes itself from sibling semgrep/sonarqube skills, so it is unlikely to conflict — matching the score-3 anchor rather than the overlapping score-2 example.

3 / 3

Total

12

/

12

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Reviewed

Table of Contents