/sf-platform:platform-custom-report-type-generatefrom Salesforce — Platform & Apex
Creates, generates, or validates Salesforce Custom Report Type (CRT) metadata including primary/related objects, join behavior, field sections, and .reportType-meta.xml deployment.
Ships in Salesforce — Platform & Apex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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 applicableexamples/AccountProjectsWithTasks.reportType-meta.xml (opens in a new tab)examples/AccountsWithIndustry.reportType-meta.xml (opens in a new tab)examples/AccountsWithProjects.reportType-meta.xml (opens in a new tab)references/category-values.md (opens in a new tab)references/errors-and-troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-platform43 skills in this plugin
/crm-analytics-wave-generateUse to build a Wave Recipe, deploy a CRM Analytics dataset or dashboard, or author the full CRMA asset stack — apps, Wave Recipes (.wdpr), datasets, and dashboards — against a connected Salesforce org via REST and Metadata APIs, without CRM Analytics Studio or Dashboard Builder. TRIGGER when: user asks to build or create a Wave Recipe, generate a .wdpr or .wdpr-meta.xml, deploy a .wdash or .wapp, run a recipe or dataflowjob programmatically, upload CSV data via InsightsExternalData, validate a dataset schema with synthetic data, fetch dataset XMD, audit dashboard SAQL re-encoding, or find unused dataset fields. TRIGGER on keywords: Wave Recipe, CRMA, CRM Analytics, wdpr, wdash, wapp, WaveRecipe, Wave dataflow, dataflowjob, InsightsExternalData, SAQL, dataset XMD, Analytics Studio, R3 format, wave/recipes, wave/dashboards, or analytics on Salesforce objects (opportunities, leads, cases, accounts, sales). DO NOT TRIGGER for standard Salesforce reports or LWC components unrelated to CRM Analytics./design-systems-slds2-migrateMigrate Lightning Web Components from SLDS 1 to SLDS 2 by running the SLDS linter and fixing violations. Use this skill whenever users mention SLDS 2, SLDS uplift, linter violations, LWC token migration, class overrides, hardcoded CSS values that need SLDS hook replacement, or styling hook selection. Covers all styling hook categories — color, spacing, sizing, typography, borders, radius, and shadows. Also use when users mention no-hardcoded-values, no-slds-class-overrides, lwc-to-slds-hooks, no-deprecated-tokens-slds1, or ask about SLDS component migration — even if they don't explicitly say "uplift" or "migration"./design-systems-slds-validateAudit Lightning Web Components for SLDS design-system compliance and produce a scored quality report. Runs the SLDS linter and analyzes CSS for theming hook usage and pairing, scoring SLDS findings across categories into an overall grade. Use when asked to "score my component's SLDS", "SLDS scorecard", "SLDS quality report", "audit SLDS compliance", "how good is my SLDS", "check SLDS quality", "rate my SLDS styling", "evaluate my component's SLDS", "is this component's SLDS ready to ship?", "look at my LWC for SLDS issues", "audit SLDS before I submit", "review my component's SLDS before code review", or any time a user wants an SLDS quality assessment or SLDS production-readiness check on an LWC. Not for fixing violations (use design-systems-slds2-migrate), building new components (use design-systems-slds-apply), or accessibility/WCAG/ARIA audits (use experience-accessibility-validate)./dx-apexguru-scanRun an ApexGuru performance scan on a Salesforce Apex project via the ApexGuru SFAP Scan API. Zips the project's Apex (any layout), submits it, polls to completion, decodes the base64 report, and presents performance antipattern violations (SOQL in loop, DML in loop, Schema.getGlobalDescribe(), SOQL without WHERE/LIMIT, unused SOQL fields) grouped by rule with severity, file:line, and suggested fixes — clearly attributed as 'Static only' or 'Production insights'. TRIGGER when the user says 'run ApexGuru', 'ApexGuru scan', 'check Apex performance', 'find governor-limit / performance antipatterns', 'SOQL in loop', 'scan my Apex for performance', or 'ApexGuru performance insights'. DO NOT TRIGGER for general static analysis or security scans (use dx-code-analyzer-run), for fixing code without scanning, or for onboarding an org to ApexGuru./dx-code-analyzer-configureSet up, configure, and troubleshoot Salesforce Code Analyzer for any project. Handles installation, prerequisite checks, diagnosing broken setups, creating and editing code-analyzer.yml overrides, engine-specific settings, ignore patterns, severity overrides, and CI/CD pipeline setup. TRIGGER when: user says 'set up code analyzer', 'configure code analyzer', 'install code analyzer', 'code analyzer not working', 'fix my setup', 'scan failing', 'check my setup', 'enable/disable engine', 'exclude files', 'change severity', 'set up GitHub Actions', 'set up CI/CD', 'add to pipeline', 'pipeline fail', 'update my workflow', 'quality gate', 'fail on violations', 'scan changed files only', 'add SARIF', 'code-analyzer.yml', 'ESLint config', 'increase SFGE memory', or reports errors running Code Analyzer. DO NOT TRIGGER when: user wants to run a scan (use dx-code-analyzer-run), fix violations, explain rules, create custom rules (use dx-code-analyzer-custom-rule-create), or suppress violations./dx-code-analyzer-custom-rule-createCreate custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript). Use when users want to enforce coding standards, ban patterns, detect hardcoded values, govern metadata, or add rules not in the built-in set. TRIGGER when: user says 'create a rule', 'ban System.debug', 'enforce naming convention', 'detect hardcoded IDs', 'custom rule', 'xpath rule', 'regex rule', 'add a PMD rule', 'enforce a policy', 'create a check for', 'flag this pattern', 'make a rule that catches', 'metadata rule', 'check permissions', 'enforce API version', 'eslint rule', 'lwc rule', 'override rule threshold', 'customize complexity', or describes a pattern to enforce. DO NOT TRIGGER when: user wants to run a scan (use dx-code-analyzer-run), configure engines (use dx-code-analyzer-configure), or explain existing rules (use dx-code-analyzer-run).3 plugins in 2 repositories ship this exact skill · first indexed Sep 23, 2026
Other plugins' skills for the same job