/aidan-salesforce-skills:salesforce-apexfrom aidan-salesforce-skills
Guides through Apex development workflow with static analysis, deployment, and testing steps. Helps when writing Apex classes or triggers in Salesforce projects.
Ships in aidan-salesforce-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read project config — Get sourceApiVersion from sfdx-project.json for all new -meta.xml files.
Write the Apex code
Check IDE diagnostics — Use mcp__ide__getDiagnostics on new files. Fix errors and warnings before proceeding.
Static analysis — Run sf code-analyzer on the new or changed .cls and .trigger files. Review its output and fix violations before proceeding.
Write tests — Create test classes following test-guidance.md.
Deploy code and tests Let source tracking which files to deploy
sf project deploy start
Run tests in org
sf apex run test --class-names <TestClassName> --result-format human --wait 10
The task is complete when tests pass in the org.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aquivalabs/aidan-user-claude --plugin aidan-salesforce-skills3 skills in this plugin
/salesforce-illuminated-cloud-symbolsAccess Salesforce Apex classes and schema objects. Use BEFORE writing Apex code to check what frameworks, utilities, or patterns are already available (e.g., trigger frameworks, selector patterns, service classes). Also use when you need to know object fields, System class methods, API signatures. Check this when asked to create triggers, services, or any new Apex to see if there's an existing framework to follow./salesforce-lwcUse before writing Lightning Web Components.