Salesforce data operations: create, update, delete, bulk import/export, generate test data, and clean up org records via sf CLI and anonymous Apex.
Ships in sf-skills. 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:
Confirm 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:
Confirm 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 | platform-custom-object-generate | schema must exist before data operations |
| create missing custom fields | platform-custom-field-generate | field-level schema must exist before data creation |
| run bulk-sensitive Apex validation | platform-apex-test-run | test execution and coverage |
| deploy missing schema first | platform-metadata-deploy | metadata readiness |
| implement production Apex logic consuming the data | platform-apex-generate | Apex class / trigger authoring |
| implement Flow logic consuming the data | 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
/sf-skills:platform-data-managefrom sf-skills
sf-skills@sf-skills-plugin is listed by ccmalcom/sf-skills-plugin — review the source before installing
npx claudepluginhub ccmalcom/sf-skills-plugin --plugin sf-skills266 skills in this plugin
/afcc-setup-coordinateOrchestrates end-to-end headless setup of Agentforce Contact Center (AFCC) on a Salesforce org. Scans the org first, presents a delta plan for approval, then sequentially provisions demo users, Omni-Channel base settings, a human queue with routing config and members, presence statuses, permission sets, a PSTN voice number, and an active PstnVoice MessagingChannel wired to the queue. Interactive at key decision points — never assumes country, number type, queue names, or user counts. TRIGGER: set up AFCC, configure Agentforce Contact Center, stand up voice contact center, AFCC migration setup, provision AFCC org headlessly./agentforce-architecture-analyzeDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable architecture document and Mermaid invocation graph from design-time metadata (not runtime audit rows). TRIGGER when user asks to describe, diagram, inventory, audit, document, or diff (e.g. v3 vs v5) the architecture / action tree / topic structure / tool inventory of a specific agent by agent API name in a specific org. DO NOT TRIGGER for runtime session traces, conversation transcripts, generation timings, or gateway audit chains — this skill reads design-time metadata only (use agentforce-d360-analyze for session traces).2 plugins in one repository ship this exact skill · first indexed Sep 23, 2026
Other plugins' skills for the same job