sf-apex

sf-apex is a skill for Claude Code from kugamon/salesforce-core-skills. It costs 119 tokens per session (10,605 once invoked), scanned A, original, no licence file.

A Salesforce tool for writing and reviewing Apex, the programming language used to add server-side behaviour to Salesforce.

In plain words
What is it for?
Creating or reviewing Apex classes, triggers, tests, and batch jobs, with checks for bulk processing, security, and maintainable design.
Why use it?
It helps catch issues such as code that handles records inefficiently, weak security, or poor structure.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the salesforce-core plugin — 16 skills, 2 agents, 1 hook shipped together

Good fit Creating or reviewing Apex classes, triggers, tests, and batch jobs, with checks for bulk processing, security, and maintainable design.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kugamon/salesforce-core-skills/sf-apex
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.

Any agent
npx skills add kugamon/salesforce-core-skills --skill sf-apex
Clone the repo
git clone --depth 1 https://github.com/kugamon/salesforce-core-skills

Made for: Claude Code.

Or install salesforce-core, the plugin that ships this one along with the rest of its 16 skills, 2 agents, 1 hook.

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-apex

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kugamon/salesforce-core-skills/sf-apex"><img src="https://agentmods.dev/badge/skills/kugamon/salesforce-core-skills/sf-apex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00119 $0.10605
Opus 5 $0.00060 $0.05303
Sonnet 5 $0.00024 $0.02121
Haiku 4.5 $0.00012 $0.01060

Measured 10d ago against content hash 39105a1f4bbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

sf-apex scanned grade A with 1 finding 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 10d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/llm_pattern_validator.py, scripts/mcp_validator_cli.py, scripts/mcp_validator.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

find ~/.claude/plugins -name "validate_apex_cli.py" 2>/dev/null | grep sf-apex | head -1

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/salesforce-core/skills/sf-apex/SKILL.md · 1,261 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

40 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 1,261 lines · 119 tokens per session scan A 39105a1f4bbf

Subscribe to this mod's changes

sf-apex is a skill published in the GitHub repository kugamon/salesforce-core-skills (0 stars, last pushed 2d ago), with no licence file. It adds 119 tokens to every session and 10,605 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ship-it-or-fix-it

Oracle-frozen Builder and independent-Judge convergence cycle. Load ONLY when the operator explicitly sets Governance Dial G2 for the task, or explicitly names this skill or an active work unit already running it. Never auto-activate on task class, such as security, auth, or payments. If a task seems to warrant G2 and…

Ezra144israel/governed-agent-skills · 98 tokens

test-verification

Requires behavioral, failure-path, and durable-seam evidence for tests and review. Use when writing tests, reviewing test coverage, assessing behavioral test quality, or accepting high-risk behavior on test evidence.

Ezra144israel/governed-agent-skills · 43 tokens

tactical-ddd

Design, refactor, analyze, and review code by applying the principles and patterns of tactical domain-driven design. Triggers on: domain modeling, aggregate design, 'entity', 'value object', 'repository', 'bounded context', 'domain event', 'domain service', code touching domain/ directories, rich domain model…

NoesisVision/nasde-toolkit · 70 tokens

review-workflow-management

This skill reviews the HTTP management endpoints (start, status, terminate, pause, resume, raise-event, purge) that an app exposes for Dapr Workflows. Use this skill when the user asks to "review workflow management", "audit workflow management API", "check workflow HTTP endpoints", or similar.

diagrid-labs/dapr-skills · 66 tokens

review-workflow-activity

This skill reviews Dapr Workflow activity implementations for idempotency, retries, error boundaries, and convention violations. Use this skill when the user asks to "review workflow activities", "check activity idempotency", "audit Dapr activities", or similar.

diagrid-labs/dapr-skills · 57 tokens

api-design-review

Review an API contract (REST or GraphQL) before or while it is implemented, checking resource naming, HTTP semantics, status codes, error shape, pagination, versioning, idempotency, and backward compatibility, and producing concrete revisions rather than abstract advice. Use when designing new endpoints, changing an…

KhaledSaeed18/dotclaude · 80 tokens