crm-analytics-wave-generate
БесплатноЗапускает вложенные скриптыНе проверенUse 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…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Authoring CRM Analytics Assets
End-to-end workflow for authoring the full CRM Analytics asset stack — application, Wave Recipe, dataset, and Wave Dashboard — against a Salesforce org from a local SFDX project, without the UI.
Scope
- In scope: WaveApplication, WaveRecipe (R3 format), Wave datasets (recipe-driven + CSV upload via InsightsExternalData), Wave Dashboards (.wdash deploy + PATCH styling), SAQL step authoring, dataset XMD inspection, dashboard auditing.
- Out of scope: Standard Salesforce reports/dashboards, LWC analytics bridge components, Tableau CRM managed packages, org provisioning.
Decision Tree — Pick the Right Method
Before acting, read references/method-decision-tree.md to select the correct API path for the user's goal. Wrong method choices (e.g. multipart upload instead of R3 JSON body) cause silent failures that are hard to diagnose.
Required Inputs
- Authenticated org alias (verify with
sf org display -o <alias> --json) - Target CRMA app name (folder developer name)
- Recipe or dashboard name and output dataset alias
- Source sObjects to load (API names, e.g.
Opportunity,Account) - Field list per sObject
- Transformation intent: formula fields, aggregations, filter conditions
Defaults:
- Local Salesforce connector name:
SFDC_LOCAL(verify viaGET /wave/dataConnectors) - API version: use
result.apiVersionfromsf org display - Node.js binary:
/usr/local/lib/sf/bin/node(bundled with sf CLI)
Workflow
Phase Selection
Before starting, identify the user's goal and determine which phases to run:
| User goal | Phases to run |
|---|---|
| Build or update a recipe and dataset | 0 → 1 → 2 |
| Validate recipe output schema after run | 0 → 1 → 2 → 3 |
| Build or update a dashboard | 0 → 1 → 2 → 4 |
| Full end-to-end: recipe + validation + dashboard | 0 → 1 → 2 → 3 → 4 |
| Audit dataset for unused fields / stale SAQL | 0 → 1 → 5 |
Execute only the phases in the selected path. Do not revisit this table mid-workflow.
Phase 0 — Bootstrap Scripts
- Check for helper scripts — before running any script referenced in this workflow, verify the
scripts/directory exists in the skill root. All 11 scripts listed inreferences/scripts-reference.mdare bundled with this skill. If a script is somehow missing, check that the skill was installed from the full repo (not a partial clone). Do not regenerate scripts from the descriptions — the implementations are authoritative.
Phase 1 — Setup
Verify org connection — run
sf org display -o <alias> --json. CaptureaccessTokenandinstanceUrl. If EPERM error, shell is sandboxed — re-run with full permissions.Look up or create the CRMA app — run
scripts/create_app.js <alias> <appName>. The script lists existing folders and only creates if missing. Do NOT includeassetIcon.
Phase 2 — Recipe Authoring
Read the R3 node schema — load
references/r3-node-schema.mdbefore writing any recipe JSON. Every node shape, critical field rule, and formula gotcha is documented there.Author the recipe JSON — the
.wdprfile contains only therecipeDefinitionobject (thenodesmap,runMode, anduisection). Do NOT wrap it in an API envelope (fileFormat,label,name,recipe: {}) — the deploy script reads this file directly as therecipeDefinitionbody; wrapping it causes the wrong JSON structure to be POSTed at?format=R3, leavingtargetDataflowIdnull. Save toforce-app/main/default/wave/<RecipeName>.wdpr. Key rules:runModemust be"full"for generated recipes — NOT"R3"(which is only used as a query param on the API endpoint). Use"incremental"instead of"full"for large objects where reprocessing the entire source on every run is too slow; use"streaming"for near-real-time pipelines."full"is the safe default for new recipes.- Use
sources(array), neversource(singular) - One field per formula node — chain them in sequence
- Use
expressionType: "SQL"andtype: "NUMBER"ortype: "TEXT"on formula fields - For text date dimensions use
date_format(field, 'yyyy')ordate_format(field, 'MM/yyyy') - Formula node action is
"formula"— NOT"computeExpression","augmentColumns", or"transform". Fields array key is"fields"(NOT"columns"). Expression key is"formulaExpression"(NOT"expression"). Do NOT use backtick quotes around field names in expressions. - Insert an
EXTRACT0(extractGrains) node between the last formula node and aggregate - Use the Designer-native
uisection format — readreferences/ui-section-template.md
CRITICAL — top-level
.wdprfile structure.nodesis a ROOT-LEVEL object with UPPERCASE string keys. Do NOT put nodes insideui. Do NOT use an array forui.nodes. The file has exactly three top-level keys:runMode,nodes,ui. Seeexamples/wdpr-skeleton.wdprfor a minimal 5-node skeleto
Установить crm-analytics-wave-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл crm-analytics-wave-generate?
Use 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.
Как установить скилл crm-analytics-wave-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл crm-analytics-wave-generate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic