Skip to content

forcedotcom/sf-skills / plugins/builder/consumer-goods/skills/consumer-goods-accruals-datakit-deploy

consumer-goods-accruals-datakit-deploy

Verified

Use this skill to deploy the TPM Liability Accruals data kit end to end to a Salesforce org. Invoke when a customer or teammate wants to install the accrual engine, verify the Data Cloud connection, deploy the Data Kit components, and schedule the export and accrual calculation chain. Trigger phrases include: 'deploy the accrual data kit', 'set up liability accruals', 'install TPM accruals', 'headless accruals setup', 'configure the Data Cloud export connector', 'schedule the accrual chain'. Do NOT use for creating a Data Space alone (use platform-dataspace-access-configure), for generic Salesforce metadata deployment (use platform-metadata-deploy), for querying org data only (use platform-soql-query), or when setting up the data kit for the Trade Promotion Effectiveness (TPE) feature (use consumer-goods-tpe-datakit-deploy instead).

scripts/steps/00-check-prerequisites.js

View on GitHub
const readline = require('readline');



/**

 * Step 0: Check Prerequisites

 * Presents prerequisites to the user and waits for confirmation

 */

async function checkPrerequisites() {

  console.log('\n=== Step 0: Prerequisites ===');



  console.log('\nBefore proceeding with the setup, please ensure the following prerequisites are met:');

  console.log('\n1. Enable Data Cloud and Analytics Studio');

  console.log('   - Navigate to Setup > Data Cloud Setup');

  console.log('   - Ensure Data Cloud and Analytics Studio are enabled');

  console.log('\n2. Ensure there is a user assigned in the Processing Services Pairing app to the Accrual Ingestion Process');

  console.log('   - The user must have the Data Cloud Architect permission set');

  console.log('   - Alternatively, a System Admin or user with Data Cloud Architect can be assigned to all processes');

  console.log('\n3. Ensure the connected app or external client app for TPM Offcore has the oauth scope "cdp_ingest_api"');

  console.log('   - Navigate to Setup > App Manager');

  console.log('   - Edit your connected app and verify the oauth scope includes "cdp_ingest_api"');

  console.log('   - Note: Depending on your org setup, this permission may already be included');



  console.log('\n');



  // Wait for user confirmation

  await waitForUserConfirmation();



  console.log('[OK] Prerequisites confirmed. Proceeding to next step...\n');

}



/**

 * Wait for user to press Enter

 */

function waitForUserConfirmation() {

  return new Promise((resolve) => {

    const rl = readline.createInterface({

      input: process.stdin,

      output: process.stdout

    });



    rl.question('Press Enter when you have confirmed all prerequisites are met...', () => {

      rl.close();

      resolve();

    });

  });

}



module.exports = checkPrerequisites;

writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse 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 .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall