Co-Pilot / 辅助式
更新于 a month ago

sf-skills

JJaganpro
0.0k
jaganpro/sf-skills
84
Agent 评分

💡 摘要

该技能增强了AI编码代理的Salesforce专业知识,以实现高效的开发和验证。

🎯 适合人群

Salesforce开发人员AI爱好者技术架构师DevOps工程师软件质量保证测试人员

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析中风险

风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险;文件读写范围与路径穿越风险;依赖锁定与供应链风险。以最小权限运行,并在生产环境启用前审计代码与依赖。

Salesforce Skills for Agentic Coding Tools

💙 Community-powered agentic coding knowledge, shared by a Salesforce Certified Technical Architect (CTA)

Author License: MIT

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 skills60+ templates520+ validation pointsLSP 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/ | Claude | | OpenCode CLI | ✅ Installer | .opencode/skill/ | OpenCode | | Codex CLI | ✅ Installer | .codex/skills/ | OpenAI | | Gemini CLI | ✅ Installer | ~/.gemini/skills/ | Google | | Amp CLI | ✅ Compatible | .claude/skills/ | Amp | | Droid CLI | ✅ Installer | .factory/skills/ | Factory | | Cursor CLI | ✅ Installer | .cursor/rules/ | Cursor | | Agentforce Vibes | ✅ Installer | .clinerules/ | Salesforce |

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) and references/ (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 to references/
  • 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: /newrule command refe
五维分析
清晰度9/10
创新性8/10
实用性9/10
完整性8/10
可维护性8/10
优缺点分析

优点

  • 对Salesforce最佳实践的即时专业知识。
  • 根据既定标准自动验证代码。
  • 各种Salesforce组件的全面模板。
  • 高效的上下文管理以节省资源。

缺点

  • 依赖于特定的编码工具。
  • 某些验证脚本需要手动执行。
  • 对不熟悉Salesforce的新用户的学习曲线。
  • 可能过度依赖自动验证。

相关技能

salesforce-developer

A
toolCo-Pilot / 辅助式
80/ 100

“这就像一个非常勤奋的Salesforce实习生,从不睡觉,但也从没机会真正部署任何东西。”

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 Jaganpro.