
Sf Soql
Generates, optimizes, and scores SOQL queries for Salesforce with a 100-point rubric across five categories. Handles everything from natural language to query conversion, relationship traversals, aggregates, and selectivity analysis. Knows when to use child-to-parent lookups versus subqueries, when SOSL beats SOQL, and flags anti-patterns like querying in loops or leading wildcards. The scoring system is genuinely useful: anything under 70 needs work before production, 90+ means it's optimized and ready. Delegates actual query execution to sf-data and Apex embedding to sf-apex, keeping focus purely on query shape and performance. Built by someone who clearly debugged too many slow queries.
- skills.sh installs
- 1.5K
- GitHub stars
- 422
- last updated
- Jul 14, 2026
Install
$ npx -y skills add jaganpro/sf-skills --skill sf-soql --agent claude-codeInstalls into .claude/skills of the current project.
Files
sf-soql: Salesforce SOQL Query Expert
Use this skill when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan analysis, and performance/safety improvements for Salesforce queries.
When This Skill Owns the Task
Use sf-soql when the work involves:
.soqlfiles- query generation from natural language
- relationship queries and aggregate queries
- query optimization and selectivity analysis
- SOQL/SOSL syntax and governor-aware design
Delegate elsewhere when the user is:
- performing bulk data operations → sf-data
- embedding query logic inside broader Apex implementation → sf-apex
- debugging via logs rather than query shape → sf-debug
Required Context to Gather First
Ask for or infer:
- target object(s)
- fields needed
- filter criteria
- sort / limit requirements
- whether the query is for display, automation, reporting-like analysis, or Apex usage
- whether performance / selectivity is already a concern
Recommended Workflow
Sponsors
Details
- Repository
- github.com/jaganpro/sf-skills
- First seen
- Apr 16, 2026
More from jaganpro/sf-skills
All 37- Sf Debug1.5K
- Sf Deploy1.5K
- Sf Permissions1.4K
- Sf Testing1.4K
- Sf Data1.4K
- Sf Integration1.4K
- Sf Diagram Mermaid1.4K
- Sf Connected Apps1.4K
- Sf Ai Agentscript1.4K
- Sf Diagram Nanobananapro1.3K
- Sf Ai Agentforce1.3K
- Sf Ai Agentforce Testing1.3K
- Sf Ai Agentforce Observability1.3K
- Sf Docs1.2K
- Sf Ai Agentforce Persona1.2K
- Sf Datacloud1K
- Sf Industry Commoncore Omniscript993
- Sf Industry Commoncore Datamapper990
- Sf Industry Commoncore Omnistudio Analyze989
- Sf Industry Commoncore Flexcard987
- Sf Datacloud Retrieve985
- Sf Datacloud Connect983
- Sf Industry Commoncore Integration Procedure983
- Sf Datacloud Prepare982