salesforce-core-skills

mcp
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Fifteen behaviorally-tested Salesforce skills for AI agents — Apex, Flow, SOQL, LWC, Metadata, Permissions, Diagrams, Org Audit, Tests, Security, Debug, Org Diff, Integrations, Campaigns, Leads. MCP-first, works with any Salesforce MCP server. Claude plugin marketplace + npx install. Try it with bundled sample data.

README.md

salesforce-core-skills

Validate
License: MIT

A Claude Desktop / Cowork plugin marketplace that ships a single plugin (salesforce-core) with sixteen general-purpose Salesforce admin & developer skills — Apex, Flow, SOQL/Data, LWC, Metadata, Permissions, Architecture Diagrams, Org Audit, Test Generation, Security Review, Debug Log Analysis, Org Comparison, Integrations, Record Stewardship, Campaign Analytics, and Lead Enrichment.

This repo does not install an MCP server. It assumes you already have a Salesforce MCP server connected to your org. The skills are tool-agnostic — they reference MCP capabilities generically rather than one vendor's tool names, so they work with any Salesforce MCP server.

Every skill is behaviorally tested against a live Salesforce org — 13 independent agent runs per iteration covering reads, writes (with verified cleanup), and analysis. Iteration 2 (v1.4.x skills): 33/39 expectations passed, 0 failed, 12 of 13 runs improved over iteration 1, and all 8 fixes shipped after iteration 1 verified working.

Why this plugin

Out of the box, Claude can call your Salesforce MCP server's tools — but it doesn't know:

  • How to write production-grade Apex (bulkification, governor limits, SOLID, trigger frameworks) or score it consistently
  • How to build Flows that pass review (naming, fault paths, entry conditions, subflow patterns)
  • How to optimize SOQL (selectivity, indexes) or run safe bulk DML with cleanup/rollback plans
  • How to audit an org end-to-end and produce Word / Excel / HTML reports
  • How to write tests that catch regressions (assertion quality, 200-record bulk proofs, runAs enforcement tests) and run them via the Tooling API
  • What the AppExchange security review checks (CRUD/FLS, injection, sharing, secrets) and how to get submission-ready
  • How to read a debug log — trace flags, limit meters, SOQL-in-loop signatures, row-lock diagnosis
  • How to enrich CRM data safely — active-picklist verification, source attribution, anti-fabrication rules
  • Which execution mode to use — local SFDX metadata, Salesforce CLI, MCP + code execution, or MCP-only

This plugin encodes those rules as Cowork skills with structured scoring rubrics (150-point Apex, 110-point Flow, 165-point LWC SLDS 2, 120-point tests, 100-point security), reference guides, metadata schemas, and validation scripts. After you install it, Claude routes Salesforce tasks to the right skill automatically.

What problems do these skills solve?

Pain point Skill What it does
An org audit takes a consultant weeks sf-audit 18 scored documents (Word/Excel/HTML) from a single scan
Apex review quality depends on who reviews sf-apex Consistent 150-point rubric with line-level evidence
Test classes are coverage padding sf-test 120-point rubric that caps assertion-free tests at 60/120
AppExchange security review failures sf-security Blockers-vs-advisories checklist + 100-point scored audit
Debug logs are unreadable walls of text sf-debug Diagnosis / Evidence / Fix / Prevention from trace to root cause
"Who has access to X?" takes a day to answer sf-permissions Permission set analysis and access auditing
Campaign ROI is guesswork sf-campaigns Funnels, ROI math shown, invest/pause recommendations
The CRM is full of blank or wrong lead data sf-leads Cited, confidence-rated enrichment with approval gates
Nobody knows how bad the data on an object is sf-records Data-health profile, dedupe/merge plans, proposed-then-verified fixes

When to use this collection (and when not to)

The Salesforce agent-skills ecosystem has excellent options. Honest guidance:

Use salesforce-core-skills when…

  • You're an admin, RevOps or sales ops lead, consultant, or ISV — not only a developer
  • You're operating against a live org through an MCP connector — auditing, scoring, debugging, comparing, enriching. That's this collection's home turf: every skill is MCP-first and behaviorally tested against a live org (evals/).
  • You need scored, evidence-cited reviews (150-pt Apex, 110-pt Flow, 165-pt LWC, 120-pt tests, 100-pt security) or client-ready audit documents.
  • You work in managed-package / subscriber orgs — these skills handle hidden code honestly instead of pretending to review it.
  • You're an ISV preparing for AppExchange security review (sf-security's readiness checklist is written from the submitting side).
  • You want org-to-org drift detection (sf-orgdiff) — unique to this collection.
  • You run Claude Desktop / Cowork and want scheduled monitoring or live dashboards (monitoring recipe), plus guardrail hooks that stop dangerous writes.

Use Salesforce's official sf-skills library when…

  • You're a developer writing new Apex, LWC, or Agentforce code
  • You're doing greenfield development inside an SFDX project — the official library's 175 micro-task skills cover the whole platform surface (Agentforce, Data 360, OmniStudio, Commerce, Mobile, LWR) with CLI-first workflows and Salesforce-maintained API currency.
  • You need coverage for products this collection deliberately doesn't chase.

Both together. They compose: official skills to build in a scratch org, this collection to audit, test, secure, and monitor what's running in real orgs. Nothing conflicts — different tool assumptions (CLI vs MCP), different jobs.

Prerequisites

You need a Salesforce MCP server connected to Claude Desktop, wired to your target org. Options include:

  1. salesforce-mcp-auto-auth-chrome — local MCP server with 14 Salesforce tools that auto-refreshes its session from your Chrome login (no tokens to paste).
  2. Any other Salesforce MCP server — the skills reason about capabilities (SOQL query, DML, metadata create, Tooling API), not specific tool names.

The 16 skills

Skill What it does Scoring
sf-apex Create, update and review Apex classes and triggers 150-point
sf-flow Create, update and review Flows 110-point
sf-data SOQL build/optimize/execute, DML, test data factories —
sf-lwc Lightning Web Components development 165-point SLDS 2
sf-metadata Metadata creation, org queries, permission set generation —
sf-permissions Permission Set analysis, "Who has X?" auditing —
sf-diagram Architecture diagrams (ERDs, OAuth flows, integrations) in Mermaid —
sf-audit Comprehensive org audit with Word, Excel and HTML reports —
sf-test Generate, review, and run Apex test classes 120-point
sf-security Security audit + AppExchange review readiness 100-point
sf-debug Debug log capture and analysis via the Tooling API —
sf-orgdiff Org-to-org comparison: drift, release verification, baseline diff —
sf-integration Named/External Credentials, OAuth selection, Platform Events, CDC —
sf-campaigns Campaign performance, funnels, ROI, and lead-source analysis —
sf-leads Lead/Contact enrichment with citations, confidence ratings, and approval gates —
sf-records Record stewardship: data-health inspection, dedupe/merge, batched fixes, safe bulk updates —

Skill metadata

Every skill declares machine-readable routing metadata in its frontmatter, so agents (and humans) can reason about the catalog without loading each skill:

Field Purpose
domains Classification (Development, Data, Administration, Quality, Security, Operations, Architecture, Marketing)
relatedSkills The handoff graph — CI verifies every entry resolves to a real skill
cliTools Optional local accelerators (python3 for validator scripts, sf for CLI execution mode). Never required — every skill works MCP-only
minApiVersion Salesforce API floor (see below)

Descriptions also carry explicit anti-routing ("Do NOT use for X — use sf-Y"), which keeps fifteen overlapping skills from colliding on trigger phrases. CI enforces all of the above.

Platform currency

Skills target the current Salesforce platform (validated against API v66.0, Winter '26 era) with a stated floor of API v60.0 (minApiVersion in each skill's frontmatter) — the floor guarantees WITH USER_MODE, as user DML, and the modern Assert class. Re-validated each behavioral-eval iteration.

Reviewer subagents (Claude Code)

The plugin ships two read-only agents pinned to a fast model for cheap parallel review passes:

Agent Purpose
apex-reviewer Batch Apex review against the sf-apex 150-point rubric; never deploys
security-auditor Security scan against the sf-security 100-point rubric; never modifies

Org connection convention

The skills refer to org_init as shorthand for your MCP server's session/connection initialization step. Tool names vary by server:

  • If your Salesforce MCP server exposes a connection or init tool, call it first and confirm the target org.
  • If it does not, verify connectivity with a lightweight query (e.g. SELECT Id FROM Organization LIMIT 1) before running operations.

Likewise, generic tool names used in the skills (soql_query, sobject_dml, metadata_create, tooling_api_query, …) map to the equivalent tools on your server — most Salesforce MCP servers expose the same capabilities under similar names.

Execution modes

Each skill detects one of four execution modes per session and adapts:

Mode When What it enables
sfdx-repo Working dir is an SFDX project with metadata on disk Read metadata locally, no API calls for body retrieval
cli Salesforce CLI (sf) installed and authenticated Bulk retrieve, CLI queries, code execution
mcp-plus-code-execution MCP server + local Python/shell MCP for org access, scripts for analysis and reports
mcp-core MCP server only Everything via MCP tools, paginated

See any skill's references/execution-modes.md for details.

Report standards

Skills that generate documents (sf-audit, sf-security) follow shared standards in report-template.md: every scored report includes charts and tables (score gauges, category breakdowns, severity distributions, top-N offenders), and every HTML deliverable is a single self-contained file — inline CSS/JS, inline SVG charts, no external requests — with modern card-based design and tasteful scroll-reveal animations.

Repo layout

salesforce-core-skills/                  # repo root = a marketplace
├── .claude-plugin/
│   └── marketplace.json                 # marketplace manifest (lists 1 plugin)
├── README.md                            # you are here
├── LICENSE                              # MIT
└── plugins/
    └── salesforce-core/                 # the plugin itself
        ├── .claude-plugin/
        │   └── plugin.json              # plugin manifest
        ├── hooks/                       # PreToolUse validation hooks
        ├── shared/                      # shared hooks helpers + standards/ + templates/
        └── skills/
            ├── sf-apex/                 # each skill: SKILL.md + README +
            ├── sf-audit/                #   references/ + assets/ + scripts/
            ├── sf-campaigns/
            ├── sf-data/
            ├── sf-debug/
            ├── sf-diagram/
            ├── sf-flow/
            ├── sf-integration/
            ├── sf-leads/
            ├── sf-lwc/
            ├── sf-metadata/
            ├── sf-orgdiff/
            ├── sf-permissions/
            ├── sf-records/
            ├── sf-security/
            └── sf-test/

The marketplace pattern means more plugins can be added under plugins/<name>/ and registered in marketplace.json — the install URL stays the same.

Install

Option 1 — Cowork "Add marketplace" (recommended)

  1. Open Claude Desktop → Customize → Marketplace.
  2. Click + Add marketplace (sometimes labeled Sync from URL).
  3. URL: kugamon/salesforce-core-skills — or the full URL https://github.com/kugamon/salesforce-core-skills.
  4. Click Sync. You'll see one plugin: salesforce-core.
  5. Click Install.
  6. Restart Claude (Cmd+Q + reopen on macOS) so the skills load into the system prompt.

Option 2 — Local folder

  1. Clone the repo or download the source.
  2. In Claude Desktop → Customize → Personal plugins → + → Local folder.
  3. Pick plugins/salesforce-core/ (the directory that contains .claude-plugin/plugin.json).
  4. Toggle on. Restart Claude.

Option 3 — Manually pin to settings.json

{
  "extraKnownMarketplaces": [
    { "url": "https://github.com/kugamon/salesforce-core-skills" }
  ],
  "enabledPlugins": ["salesforce-core"]
}

Option 4 — Any agent tool via npx (Cursor, Codex, OpenCode, …)

The skills follow the open Agent Skills spec, so non-Claude tools can install them directly (all 16 skills; verified discovery on this nested layout):

npx skills add kugamon/salesforce-core-skills

Note: this path installs the skills only — the Claude-specific extras (guardrail hooks, marketplace updates) ship through Options 1–3.

Try it without an org

The repo ships synthetic sample data (sample-data/) so you can see the skills work before connecting a Salesforce MCP server:

"Using the sample data in sample-data/, which campaigns are actually working? Rank by ROI and flag data problems."

"Run a gap analysis on sample-data/leads.csv — which records need enrichment, and which emails look wrong?"

See sample-data/README.md for what's in the dataset (including the deliberate data-quality problems to find).

Verify

After installing and restarting, test a skill:

"Review all Apex triggers in my org for bulkification issues and governor limit risks. For each issue found, suggest a fix and score the code."

Claude should detect the execution mode, connect to your Salesforce MCP server, and run the sf-apex review workflow with 150-point scoring.

Sample prompts

  • "Perform a thorough audit of the Apex classes and Flows in my Salesforce org. Generate Word, HTML and Excel versions of the report."
  • "Write tests for AccountService and show me the coverage."
  • "Is this codebase ready for AppExchange security review?"
  • "Why am I getting 'Too many SOQL queries: 101' on opportunity save?"
  • "Compare my sandbox against production — what drifted?"
  • "Set up a named credential for the Stripe API — which OAuth flow?"
  • "Which campaigns are actually working? Rank them by ROI."
  • "Find leads missing industry or title and enrich the top 10."
  • "Analyze all my profiles and permission sets and recommend security fixes and cleanup."
  • "Create an ERD diagram for my Sales Cloud data model including Account, Contact, Opportunity, and Lead."

Model choice

For reports, analysis and simple metadata tasks a fast model (e.g. Sonnet) is a good, cost-effective choice. For deeper design or debugging work, a more capable model may be needed.

Troubleshooting

"This repository isn't a marketplace — no manifest found at .claude-plugin/marketplace.json". Make sure you're on main — the manifest lives at the repo root.

Plugin loads but skills don't trigger. Restart Claude Desktop fully (Cmd+Q on macOS). Skills are loaded at session start.

Tools missing entirely. Confirm your Salesforce MCP server is connected and authenticated to the right org. Check claude_desktop_config.json, or ask Claude: "what's the org name?" — a working server answers via a SOQL query on Organization.

Skill references a tool your server doesn't have. The skills use generic tool names (soql_query, sobject_dml, metadata_create, …). Map them to your server's equivalents — see Org connection convention.

Docs

Standing org monitoring recipe (Cowork) · Eval methodology · Sample animated audit report (download and open — single-file HTML) · CHANGELOG

Contributing

This collection is maintained by Kugamon. Outside pull requests aren't accepted, but issues are welcome: if a skill gives wrong guidance for your org or a newer Salesforce release, open an issue — the bug template asks for the prompt, the org shape and what went wrong, and good reports become eval cases.

Ideas for new skills are welcome as issues too (there's a template). CONTRIBUTING.md describes how the skills are built and released.

The MIT license lets you fork and adapt it for your own use.

Related projects

License

MIT — see LICENSE.

Portions derived from the MIT-licensed sf-skills project by Jag Valaiyapathy; original copyright notices are preserved in the LICENSE file. Per-skill credits are in each skill's CREDITS.md.

This project is not affiliated with Salesforce, Inc. or with Anthropic. Tool names, APIs, and platform behavior may change as Salesforce evolves; verify against official Salesforce documentation.

Reviews (0)

No results found