platform-report-generate
БесплатноБез исполняемых скриптовНе проверенUse when users create, generate, or validate Salesforce Lightning Report metadata (.report-meta.xml) — tabular, summary, matrix, or joined reports with…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Overview
Lightning Reports define how Salesforce data is queried, grouped, filtered, and displayed. Each report is a single .report-meta.xml file placed under reports/<FolderName>/ within the project's source directory (check sfdx-project.json → packageDirectories[].path for the source root).
Critical Rules (Read First)
REQUIRED before authoring XML: Invoke platform-metadata-api-context-get and consume only the required sections of its Report entry (fields, relevant sub_types, and targeted schema/examples as needed). These assets describe XML structure, not the target org's report-type columns; use references/column-names.md or its report-type lookup for column names.
TOP DEPLOYMENT KILLERS — check these BEFORE generating any report:
- Grouping fields in columns — Fields in
<groupingsDown>or<groupingsAcross>must NEVER also appear in<columns> - Wrong column names (REQUIRED lookup) — Before writing any
<columns>,<groupingsDown>,<groupingsAcross>, filter<column>, or chart<groupingColumn>, take every name from the table for the chosen<reportType>inreferences/column-names.md, or confirm it with the report-type lookup documented there. NEVER derive a column name from the field's API name:CASENUMBER,ISCLOSED,PHONE,MAILING_CITYall fail (useCASE_NUMBER, aSTATUSfilter,PHONE1,ADDRESS2_CITY) - Wrong scope — LeadList uses
org, notorganization - Filter column dot notation — Filter
<column>values use FLAT names (INDUSTRY,TYPE) NOT dot notation (ACCOUNT.INDUSTRYis INVALID) - Multi-value picklist filters — Use ONE
<criteriaItems>with comma-separated<value>(e.g.,Technology,Financial Services). Do NOT split into multiple criteriaItems with booleanFilter - Report
<name>over 40 characters — Count the characters before writing.Opportunities by Stage with Avg Deal Size(41 characters) fails withValue too long for field: Name maximum length is:40; use something likeOpps by Stage - Avg Deal Size - Bare
NAME/USERS.NAME— Never use a bareNAMEorUSERS.NAMEin columns or groupings; they are invalid on every standard report type. Look up the name column for the report type inreferences/column-names.md(e.g.OPPORTUNITY_NAME,FULL_NAMEfor the opportunity owner,OWNERfor Case/Lead owner,FIRST_NAME+LAST_NAME) - Unrequested or invalid
<params>— Do NOT add<params>the request didn't ask for. On Opportunity reports the only acceptedprobabilityvalue is>0(0,all,>50fail withis not one of the picklist choices); for a probability threshold, filter onPROBABILITYinstead RowCountas a column —RowCountis NOT a report column:<columns><field>RowCount</field></columns>fails withcolumns-field: Invalid value specified: RowCount. It is valid ONLY as<chartSummaries><column>RowCount</column>, as a<sortByName>value, or inside a custom summary formula's<calculatedFormula>(e.g.AMOUNT:SUM / RowCount). When the request asks for a record count, a Summary/Matrix report already shows the count per grouping — add no column; chart it withRowCountin<chartSummaries>if a chart is requested
Rule 1: Format Determines Required Elements
| Format | <groupingsDown> |
<groupingsAcross> |
<block> |
|---|---|---|---|
Tabular |
Not allowed | Not allowed | No |
Summary |
At least 1 (max 3) | Not allowed | No |
Matrix |
At least 1 (max 3) | At least 1 (max 3) | No |
Joined |
Not at top level | Not at top level | At least 2 (max 5) |
Rule 2: Use Platform Column Names
Report metadata uses platform report column names, NOT raw API field names. ALWAYS confirm valid column names using references/column-names.md or its report-type lookup. The required schema-context invocation above verifies XML structure, not report-type columns.
Rule 3: Valid Report Type Required
<reportType> must be a standard API name (e.g., Opportunity, AccountList, CaseList, LeadList, AccountContactRole for "Accounts with Contacts" — there is no AccountContact; see the label → API name table in references/column-names.md) or a deployed custom report type developer name with a __c suffix (Accounts_with_Projects.reportType-meta.xml → <reportType>Accounts_with_Projects__c</reportType>; without the suffix the deploy fails with invalid report type). Custom report type columns use $ paths, not platform names: Account$Name for the base object, Account.Projects__r$Budget_Amount__c for a joined object. See the Custom Report Types section in references/column-names.md.
Rule 4–5: Chart & Aggregates Require Summary/Matrix
Charts and <aggregateTypes> (Sum, Average, etc.) only work in Summary and Matrix reports. Use only the <chart> child elements listed in references/chart-types.md — invented elements such as `<summaryA
Установить platform-report-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл platform-report-generate?
Use when users create, generate, or validate Salesforce Lightning Report metadata (.report-meta.xml) — tabular, summary, matrix, or joined reports with columns, groupings, filters, charts, cross-filters, buckets, formulas, or time-frame filters. Triggers on "create a report", "build a report", "add a chart", or .report-meta.xml deploy errors. Do NOT trigger for Custom Report Type metadata (use platform-custom-report-type-generate), dashboards, list views, running reports in the UI, or SOQL.
Как установить скилл platform-report-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл platform-report-generate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic