/sf-platform:platform-data-managefrom Salesforce — Platform & Apex
Salesforce data operations with 130-point scoring. Use to create, update, delete, bulk import/export, generate test data, and clean up org records via sf CLI and anonymous Apex. TRIGGER on creating test data, bulk import/export, sf data CLI commands, data-factory patterns for Apex tests, or seeding/cleaning org records. DO NOT TRIGGER for SOQL query writing only (use platform-soql-query), Apex test execution (use platform-apex-test-run), or metadata deployment (use platform-metadata-deploy).
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.
Use this skill when the user needs Salesforce data work: record CRUD, bulk import/export, test data generation, cleanup scripts, or data factory patterns for validating Apex, Flow, or integration behavior.
Use platform-data-manage when the work involves:
sf data CLI commandsDelegate elsewhere when the user is:
sf-core:platform-soql-querysf-core:platform-apex-test-runsf-core:platform-metadata-deploysf-core:platform-custom-object-generate or skill sf-core:platform-custom-field-generateConfirm which mode the user wants:
| Mode | Use when |
|---|---|
| Script generation | they want reusable .apex, CSV, or JSON assets without touching an org yet |
| Remote execution | they want records created / changed in a real org now |
Do not assume remote execution if the user may only want scripts.
Ask for or infer:
platform-data-manage acts on remote org data unless the user explicitly wants local script generation.If metadata is missing, stop and hand off to:
sf-core:platform-custom-object-generate or skill sf-core:platform-custom-field-generate to create the missing schema, then skill sf-core:platform-metadata-deploy to deploy it before retrying the data operationConfirm object / field availability, org auth, and required parent records.
Before creating or updating records, use object describe data to validate:
See references/sf-cli-data-commands.md for the sf sobject describe command and jq filter patterns for inspecting fields, picklist values, and createable constraints.
| Need | Default approach |
|---|---|
| small one-off CRUD | sf data single-record commands |
| large import/export | Bulk API 2.0 via sf data ... bulk |
| parent-child seed set | tree import/export |
| reusable test dataset | factory / anonymous Apex script |
| reversible experiment | cleanup script or savepoint-based approach |
Use the built-in templates under assets/ when they fit:
assets/factories/assets/bulk/assets/cleanup/assets/soql/assets/csv/assets/json/Check counts, relationships, and record IDs after creation or update.
If creation fails:
Do not repeat the same failing command indefinitely.
Provide exact cleanup commands or rollback assets whenever data was created.
Prefer one of:
| Error | Likely cause | Default fix direction |
|---|---|---|
INVALID_FIELD | wrong field API name or FLS issue | verify schema and access |
REQUIRED_FIELD_MISSING | mandatory field omitted | include required values from describe data |
INVALID_CROSS_REFERENCE_KEY | bad parent ID | create / verify parent first |
FIELD_CUSTOM_VALIDATION_EXCEPTION | validation rule blocked the record | use valid test data or adjust setup |
| invalid picklist value | guessed value instead of describe-backed value | inspect picklist values first |
| non-writeable field error | field is not createable / updateable | remove it from the payload |
| bulk limits / timeouts | wrong tool for the volume | switch to bulk / staged import |
When finishing, report in this order:
Suggested shape:
Data operation: <create / update / delete / export / seed>
Objects: <object + counts>
Target: <org alias or local path>
Artifacts: <record ids / csv / apex / json files>
Verification: <passed / partial / failed>
Cleanup: <exact delete or rollback guidance>
| Need | Delegate to | Reason |
|---|---|---|
| create missing custom objects | skill sf-core:platform-custom-object-generate | schema must exist before data operations |
| create missing custom fields | skill sf-core:platform-custom-field-generate | field-level schema must exist before data creation |
| run bulk-sensitive Apex validation | skill sf-core:platform-apex-test-run | test execution and coverage |
| deploy missing schema first | skill sf-core:platform-metadata-deploy | metadata readiness |
| implement production Apex logic consuming the data | skill sf-core:platform-apex-generate | Apex class / trigger authoring |
| implement Flow logic consuming the data | skill sf-core:automation-flow-generate | Flow authoring and automation |
assets/factories/ — Apex test data factory scripts (account, contact, opportunity, lead, user, etc.)assets/bulk/ — Bulk API 2.0 Apex templates (insert 200, 500, 10000 records; upsert by external ID)assets/cleanup/ — Cleanup and rollback scripts (delete by name, date, pattern; transaction rollback)assets/soql/ — SOQL query templates (aggregate, subquery, parent-to-child, child-to-parent, polymorphic)assets/csv/ — CSV import templates for Account, Contact, Opportunity, custom objectsassets/json/ — JSON tree import templates (account-contact, account-opportunity, full hierarchy)| Score | Meaning |
|---|---|
| 117+ | strong production-safe data workflow |
| 104–116 | good operation with minor improvements possible |
| 91–103 | acceptable but review advised |
| 78–90 | partial / risky patterns present |
| < 78 | blocked until corrected |
README.md (opens in a new tab)assets/bulk/bulk-insert-10000.apex (opens in a new tab)assets/bulk/bulk-insert-200.apex (opens in a new tab)assets/bulk/bulk-insert-500.apex (opens in a new tab)assets/bulk/bulk-upsert-external-id.apex (opens in a new tab)assets/cleanup/delete-by-created-date.apex (opens in a new tab)assets/cleanup/delete-by-name.apex (opens in a new tab)assets/cleanup/delete-test-data.apex (opens in a new tab)assets/cleanup/rollback-transaction.apex (opens in a new tab)assets/csv/account-import.csv (opens in a new tab)assets/csv/contact-import.csv (opens in a new tab)assets/csv/custom-object-import.csv (opens in a new tab)assets/csv/opportunity-import.csv (opens in a new tab)assets/factories/account-factory.apex (opens in a new tab)assets/factories/case-factory.apex (opens in a new tab)assets/factories/contact-factory.apex (opens in a new tab)assets/factories/custom-object-factory.apex (opens in a new tab)assets/factories/event-factory.apex (opens in a new tab)assets/factories/hierarchy-factory.apex (opens in a new tab)assets/factories/lead-factory.apex (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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".Other plugins' skills for the same job