Provides Apex development workflow including static analysis and testing steps. Use before writing Apex classes or triggers
How this skill is triggered — by the user, by Claude, or both
Slash command
/aidan-salesforce-skills:salesforce-apexThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. **Read project config** — Get `sourceApiVersion` from `sfdx-project.json` for all new `-meta.xml` files.
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 — A post-edit hook runs sf code-analyzer automatically on .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.
npx claudepluginhub aquivalabs/aidan-user-claude --plugin aidan-salesforce-skillsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.