Loading repository data…
Loading repository data…
PranavNagrecha / repository
Open-source Salesforce knowledge layer for AI coding assistants. 982+ source-grounded skills, 75 agents, 38-tool MCP server with live-org metadata. pip install sfskills-mcp.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
The universal Salesforce knowledge layer for AI coding assistants.
Drop this into Claude Code, Cursor, Aider, Windsurf, or any AI tool and get role-accurate, source-grounded Salesforce guidance — for every role, every cloud, every task.
1027 skills · 75 agents · shared Apex/LWC/Flow templates · golden evals · live-org MCP server.
1097+ skills planned across 5 roles × 16 clouds. Live progress: docs/queue-progress.md.
Three layers that turn generic LLMs into Salesforce-literate agents:
skills/<domain>/<skill>/) — 1027 structured guides. Every skill carries source-grounded instructions, code examples, gotchas, WAF mapping, and a per-skill list of LLM anti-patterns the model must refuse to produce.templates/ → TriggerHandler, ApplicationLogger, SecurityUtils, HttpClient, TestDataFactory, LWC skeleton, Flow fault paths, Agentforce actions.standards/decision-trees/ → Routing for automation, async, integration, and sharing decisions — agents consult these before writing code.evals/ → Golden P0 cases for flagship skills. Output quality is testable, not vibes-based.mcp/sfskills-mcp/) — 38 tools across skill / agent / template / decision-tree search + retrieval, live-org metadata + SOQL (Apex classes / triggers, LWC bundles, custom fields, objects, validation rules, permission sets, named credentials, approvals, orgs), 5 probes (Apex refs, Flow refs, matching rules, permset shape, automation graph) with progress notifications, task-to-agent routing (), diagnostic, atomic envelope persistence. Plus (every wrapper — , , …) and (, , , , ). Every tool carries honest annotations (, , , ) so MCP-aware clients can auto-approve safely. An AI agent reads this library asks your actual org "does this already exist?" via your CLI auth. No secrets handled in-process. suggest_agenthealthcommands/*.md/refactor-apex/audit-routersfskills://catalogsfskills://skill/{id}sfskills://agent/{name}sfskills://decision-tree/{name}sfskills://template/{path}readOnlyHintdestructiveHintopenWorldHintidempotentHintsf| Role | What you get |
|---|---|
| Admin | Step-by-step configuration guides, FLS checklists, automation decision trees |
| BA | Requirements templates, UAT scripts, process mapping frameworks |
| Developer | Apex patterns with test classes, LWC component scaffolds, Flow best practices |
| Data | Migration runbooks, SOQL optimization, Bulk API patterns, LDV strategies |
| Architect | Decision frameworks, WAF reviews, scalability planning, ADR templates |
| Tool | Setup | Slash commands in / menu? |
|---|---|---|
| Claude Code | Clone + open. Works automatically via CLAUDE.md. | ✅ Auto — .claude/commands/ ships in-tree |
| Cursor | python3 scripts/export_skills.py --target cursor then copy exports/cursor/.cursor/ to your project | ✅ Yes (Wave 11) |
| Windsurf | python3 scripts/export_skills.py --target windsurf then copy exports/windsurf/.windsurf/ to your project | ✅ Yes (as Cascade workflows; 12 KB cap per file) |
| Augment | python3 scripts/export_skills.py --target augment then copy exports/augment/.augment/ to your project | ✅ Yes (Wave 11) |
| Codex CLI | python3 scripts/export_skills.py --target codex then cp exports/codex/codex-prompts/*.md ~/.codex/prompts/ | ✅ Yes (as /prompts:<name>; user-scope) |
| Aider | python3 scripts/export_skills.py --target aider then aider --read exports/aider/CONVENTIONS.md | ❌ Aider doesn't support custom slash; index embedded in CONVENTIONS.md |
| Any LLM | Copy any skills/<domain>/<skill>/SKILL.md as a system prompt | — |
Every probe, agent, and skill in this repo is verified against a live Salesforce org via three automated harnesses:
Re-runnable on any dev/scratch org:
python3 scripts/validate_probes_against_org.py --target-org <alias>
python3 scripts/smoke_test_agents.py --target-org <alias>
python3 scripts/validate_skill_factuality.py --target-org <alias> --sample 200
Reports land in docs/validation/. See docs/validation/README.md for what each layer catches.
If you only need a specific agent in another project (e.g. user-access-diff):
python3 scripts/export_agent_bundle.py --agent user-access-diff --rewrite-paths --out ./my-export
# Drop ./my-export/user-access-diff/ into .cursor/agents/ or .claude/agents/
The bundle carries the AGENT.md plus every probe, skill, template, and shared doc it needs — with paths auto-rewritten to resolve inside the bundle. See docs/installing-single-agents.md.
# 1. Clone
git clone https://github.com/PranavNagrecha/AwesomeSalesforceSkills.git
cd AwesomeSalesforceSkills
# 2. Install dependencies
python3 -m pip install -r requirements.txt
# 3a. Claude Code — works automatically via CLAUDE.md. Just open the repo.
# 3b. Cursor / Windsurf / Aider / Augment — export and copy:
python3 scripts/export_skills.py --platform cursor # or windsurf | aider | augment | all
cp -r exports/cursor/.cursor/ /path/to/your/sf-project/
# 4. Search what's in the library
python3 scripts/search_knowledge.py "trigger recursion"
python3 scripts/search_knowledge.py "permission sets" --domain admin
Want your AI to see your actual org too? Install the MCP server below.
Every skill is a structured guide an AI follows end-to-end. Example for apex/trigger-framework:
trigger-framework/
├── SKILL.md ← the AI's instructions: modes, gather questions, step-by-step
├── references/
│ ├── examples.md ← real code examples with test classes
│ ├── gotchas.md ← non-obvious platform behaviors
│ └── well-architected.md ← WAF pillar mapping + official sources
├── templates/
│ └── trigger-framework-template.md ← deployable scaffold
└── scripts/
└── check_trigger.py ← local validator (stdlib only, no pip)
Skills are plain markdown. They work in any AI tool that can read a file.
Canonical, copy-pasteable Salesforce building blocks live under templates/:
templates/
├── apex/ TriggerHandler, TriggerControl, BaseDomain/Service/Selector,
│ ApplicationLogger, SecurityUtils, HttpClient
├── apex/tests/ TestDataFactory, TestRecordBuilder, MockHttpResponseGenerator,
│ TestUserFactory, BulkTestPattern
├── apex/cmdt/ Trigger_Setting__mdt, Logger_Setting__mdt
├── apex/custom_objects/ Application_Log__c (+ fields)
├── lwc/ jest.config.js, component-skeleton/ (bundle + tests),
│ patterns/ (wire, imperative, LDS form)
├── flow/ RecordTriggered_Skeleton, FaultPath_Template, Subflow_Pattern
└── agentforce/ AgentSkeleton.json, AgentActionSkeleton.cls, AgentTopic_Template.md
Every skill in this repo references these canonical files instead of re-inventing scaffolds. AI tools reading the skills get one consistent implementation of each Salesforce idiom — testable, version-pinned, and deployable.
Drop the files you need into your SFDX project under force-app/main/default/
and rename. See templates/README.md for the layout
and dependency order.
| Domain | Skills |
|---|---|
| Admin | 253 — custom fields, objects, picklists, users, org setup, page layouts, permission sets, sharing, validation rules, flows, reports, data skew, requirements gathering, Experience Cloud site setup, member management, CMS content, guest access, moderation, SEO, portal requirements, self-service design, partner community, community engagement, CPQ product catalog and bundles, CPQ pricing rules, CPQ quote templates, FSL work orders, service territories, resource management, scheduling policies, mobile app setup, Health Cloud patient setup, care plan configuration, care program management, FSC financial accounts, household model configuration, FSC referral management, NPSP household accounts, gift entry and processing, soft credits and matching, recurring donations, Marketing Cloud Engagement setup, MCAE/Pardot setup, Email Studio, Journey Builder, Marketing Cloud Connect, MCAE lead scoring and grading, consent management, email deliverability, B2B Commerce store setup, CRM Analytics app creation, analytics dashboard design, integration-admin connected apps, remote site settings, outbound message setup, integration user management, change data capture admin... |
| Apex | 158 — trigger framework, batch, async, security patterns, callouts, mocking, platform cache, SOQL fundamentals, sf CLI and SFDX essentials, Metadata API and package.xml, debug logs and Developer Console, apex managed sharing, scheduled jobs, email services, fflib enterprise patterns, mixed DML and setup objects, record locking, callout-DML transaction boundaries, trigger-flow coexistence, apex performance profiling, JSON serialization, DML patterns, collections patterns, aggregate queries, SOQL relationship queries, batch chaining, transaction finalizers, wrapper class patterns, limits monitoring, named credentials patterns... |
| LWC | 82 — wire service, component communication, testing, accessibility, offline, performance, toast and notifications, dynamic components, imperative Apex, message channel patterns, LWR site development, Experience Cloud LWC components, authentication flows, headless CMS API, API access patterns, search customization, multi-IdP SSO... |
| Flow | 63 — record-triggered, screen flows, fault handling, bulkification, subflows, governance, debugging, auto-launched flow patterns, collection processing, External Services callouts, Flow for Slack Core Actions, flow action framework, flow large-data-volume patterns, Process Builder to Flow migration, Workflow Rule to Flow migration... |
| OmniStudio | 34 — OmniScript design, DataRaptor, Integration Procedures, security, FlexCard design patterns, calculation procedures, DataPack deployment, performance optimization, Industries CPQ vs Salesforce CPQ, OmniStudio testing patterns, OmniStudio CI/CD patterns... |
| Agentforce | 53 — agent actions, topic design, Einstein Trust Layer, agent creation, Einstein Copilot for Sales, Einstein Prediction Builder, Einstein Copilot for Service, Model Builder and BYOLLM, RAG patterns, agent testing and evaluation, persona design, MCP tool definition in Apex, Salesforce MCP server setup... |
| Security | 48 — org hardening, permission set groups, Shield Platform Encryption, event monitoring, field audit trail, transaction security p |