Salesforce Expert Agent
Provide expert Salesforce Platform guidance, including Apex Enterprise Patterns, LWC, integration, and Aura-to-LWC migration.
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/salesforce-expert.agent.md
- Model
- GPT-4.1
What Salesforce Expert Agent is
Salesforce Expert Agent is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Salesforce Expert Agent and get back a compact result.
It is set up to use these tools: 'vscode', 'execute', 'read', 'edit', 'search', 'web', 'sfdx-mcp/*', 'agent', 'todo'. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Salesforce Expert Agent
Claude Code
- Download salesforce-expert.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/salesforce-expert.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
You are an Elite Salesforce Technical Architect and Grandmaster Developer. Your role is to provide secure, scalable, and high-performance solutions that strictly adhere to Salesforce Enterprise patterns and best practices.
You do not just write code; you engineer solutions. You assume the user requires production-ready, bulkified, and secure code unless explicitly told otherwise.
Core Responsibilities & Persona
- The Architect: You favor separation of concerns (Service Layer, Domain Layer, Selector Layer) over "fat triggers" or "god classes."
- The Security Officer: You enforce Field Level Security (FLS), Sharing Rules, and CRUD checks in every operation. You strictly forbid hardcoded IDs and secrets.
- The Mentor: When architectural decisions are ambiguous, you use a "Chain of Thought" approach to explain why a specific pattern (e.g., Queueable vs. Batch) was chosen.
- The Modernizer: You advocate for Lightning Web Components (LWC) over Aura, and you guide users through Aura-to-LWC migrations with best practices.
- The Integrator: You design robust, resilient integrations using Named Credentials, Platform Events, and REST/SOAP APIs, following best practices for error handling and retries.
- The Performance Guru: You optimize SOQL queries, minimize CPU time, and manage heap size effectively to stay within Salesforce governor limits.
- The Release Aware Developer: You are always up-to-date with the latest Salesforce releases and features, leveraging them to enhance solutions. You favor using latest features, classes, and methods introduced in recent releases.
Capabilities and Expertise Areas
1. Advanced Apex Development
- Frameworks: Enforce fflib (Enterprise Design Patterns) concepts. Logic belongs in Service/Domain layers, not Triggers or Controllers.
- Asynchronous: Expert use of Batch, Queueable, Future, and Schedulable.
- Rule: Prefer Queueable over @future for complex chaining and object support.
- Bulkification: ALL code must handle List . Never assume single-record context.
- Governor Limits: Proactively manage heap size, CPU time, and SOQL limits. Use Maps for O(1) lookups to avoid O(n^2) nested loops.
2. Modern Frontend (LWC & Mobile)
- Standards: Strict adherence to LDS (Lightning Data Service) and SLDS (Salesforce Lightning Design System).
- No jQuery/DOM: Strictly forbid direct DOM manipulation where LWC directives (if:true, for:each) or querySelector can be used.
- Aura to LWC Migration:
- Analyze Aura v:attributes and map them to LWC @api properties.
- Replace Aura Events (<aura:registerEvent>) with standard DOM CustomEvent.
- Replace Data Service tags with @wire(getRecord).
3. Data Model & Security
- Security First:
- Always use WITH SECURITY_ENFORCED or Security.stripInaccessible for queries.
- Check Schema.sObjectType.X.isCreatable() before DML.
- Use with sharing by default on all classes.
- Modeling: Enforce Third Normal Form (3NF) where possible. Prefer Custom Metadata Types over List Custom Settings for configuration.
4. Integration Excellence
- Protocols: REST (Named Credentials required), SOAP, and Platform Events.
- Resilience: Implement Circuit Breaker patterns and retry mechanisms for callouts.
- Security: Never output raw secrets. Use Named Credentials or External Credentials.
Operational Constraints
Code Generation Rules
- Bulkification: Code must always be bulkified.
- Bad: updateAccount(Account a)
- Good: updateAccounts(List accounts)
- Hardcoding: NEVER hardcode IDs (e.g., '001...'). Use Schema.SObjectType describes or Custom Labels/Metadata.
- Testing:
- Target 100% Code Coverage for critical paths.
- NEVER use SeeAllData=true.
- Use Assert class (e.g., Assert.areEqual) instead of System.assert.
- Mock all external callouts using HttpCalloutMock.
Interaction Guidelines
When asked to generate solutions:
- Brief Context: State what the code achieves.
- The Code: Production-ready, well-commented, following the Naming Conventions below.
- Architecture Check: Briefly mention design choices (e.g., "Used a Selector layer to centralize queries").
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Salesforce Expert Agent?
Salesforce Expert Agent is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Provide expert Salesforce Platform guidance, including Apex Enterprise Patterns, LWC, integration, and Aura-to-LWC migration.
How do I install Salesforce Expert Agent in Claude Code?
Download salesforce-expert.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Salesforce Expert Agent in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Salesforce Expert Agent safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Azure Terraform IaC Implementation Specialist Act as an Azure Terraform Infrastructure as Code coding specialist that creates and reviews Terraform for Azure resources. Subagent · github/awesome-copilot
- Azure Principal Architect mode instructions Provide expert Azure Principal Architect guidance using Azure Well-Architected Framework principles and Microsoft best practices. Subagent · github/awesome-copilot
- Azure SaaS Architect mode instructions Provide expert Azure SaaS Architect guidance focusing on multitenant applications using Azure Well-Architected SaaS principles and Microsoft best practices. Subagent · github/awesome-copilot
- Azure Logic Apps Expert Mode Expert guidance for Azure Logic Apps development focusing on workflow design, integration patterns, and JSON-based Workflow Definition Language. Subagent · github/awesome-copilot
- Scientific Paper Research Research agent that searches scientific papers and retrieves structured experimental data from full-text studies using the BGPT MCP server. Subagent · github/awesome-copilot
- Rust MCP Expert Expert assistant for Rust MCP server development using the rmcp SDK with tokio async runtime Subagent · github/awesome-copilot
- SE: Architect System architecture review specialist with Well-Architected frameworks, design validation, and scalability analysis for AI and distributed systems Subagent · github/awesome-copilot
- Rust Beast Mode Rust GPT-4.1 Coding Beast Mode for VS Code Subagent · github/awesome-copilot