salesforce-skills
CLAUDE.md17 starsChanged 9 months agoApache-2.0View on GitHub
Open-source Agent Skills for Salesforce development. Works with Claude Code, Cursor, Codex, and 50+ AI tools.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- sf-agentforceSkill
- sf-apexSkill
- sf-dataSkill
- sf-debugSkill
- sf-deploySkill
- sf-diagramSkill
- sf-docsSkill
- sf-evalSkill
- sf-findSkill
- sf-flowSkill
- sf-integrationSkill
- sf-lwcSkill
- sf-omnistudioSkill
- sf-permissionsSkill
- sf-schemaSkill
- sf-securitySkill
- sf-soqlSkill
- sf-testSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Bulk Patterns: All code must handle 200+ records per transaction
- Very specific: line 36
Run tests and security audit (/sf-security)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Salesforce Skills for AI Coding Agents
Open-source Agent Skills for Salesforce development. Works with Claude Code, Cursor, Codex, and 50+ AI tools.
Architecture
- Canonical skills:
skills/— 10 skills following the Agent Skills spec - Cross-client:
.agents/skills/— symlinks for non-Claude agents - Claude Code:
.claude/skills/— symlinks +.claude/agents/for subagents - Shared references:
references/— governor limits (used by multiple skills) - Scripts:
scripts/— security scan, metadata validation (support--helpand--format json) - MCP config:
.claude/.mcp.json— Salesforce DX MCP server (disabled by default)
Salesforce Conventions
- API Version: 62.0
- Naming: PascalCase for classes, camelCase for methods/variables, UPPER_SNAKE for constants
- Trigger Pattern: One trigger per object, handler class pattern
- Test Coverage: Minimum 75%, target 85%+
- Security:
WITH USER_MODEin SOQL,Security.stripInaccessible()for DML,with sharingon classes - Bulk Patterns: All code must handle 200+ records per transaction
Key Limits
- 100 SOQL queries / 150 DML statements per synchronous transaction
- 6 MB heap / 10s CPU time
- 50,000 query rows / 10,000 DML rows
CLI Quick Reference
- Deploy:
sf project deploy start -d force-app/ - Retrieve:
sf project retrieve start -m ApexClass:MyClass - Test:
sf apex run test -n MyTestClass --synchronous - Query:
sf data query -q "SELECT Id, Name FROM Account LIMIT 10"
Development Workflow
- Retrieve metadata from org
- Develop locally with skill assistance
- Deploy to scratch org / sandbox for testing
- Run tests and security audit (
/sf-security) - Deploy to target org (
/sf-deploy)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

