Soql Lib Query Builder
beyond-the-cloud-dev/soql-lib
Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).
A skill your agent uses to create, generate, or validate Salesforce Custom Report Type metadata.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-report-type-generate --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/platform-custom-report-type-generate .claude/skills/platform-custom-report-type-generate && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "platform-custom-report-type-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-report-type-generate into .claude/skills/platform-custom-report-type-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-report-type-generate", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-report-type-generateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-report-type-generate --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/platform-custom-report-type-generate .agents/skills/platform-custom-report-type-generate && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "platform-custom-report-type-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-report-type-generate into .agents/skills/platform-custom-report-type-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-report-type-generate", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-report-type-generate --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/platform-custom-report-type-generate .cursor/skills/platform-custom-report-type-generate && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "platform-custom-report-type-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-report-type-generate into .cursor/skills/platform-custom-report-type-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-report-type-generate", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/forcedotcom/sf-skills.git --path skills/platform-custom-report-type-generate--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-report-type-generate --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/platform-custom-report-type-generate .gemini/skills/platform-custom-report-type-generate && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "platform-custom-report-type-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-report-type-generate into .gemini/skills/platform-custom-report-type-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-report-type-generate", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install forcedotcom/sf-skills platform-custom-report-type-generateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/platform-custom-report-type-generate .github/skills/platform-custom-report-type-generate && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "platform-custom-report-type-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-report-type-generate into .github/skills/platform-custom-report-type-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-report-type-generate", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-report-type-generate --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/platform-custom-report-type-generate .opencode/skills/platform-custom-report-type-generate && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "platform-custom-report-type-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-report-type-generate into .opencode/skills/platform-custom-report-type-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-report-type-generate", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
platform-custom-report-type-generateA skill your agent uses to create, generate, or validate Salesforce Custom Report Type metadata.
Platform Custom Report Type Generate is an agent skill from forcedotcom/sf-skills. Use to create, generate, or validate Salesforce Custom Report Type metadata. Trigger on custom report types, CRTs, cross-object reports, report builder data sources, exposing fields for reporting across related objects, inner vs outer joins in reports, report type categories, or deployment errors for .reportType-meta.xml files. Do NOT trigger for running, editing, or filtering existing reports; creating report folders, dashboards, or list views; or non-authoring reporting questions.
Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/category-values.md` and `references/errors-and-troubleshooting.md`).
It sits in Sales & Support, covering CRM management. It works with Salesforce. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5164d9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are xml).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
soap.sforce.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Platform Custom Report Type Generate loads about 3.5k tokens when it runs, and up to ~4.5k if it reads all its reference files. Until then it costs about 131 tokens; SKILL.md has 1,613 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from forcedotcom/sf-skills at commit e5164d9, republished under its Apache-2.0 licence (© forcedotcom). 1,613 words, ~3,529 tokens.
.claude/skills/platform-custom-report-type-generate/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Custom Report Types (CRTs) define the data framework for Salesforce reports. They specify a primary object, up to 3 related objects, the relationship (join) between them, and which fields are available in the report builder.
File extension: .reportType-meta.xml. The file basename is the report type's developer name (e.g. AccountsWithProjects.reportType-meta.xml). Each CRT is a single file, not nested under an object folder.
Top-level <ReportType> children:
| Element | Required | Notes |
|---|---|---|
<fullName> | Yes | API identifier; must match the file name. Letters, numbers, underscores; must begin with a letter; no spaces; no trailing underscore; no consecutive underscores |
<label> | Yes | Human-friendly name shown in the report type picker |
<description> | Recommended | State the business "why" — who uses this and what they learn |
<baseObject> | Yes | API name of the primary object (e.g. Account, Project__c). Cannot be changed after initial creation. All objects, including custom and external, are supported (external objects from API 38.0+) |
<category> | Recommended | Report builder category — see references/category-values.md |
<deployed> | Yes | true to expose to users; false while building/iterating |
<join> | Conditional | Adds a related object and its join behavior. Nest further <join> blocks for deeper relationships |
<sections> | Recommended | Groups of columns available to the report type. Though not strictly required, a report without columns isn't useful |
<sections> (group of columns) sub-elements:
| Element | Required | Notes |
|---|---|---|
<masterLabel> | Yes | Section heading shown in the report builder |
<columns> | Conditional | One per field exposed in the section |
<columns> (single field) sub-elements:
| Element | Required | Notes |
|---|---|---|
<field> | Yes | Field API name (or dotted lookup-traversal path) |
<table> | Yes | The object the field belongs to — base object name or dotted relationship path |
<checkedByDefault> | Yes | true if the column is selected by default in the report builder |
<displayNameOverride> | No | Custom column label shown in the report builder, overriding the field's default label |
<fullName> Is Present, It Must Match the File NameIn source format, fullName is inherited from Metadata and derived from the file name, so the <fullName> element is technically optional. The repo convention is to include it. If you include <fullName>, its value must equal the file name (everything before .reportType-meta.xml) exactly — same characters, same casing, same underscores.
Wrong — file name and <fullName> differ:
account_projects.reportType-meta.xml<fullName>AccountProjects</fullName>
(Mismatch: file uses account_projects, fullName uses AccountProjects)Right — file name and <fullName> are identical:
AccountProjects.reportType-meta.xml<fullName>AccountProjects</fullName>outerJoin Controls InclusionEach <join> block has an <outerJoin> element that determines which primary records appear in the report:
<outerJoin> value | Behavior | Report Builder Label |
|---|---|---|
false | Inner join — only primary records that HAVE at least one related record | "Each 'A' record must have at least one related 'B' record" |
true | Outer join — all primary records, with or without related records | "'A' records may or may not have related 'B' records" |
Default when unspecified: Use true (outer join) when the user wants to see all primary records regardless of children. Use false when the report only makes sense if children exist.
<sections> BlockEvery object in the CRT (primary + each joined object) must have a corresponding <sections> block that lists the fields exposed for reporting. Without a section for an object, none of its fields appear in the report builder.
<masterLabel> on each section is the section heading in the report builder<columns> entries list the fields — each with a <field> (API name) and <table> (object API name)<field> (e.g. Owner.Name with <table> set to the owning object)Use exact API names for fields: standard fields use their defined names (Name, CreatedDate, OwnerId), custom fields use Field__c. Custom objects must include __c.
Wrong:
<field>Account Name</field>Right:
<field>Name</field> with <table>Account</table>When adding a <join>, the <relationship> element must use the child relationship name as defined on the lookup/master-detail field pointing from the child object to the parent. For custom relationships, this typically ends in __r.
Wrong:
<relationship>Project</relationship> (for a custom child relationship)Right:
<relationship>Projects__r</relationship> (child relationship name)<relationship>Contacts</relationship> (standard, non-custom child relationship)A single CRT can join a maximum of four objects total (the base object + up to 3 additional objects via nested <join> blocks).
Once the join chain contains an outer join (<outerJoin>true</outerJoin>), every subsequent nested join must also be an outer join. An inner join that follows an outer join earlier in the sequence is not allowed.
Wrong:
<join>
<outerJoin>true</outerJoin> <!-- outer join first -->
<relationship>Contacts</relationship>
<join>
<outerJoin>false</outerJoin> <!-- WRONG: inner join after outer -->
<relationship>Assets</relationship>
</join>
</join>Right:
<join>
<outerJoin>true</outerJoin>
<relationship>Contacts</relationship>
<join>
<outerJoin>true</outerJoin> <!-- outer stays outer -->
<relationship>Assets</relationship>
</join>
</join><table> for Joined Objects Uses Dotted PathIn <sections>, the <table> element identifies which object in the join chain each column belongs to. For the base object, use the object name directly (e.g. Account). For joined objects, use the dotted relationship path from the base object.
| Object in chain | <table> value |
|---|---|
| Base (Account) | Account |
| First join (Account → Contacts) | Account.Contacts |
| Nested join (Account → Contacts → Assets) | Account.Contacts.Assets |
<field> values may reference fields reached via lookup relationships using dot notation — for example Owner.Email (owner User's email) or ReportsTo.CreatedBy.Contact.Owner.MobilePhone. The <table> must still be the object that owns the starting field.
_hst SuffixFor a field with trackTrending=true, the API name in <field> and <table> uses the _hst suffix:
<columns>
<checkedByDefault>false</checkedByDefault>
<field>Field2__c_hst</field>
<table>CustomTrendedObject__c.CustomTrendedObject__c_hst</table>
</columns>Once deployed, the <baseObject> of a CRT is locked. To change the primary object, create a new CRT and retire the old one.
autogenerated Is Reserved for Historical TrendingThe <autogenerated> element (API 29.0+) marks CRTs that Salesforce created automatically when historical trending was enabled on an object. Do not set this manually on hand-authored CRTs.
Account, Project__c)deployed=true now or stays deployed=false during iterationDocument before authoring:
fullName and labelbaseObjectdeployed stateStart from the closest example in examples/ and adapt it to the user's scenario:
examples/AccountsWithIndustry.reportType-meta.xmlexamples/AccountsWithProjects.reportType-meta.xmlexamples/AccountProjectsWithTasks.reportType-meta.xmlName the file <DeveloperName>.reportType-meta.xml.
xmlns="http://soap.sforce.com/2006/04/metadata").reportType-meta.xml) matches <fullName> when <fullName> is included<baseObject> is a valid API name and the object is deployed<relationship> uses the correct child relationship name (__r suffix for custom)<sections> is part of the CRT (primary or joined)<field> references exist on the parent <table> and use API names (not labels)<category> is a valid Salesforce category value<deployed> is true if users need to access the CRT immediately| File | When to read |
|---|---|
examples/AccountsWithIndustry.reportType-meta.xml | Step 2 / Step 4 — primary-object-only template |
examples/AccountsWithProjects.reportType-meta.xml | Step 2 / Step 4 — outer-join template (primary included even without children) |
examples/AccountProjectsWithTasks.reportType-meta.xml | Step 2 / Step 4 — nested inner-join template (every level requires children) |
references/category-values.md | Step 3 — to choose a valid <category> value from the ReportTypeCategory enum |
references/errors-and-troubleshooting.md | When fields don't appear in the report builder or join requirements conflict |
.reportType-meta.xml<fullName> is included, it matches the file basename exactly (same characters, casing, and underscores)<label> is human-readable and under 40 characters<description> explains the business purpose<baseObject> uses a valid API name and that object is deployed<category> is a valid ReportTypeCategory enum value<deployed> is set appropriately (true for user access, false for in-progress iteration)<autogenerated> is NOT set manually (reserved for historical-trending CRTs)<join> uses the correct child relationship name (not the lookup field API name)__r suffix<outerJoin> is set intentionally: true = optional children, false = required children<outerJoin>false</outerJoin>) appears after an outer join earlier in the sequence<sections> block<masterLabel> on each section is descriptive<columns> has both <field> (API name) and <table> (object API name or dotted path)<checkedByDefault> is set for each column<table> for base object is the object API name (e.g. Account)<table> for joined objects uses the dotted relationship path (e.g. Account.Projects__r, Account.Projects__r.Tasks__r)__cOwner.Email) with <table> set to the object owning the starting field_hst suffix in both <field> and <table> when applicable© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (references) in skills/platform-custom-report-type-generate of forcedotcom/sf-skills.
Open the folder on GitHubat commit e5164d9
Platform Custom Report Type Generate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Platform Custom Report Type Generate this skillforcedotcom/sf-skills | 1.1k | — | ~3.5k | Automated safety check: Pass | Apache-2.0 | |
| Soql Lib Query Builderbeyond-the-cloud-dev/soql-lib | 154 | — | ~4.3k | Automated safety check: Pass | MIT | |
| Sf DatacloudJaganpro/sf-skills | 424 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Soql Lib Selectorbeyond-the-cloud-dev/soql-lib | 154 | — | ~2k | Automated safety check: Pass | MIT | |
| Dev SetupPortwood-Global-Solutions/Portwood | 125 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Sf FlowJaganpro/sf-skills | 424 | — | ~1.8k | Automated safety check: Pass | MIT |
beyond-the-cloud-dev/soql-lib
Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).
Jaganpro/sf-skills
Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows.
beyond-the-cloud-dev/soql-lib
Creates Salesforce Apex selector classes using the SOQL Lib selector pattern.
Portwood-Global-Solutions/Portwood
Get from a fresh clone of Portwood to a working, fully-tested Salesforce org.
Jaganpro/sf-skills
Creates and validates Salesforce Flows with 110-point scoring.
gmapsscraper/google-maps-agent-skills
Export Google Maps business data to CSV, JSON, or CRM format (HubSpot, Pipedrive, Salesforce).
forcedotcom/sf-skills
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.
forcedotcom/sf-skills
Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.
forcedotcom/sf-skills
Lightning Web Components with PICKLES methodology and 165-point scoring.
Works with
Categories
A skill your agent uses to create, generate, or validate Salesforce Custom Report Type metadata. Platform Custom Report Type Generate is an agent skill from forcedotcom/sf-skills. Use to create, generate, or validate Salesforce Custom Report Type metadata.
Platform Custom Report Type Generate fits situations like: validate Salesforce Custom Report Type metadata; custom report types; cross-object reports; report builder data sources.
Run `npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a claude-code`. Or copy the skill folder (skills/platform-custom-report-type-generate in forcedotcom/sf-skills) into .claude/skills/platform-custom-report-type-generate in your project. Claude Code loads it when a task matches its description.
Run `npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a codex`. Or copy the skill folder (skills/platform-custom-report-type-generate in forcedotcom/sf-skills) into .agents/skills/platform-custom-report-type-generate in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill platform-custom-report-type-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/platform-custom-report-type-generate, .gemini/skills/platform-custom-report-type-generate, .github/skills/platform-custom-report-type-generate and .opencode/skills/platform-custom-report-type-generate in your project.
SKILL.md names no scripts, command-line tools or credentials: Platform Custom Report Type Generate is instructions for the agent only.
SKILL.md names 1 domain. In commands or code: soap.sforce.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Platform Custom Report Type Generate is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Platform Custom Report Type Generate: Soql Lib Query Builder (beyond-the-cloud-dev/soql-lib, 154 stars), Sf Datacloud (Jaganpro/sf-skills, 424 stars), Soql Lib Selector (beyond-the-cloud-dev/soql-lib, 154 stars) and Dev Setup (Portwood-Global-Solutions/Portwood, 125 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,060 GitHub stars. The repository holds 251 skills in this directory. The repository was last updated on October 7, 2026.
Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.