This is a focused SOQL authoring and optimization skill that turns natural language into Salesforce queries, handles relationship traversals and aggregates, and scores your output on a 100-point scale. It covers child-to-parent queries, subqueries, selectivity analysis, and governor-aware design. You'd reach for this when writing .soql files or debugging query performance, not when running bulk data operations or embedding queries in broader Apex logic (it delegates those). The workflow is sensible: generate the simplest correct query first, pick the right shape for your data pattern, then optimize for indexes and selective filters. It knows when to hand off execution to other skills and comes with reference files for syntax, anti-patterns, and selector layer patterns.

skills.sh installs
3K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill querying-soql --agent claude-code

Installs into .claude/skills of the current project.

Files

This is a focused SOQL authoring and optimization skill that turns natural language into Salesforce queries, handles relationship traversals and aggregates, and scores your output on a 100-point scale. It covers child-to-parent queries, subqueries, selectivity analysis, and governor-aware design. You'd reach for this when writing .soql files or debugging query performance, not when running bulk data operations or embedding queries in broader Apex logic (it delegates those). The workflow is sensible: generate the simplest correct query first, pick the right shape for your data pattern, then optimize for indexes and selective filters. It knows when to hand off execution to other skills and comes with reference files for syntax, anti-patterns, and selector layer patterns.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Debugging, Productivity & Planning, Sales & Marketing
First seen
Jun 3, 2026

More from forcedotcom/sf-skills

All 158

Recommended

More Debugging
1rmyndharis avatarunity-developerrmyndharis/antigravity-skillsBuild Unity games with optimized C# scripts, efficient rendering, and proper asset management. Masters Unity 6 LTS, URP/HDRP pipelines, and cross-platform deplo3Kskills.sh installs
2nexu-io avataragent-browsernexu-io/open-designBrowser automation CLI for AI agents. Use when the user needs to inspect, test, or automate browser behavior: navigating pages, filling forms, clicking buttons,3Kskills.sh installs
3actionbook avatarrust-routeractionbook/rust-skillsCRITICAL: Use for ALL Rust questions including errors, design, and coding. HIGHEST PRIORITY for: 比较, 对比, compare, vs, versus, 区别, difference, 最佳实践, best practic2.9Kskills.sh installs
4cap-go avatarcapacitor-best-practicescap-go/capgo-skillsBest practices for Capacitor app development including project structure, plugin usage, performance optimization, security, and deployment. Use this skill when 2.9Kskills.sh installs
5mastra-ai avatarreact-best-practicesmastra-ai/mastraReact performance optimization guidelines from Mastra Engineering. This skill should be used when writing, reviewing, or refactoring React code to ensure optima2.8Kskills.sh installs
6dynatrace avatardt-obs-kubernetesdynatrace/dynatrace-for-aiKubernetes cluster, pod, node, and workload monitoring. Use when analyzing K8s health, resource optimization, pod failures, OOMKills, scheduling, or security po2.8Kskills.sh installs