/salesforce-claude-code:model-routefrom salesforce-claude-code
Recommends the optimal Claude model tier (haiku, sonnet, opus) for Salesforce development tasks based on complexity, risk, and budget constraints.
Ships in salesforce-claude-code. 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.
None: SKILL.md is the whole skill.
Recommend the best model tier for the current task by complexity and budget.
/model-route [task-description] [--budget low|med|high]
haiku: deterministic, low-risk mechanical changessonnet: default for implementation and refactorsopus: architecture, deep review, ambiguous requirementsModel names (haiku, sonnet, opus) refer to the current Claude model mapped to that tier in your Claude Code configuration.
Use opus when the task requires deep understanding of Salesforce architecture, security implications, or governor limit analysis across multiple execution paths.
| Task | Why Opus |
|---|---|
| Governor limit audit across trigger/flow/batch chains | Must trace cumulative DML/SOQL across async boundaries, understand order of execution, and reason about worst-case heap/CPU scenarios |
Security review of @RestResource or with sharing/without sharing decisions | Requires nuanced reasoning about record access, CRUD/FLS enforcement, SOQL injection vectors, and org-wide defaults |
| Architecture review for large-scale data model changes | Must evaluate cascade effects on triggers, flows, validation rules, sharing rules, and downstream integrations |
Use haiku when the task is deterministic, well-scoped, and unlikely to have subtle correctness issues.
| Task | Why Haiku |
|---|---|
Formatting LWC components (fix indentation, add missing @api decorators) | Purely mechanical — no logic changes, just style compliance |
| Simple Apex fixes (rename a variable, fix a typo in a label, add a missing null check) | Single-line or few-line changes with obvious correctness |
Adding <meta.xml> boilerplate or updating apiVersion across components | Repetitive, pattern-based edits with no ambiguity |
Use sonnet (default) for standard development work that requires understanding but follows well-known patterns.
| Task | Why Sonnet |
|---|---|
| Code review of an Apex trigger handler or service class | Needs to understand patterns and spot issues, but follows standard review criteria |
Generating Apex test classes with @TestSetup, mocking, and assertions | Requires understanding the class under test, but test generation follows repeatable patterns |
| Implementing a new LWC component with wire adapters and error handling | Standard implementation work — needs context awareness but not deep architectural reasoning |
[task-description] optional free-text--budget low|med|high optional/model-route Review the sharing model for the new Patient__c object hierarchy
/model-route Fix the CSS alignment on the accountDashboard LWC --budget low
/model-route Generate test coverage for OpportunityTriggerHandler
/model-route Audit all SOQL queries in force-app for governor limit risks --budget high
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
model-selection, salesforce, task-routing, cost-optimization
58 skills in this plugin
/asideUse when you need a quick Salesforce answer mid-task. Answer a side question about Apex, org config, or metadata without losing context, then resume work automatically./checkpointUse when saving Salesforce development progress. Create a named checkpoint via git stash before risky Apex deploys or org changes for easy recovery./configure-sccUse when setting up SCC for Salesforce Apex and LWC development. Interactive wizard to install profiles, modules, and customize the harness for your org.npx claudepluginhub jiten-singh-shahi/salesforce-claude-code --plugin salesforce-claude-codeOther plugins' skills for the same job