/salesforce:author-soql-query [what to query, e.g. 'open opportunities for accounts in EMEA']from salesforce
Authors a selective, indexed, bulk-safe SOQL query for a described goal, recommending Batch Apex, skinny tables, or custom indexes for high-volume data.
Ships in salesforce. Installing the plugin adds it to Claude Code.
You are running /salesforce:author-soql-query. Write a correct, selective SOQL query for what the user asked ($ARGUMENTS), using this plugin's soql-authoring skill and data best-practices. The goal is a query that stays fast at high data volume, not just one that returns the right rows in a dev org.
You need a query for Apex, a report, a Data Loader extract, or an integration — and the object is (or will become) large.
data-selective-soql-on-indexed-fields, apex-query-selectively-with-indexes): filter on indexed fields (Id, Name, external IDs, audit fields, lookups, or custom-indexed fields). Avoid leading % LIKE, negative filters (!=, NOT), and nulls on unindexed fields — they force full scans.SELECT *-style field dumps; each field is heap + transfer cost.data-avoid-ownership-and-lookup-skew): a parent with >10k children, or one owner with huge volume, causes record-lock contention — note it if the filter implies it.50k rows in Apex → Batch Apex (
data-batch-apex-for-large-result-sets), not a single query.
data-skinny-tables-and-custom-indexes).data-loader-vs-bulk-api-selection, integration-bulk-api-for-batch-not-row-by-row-rest).apex-bind-variables-in-dynamic-soql), never string-concatenate user input.data-archive-cold-rows-to-keep-hot-object-small), say so.What the command file sets; muted values are Claude Code's defaults
soql, salesforce, query-authoring, bulk-safe, selective-query
7-day visitors to each command page
8 commands in this plugin
/build-agentforce-actionBuild an Agentforce actionBuild an Agentforce agent action the right way — tightly-scoped topics with explicit instructions, grounded actions with guardrails, a check that the use case actually earns non-determinism, and a test/eval plan run before and after ship./design-integrationDesign an integrationChoose and design the right Salesforce integration pattern — Platform Events vs Change Data Capture vs callout, Bulk API vs row-by-row REST, named credentials over hardcoded endpoints, idempotent replay-aware consumers, and governor-safe async callouts./design-record-triggered-flowDesign a record-triggered FlowDesign a record-triggered Flow the right way — pick the flow type by trigger+timing, use before-save for same-record updates, keep it bulk-safe with no DML in loops, and add entry conditions + fault paths. Routes to Apex when the logic outgrows Flow./plan-deploymentPlan a deploymentPlan a safe Salesforce deployment — pick the test level deliberately, deploy in dependency order, route deletions through destructiveChanges (not the org UI), use validation-only deploys in CI, and stage through scratch/sandbox with source tracking./review-apex-for-governor-limitsReview Apex for governor limitsAudit Apex (a class, trigger, or the current diff) for governor-limit defects — SOQL/DML in loops, non-selective queries, missing bulkification, recursion, and CRUD/FLS gaps — and propose concrete fixes ranked by severity./scaffold-apex-triggerScaffold an Apex trigger (handler pattern)Scaffold a new Apex trigger using the one-trigger-per-object handler pattern — a thin trigger that delegates to a bulk-safe handler class with recursion control, plus a TestFactory-based test class. Bulkified and FLS-aware from the start.npx claudepluginhub mcorbett51090/ravenclaude --plugin salesforce