agentleFS
Clientell-AiClientell-Ai/salesforce-skills/CLAUDE.md

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.

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
  1. Distinctive:

    Bulk Patterns: All code must handle 200+ records per transaction

    line 19
  2. Very specific:

    Run tests and security audit (/sf-security)

    line 36

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 --help and --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_MODE in SOQL, Security.stripInaccessible() for DML, with sharing on 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

  1. Retrieve metadata from org
  2. Develop locally with skill assistance
  3. Deploy to scratch org / sandbox for testing
  4. Run tests and security audit (/sf-security)
  5. Deploy to target org (/sf-deploy)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.