afv-library/skills/querying-soql
sandipkumar-yadav 37aa84df42
feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268)
* Migrating Core Salesforce Skills

* Updating pr comments

* updat reference

* Updating a skill

* Migrating Datacloud skills

* Migrating Industries cloud skills

* Validating - skills fixing

---------

Co-authored-by: Sandip Kumar Yadav <sandipkumar.yadav+sfemu@salesforce.com>
2026-05-14 19:32:15 +05:30
..
assets feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268) 2026-05-14 19:32:15 +05:30
references feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268) 2026-05-14 19:32:15 +05:30
scripts feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268) 2026-05-14 19:32:15 +05:30
CREDITS.md feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268) 2026-05-14 19:32:15 +05:30
README.md feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268) 2026-05-14 19:32:15 +05:30
SKILL.md feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268) 2026-05-14 19:32:15 +05:30

querying-soql

Salesforce SOQL query generation, optimization, and analysis skill with 100-point scoring. Convert natural language into performant SOQL and validate queries for security, selectivity, and governor-limit awareness.

Features

  • Natural Language to SOQL: Convert requests into executable queries
  • Query Optimization: Improve selectivity, LIMIT usage, and field selection
  • Relationship Queries: Parent-child, child-parent, and polymorphic patterns
  • Security Guidance: WITH USER_MODE, WITH SECURITY_ENFORCED, and Apex-safe usage
  • 100-Point Scoring: Performance, correctness, security, and readability checks

Quick Start

1. Invoke the skill

Skill: querying-soql
Request: "Find Accounts with open Opportunities created this quarter"

2. Typical use cases

  • Generate SOQL from plain-English requirements
  • Optimize slow or non-selective queries
  • Build aggregates and relationship queries
  • Validate queries before using them in Apex or CLI workflows

Documentation

  • handling-sf-data - For data creation/import/export workflows
  • generating-apex - For inline SOQL inside Apex code
  • running-apex-tests - For validating query behavior in tests