platform-soql-query

Generate and optimize SOQL queries with performance and security scoring.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Agents --skill platform-soql-query-padjei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: platform-soql-query
Source: https://github.com/padjei/SF_Agents/tree/main/.claude/skills/platform-soql-query
Command: npx skills add https://github.com/padjei/SF_Agents --skill platform-soql-query-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill empowers developers to craft efficient, secure, and maintainable SOQL queries for Salesforce, eliminating common pitfalls and enhancing overall application performance.

Core Features & Use Cases

  • Natural Language Query Generation: Convert plain English into optimized SOQL queries.
  • Query Optimization: Improve query performance by enhancing selectivity, avoiding governor limits, and adhering to best practices.
  • Security Guidance: Integrate security checks for SOQL queries to ensure data protection.
  • 100-Point Scoring: Assess the quality of generated queries based on performance, correctness, security, and readability.

Quick Start

Use the platform-soql-query skill to generate a SOQL query from natural language: "Find accounts with open opportunities created this quarter."

Frequently Asked Questions about platform-soql-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize SOQL queries to avoid hitting Salesforce governor limits?

To optimize SOQL queries and avoid Salesforce governor limits, you need to enhance query selectivity, use indexed fields, and follow best practices for performance and security. This approach ensures efficient data retrieval without exceeding platform restrictions.

Can I generate a SOQL query from natural language for Salesforce?

Yes, you can convert plain English into optimized SOQL queries for Salesforce. By translating natural language requests into precise query syntax, you can efficiently retrieve specific records like accounts with open opportunities created this quarter.

What is the best way to evaluate SOQL query performance and security?

The best way to evaluate SOQL query performance and security is using a 100-point scoring system. This assesses queries based on performance, correctness, security, and readability to ensure they adhere to Salesforce development best practices.

Do I need to know about indexed fields to write efficient SOQL?

Yes, awareness of indexed fields is required to write efficient SOQL. Knowing which fields are indexed allows you to enhance query selectivity, improve overall application performance, and maintain secure data retrieval practices in Salesforce.

Why does my SOQL query fail security checks in Salesforce?

SOQL queries fail security checks when they lack proper data protection integration. To pass security checks, queries must be analyzed for vulnerabilities and constructed with security considerations to ensure safe data access within Salesforce.