Apex Aide apexaide

Copilot Skills Salesforce: Complete Setup Guide

By Sanket Narkhede· Salesforce Diaries· ·Advanced ·Developer ·15 min read
Summary

This guide shows how to transform GitHub Copilot into a specialized Salesforce AI pair programming assistant by using custom Copilot skills that enforce best practices in Apex, LWC, SOQL, and architecture design. It explains the folder structure and configuration needed to ensure every AI-generated code respects governor limits, security, and architecture standards seamlessly. Salesforce teams can use this setup to standardize AI-assisted development, block common pitfalls, and extend best practices across all projects effortlessly. The combined Developer and Architect skills cover coding as well as design decisions based on the Well-Architected Framework, making AI-driven Salesforce development reliable and consistent.

Takeaways
  • Use markdown Copilot skills to enforce Apex best practices like bulkification and security.
  • Leverage the Architect skill for solution design guided by the Well-Architected Framework pillars.
  • Block common AI coding anti-patterns by defining explicit do-not-generate instructions.
  • Incorporate reusable reference guides for Apex, SOQL, LWC, integrations, and security.
  • Set up Copilot skills by placing .github/skills/ folder and copilot-instructions.md in repos.

Copilot skills Salesforce developers use turn GitHub Copilot into a Salesforce AI pair programming assistant that enforces Copilot Apex best practices on every single prompt. In other words, these AI skills for Salesforce — also called custom Copilot instructions — teach your IDE how to write bulkified Apex, secure LWC components, and optimized SOQL. This Salesforce Copilot setup guide walks you through the complete GitHub Copilot Salesforce configuration so that every line of AI-generated code respects governor limits , the Well-Architected Framework , and your team’s standards. What Are Copilot Skills Salesforce Developers Use? In short, Copilot skills are markdown instruction files that live inside your repository’s .github/skills/ folder. When you open VS Code and chat with Copilot, it automatically reads these AI skills for Salesforce and uses them as context. As a result, every response follows your team’s coding standards without any extra effort.

ApexLightning Web ComponentsSalesforce ArchitectureAgentforce and AIagentcopilotskillsvibe codingVS CODE