π‘ Summary
This skill enhances AI coding agents with Salesforce expertise for efficient development and validation.
π― Target Audience
π€ AI Roast: βPowerful, but the setup might scare off the impatient.β
Risk: Medium. Review: shell/CLI command execution; outbound network access (SSRF, data egress); API keys/tokens handling and storage; filesystem read/write scope and path traversal; dependency pinning and supply-chain risk. Run with least privilege and audit before enabling in production.
Salesforce Skills for Agentic Coding Tools
π Community-powered agentic coding knowledge, shared by a Salesforce Certified Technical Architect (CTA)
A collection of reusable skills for Agentic Salesforce Development, enabling AI-powered code generation, validation, testing, debugging, and deployment. Built for Claude Code with planned support for other agentic coding tools.
18 skills β’ 60+ templates β’ 520+ validation points β’ LSP integration
π‘ What is a Skill?
Skills are portable knowledge packs that supercharge AI coding agents with domain expertise.
Think of skills as "installable superpowers" for your agentic coding tool. Instead of repeatedly explaining Salesforce best practices to your AI assistant, a skill pre-loads that knowledge so the AI becomes an instant expert.
sf-apex/
βββ SKILL.md # π§ The brain - prompts & instructions
βββ templates/ # π Code templates & patterns
βββ hooks/ # β
Validation scripts
βββ examples/ # π Usage examples
π‘ Tip: Skills are open-source and composable. You can fork, customize, or create your own!
Why Use Skills?
π Stop explaining Salesforce patterns. Start building.
1. Instant Expertise β AI knows Trigger Actions Framework, Flow bulkification, deployment best practices from the first message.
2. Automatic Validation β Every Apex class, Flow, and agent script is scored against 100-150 point rubrics. Catch anti-patterns before deployment.
3. Built-in Templates β 50+ production-ready templates across Apex, Flow, Metadata, Agentforce, and more.
4. Tool Orchestration β "Deploy to production" becomes a single command. Skills handle sf CLI complexity.
5. Context Efficiency β Skills load only when invoked, saving ~2000 tokens per conversation vs. pasting prompts.
| Before | After |
|--------|-------|
| β Prompt engineering every conversation | β
Skill(skill="sf-apex") |
| β 10+ messages to explain requirements | β
1 message, skill fills the gaps |
| β Review code manually for issues | β
Hooks validate on every save |
π€ Supported Agentic Coding Tools
| Tool | Status | Install Path | |
|------|--------|--------------|--|
| Claude Code CLI | β
Full Support | .claude-plugin/ | |
| OpenCode CLI | β
Installer |
.opencode/skill/ | |
| Codex CLI | β
Installer |
.codex/skills/ | |
| Gemini CLI | β
Installer |
~/.gemini/skills/ | |
| Amp CLI | β
Compatible |
.claude/skills/ | |
| Droid CLI | β
Installer |
.factory/skills/ | |
| Cursor CLI | β
Installer |
.cursor/rules/ | |
| Agentforce Vibes | β
Installer |
.clinerules/ | |
Agent Skills Open Standard: These skills follow the Agent Skills specification for cross-CLI compatibility.
CLI Compatibility Notes
π€ Call for Volunteers! This repo is community-driven, sharing knowledge to strengthen the Salesforce ecosystem. We need volunteers to test skills on different CLIs (OpenCode, Codex, Gemini, Cursor, etc.). You'll learn a ton about agentic workflows while helping the community! Open an issue to get started.
Claude Code is the recommended platform for sf-skills with full native support for all features.
# Install via marketplace /plugin marketplace add Jaganpro/sf-skills
- Install Path:
.claude-plugin/(per-skill plugin structure) - Format: Native SKILL.md with hooks, templates, and examples
- Hooks: β Automatic validation on Write/Edit operations
- LSP: β Real-time syntax validation with auto-fix loops
- Templates: β Referenced dynamically (no duplication)
- Tool Execution: Local tools (Read, Write, Edit, Bash, Grep, Glob) β no MCP overhead
- Docs: claude.ai/code
Why Claude Code for sf-skills:
- Zero-latency tools β Local execution vs. MCP JSON-RPC roundtrips
- Automatic hooks β Validation runs on every file save without manual invocation
- Context efficiency β Skills load on-demand, saving ~2000 tokens per conversation
- LSP integration β Apex, Agent Script, and LWC syntax errors caught in real-time
OpenCode is an open-source alternative to Claude Code with skill support.
# Install all skills for OpenCode python tools/installer.py --cli opencode --all
- Install Path:
.opencode/skill/(project) or~/.opencode/skill/(global) - Format: SKILL.md with scripts and templates
- Hooks: β οΈ Manual execution (run
scripts/validate_*.py) - Claude Compatibility: Also reads
.claude/skills/directory - Docs: github.com/opencode-ai/opencode
Codex CLI is OpenAI's terminal-based coding agent.
# Install all skills for Codex python tools/installer.py --cli codex --all
- Install Path:
.codex/skills/(project) or~/.codex/skills/(global) - Format: SKILL.md with
assets/(templates) andreferences/(docs) - Hooks: β οΈ Manual execution (run
scripts/validate_*.py) - Enable Skills:
codex --enable skills - Docs: github.com/openai/codex
Gemini CLI is Google's Gemini-powered terminal agent with massive context window.
# Install all skills for Gemini python tools/installer.py --cli gemini --all
- Install Path:
~/.gemini/skills/(user scope by default) - Format: SKILL.md with scripts and templates
- Hooks: β οΈ Manual execution (run
scripts/validate_*.py) - Context: 1M+ tokens β can load entire codebases
- Symlink:
ln -s ~/.gemini/skills/sf-apex ~/.claude/skills/sf-apex - Docs: github.com/google-gemini/gemini-cli
Amp is Sourcegraph's agentic coding tool, fully compatible with Claude Code skills.
# No installer needed β Amp reads Claude Code skills directly # Place skills in .claude/skills/ directory
- Install Path:
.claude/skills/(same as Claude Code) - Format: Native Claude Code format (SKILL.md + hooks + templates)
- Hooks: β Compatible with Claude Code hooks
- Codebase Search: Powered by Sourcegraph's code intelligence
- Docs: sourcegraph.com/amp
Droid CLI (v0.26.0+) natively supports Claude Code skills format. Use the installer or import directly:
# Install via installer python tools/installer.py --cli droid --all # Or Droid auto-discovers skills from .claude/skills/ directory # Use the /skills command within Droid to manage skills
- Install Path:
.factory/skills/or~/.factory/skills/ - Format: Claude Code compatible (SKILL.md + scripts/)
- Prerequisite: Enable Custom Droids in
/settings β Experimental - Docs: docs.factory.ai/cli/configuration/skills
Cursor CLI uses its own rules system (.cursor/rules/ with MDC format). The installer transforms skills to Cursor's native format:
# Install skills transformed to MDC format python tools/installer.py --cli cursor --all
- Install Path:
.cursor/rules/{name}.mdc - Format: MDC (Markdown with YAML frontmatter: description, globs, alwaysApply)
- Templates: Copied to
assets/, docs toreferences/ - Alternative: SkillPort MCP bridge for runtime skill access
- Docs: docs.cursor.com/context/rules-for-ai
Agentforce Vibes is Salesforce's enterprise vibe-coding tool with strong Model Context Protocol (MCP) support.
# Install all skills for Agentforce Vibes python tools/installer.py --cli agentforce-vibes --all
- Install Path:
.clinerules/(project directory) - Format: Pure markdown files with numeric prefixes (
01-sf-apex.md,02-sf-flow.md, etc.) - Templates: Inlined directly into markdown rules (self-contained)
- Includes:
/newrulecommand refe
Pros
- Instant expertise in Salesforce best practices.
- Automatic validation of code against established rubrics.
- Comprehensive templates for various Salesforce components.
- Efficient context management to save resources.
Cons
- Dependency on specific coding tools.
- Manual execution required for some validation scripts.
- Learning curve for new users unfamiliar with Salesforce.
- Potential for over-reliance on automated validation.
Related Skills
salesforce-developer
AβIt's like a very diligent Salesforce intern who never sleeps but also never gets to actually deploy anything.β
pytorch
SβIt's the Swiss Army knife of deep learning, but good luck figuring out which of the 47 installation methods is the one that won't break your system.β
agno
SβIt promises to be the Kubernetes for agents, but let's see if developers have the patience to learn yet another orchestration layer.β
Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.
Copyright belongs to the original author Jaganpro.
