Agent skill

Platform Data Manage

by forcedotcom in forcedotcom/sf-skills

Salesforce data operations with 130-point scoring. An agent skill from forcedotcom/sf-skills.

Apache-2.0Auto-check passedTesting & QA

Install Platform Data Manage

skills CLI
$ npx skills add forcedotcom/sf-skills --skill platform-data-manage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/sf-skills platform-data-manage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/platform-data-manage .claude/skills/platform-data-manage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
platform-data-manage
GitHub stars
1.1k
Token cost
~2.7k tokens
SKILL.md length
930 words
Files
52 (incl. scripts, references, assets)
Skills in repo
251
Repo updated
First seen
Licence
Apache-2.0

At a glance

Salesforce data operations with 130-point scoring. An agent skill from forcedotcom/sf-skills.

  • Works in 7 steps: Verify prerequisites → Run describe-first pre-flight validation… → Choose the smallest correct mechanism → …
  • Bulk import/export
  • SKILL.md covers When This Skill Owns the Task, Important Mode Decision, Required Context to Gather First and Core Operating Rules, plus 7 more sections
  • Calls sf; needs INVALID_CROSS_REFERENCE_KEY

What it does

Platform Data Manage is an agent skill from forcedotcom/sf-skills. 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).

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 56 other files, including scripts, reference files and assets (for example `README.md`).

It sits in Testing & QA, covering Test data and fixtures, CRM management and Test generation. It works with Salesforce. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.

When your agent uses it

  • Bulk import/export
  • Generate test data
  • Clean up org records via sf CLI and anonymous Apex
  • Creating test data

Example prompts

  • “/platform-data-manage”

Requirements

  • A credential in INVALID_CROSS_REFERENCE_KEY

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Verify prerequisites
  2. Run describe-first pre-flight validation when schema is uncertain
  3. Choose the smallest correct mechanism
  4. Execute or generate assets
  5. Verify results
  6. Apply a bounded retry strategy
  7. Leave cleanup guidance

What it can do on your machine

Read from SKILL.md and the folder at commit e5164d9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • sf

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • INVALID_CROSS_REFERENCE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Platform Data Manage loads about 2.7k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 129 tokens; SKILL.md has 930 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~129
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from forcedotcom/sf-skills at commit e5164d9, republished under its Apache-2.0 licence (© forcedotcom). 930 words, ~2,692 tokens.

Download SKILL.mdSave it as .claude/skills/platform-data-manage/SKILL.md (or your agent's skills folder). This skill also uses 51 other files; get the full folder from GitHub.
name
platform-data-manage
description
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).
metadata.version
1.1
metadata.domains
Platform
metadata.relatedSkills
automation-flow-generate, platform-apex-generate, platform-apex-test-run, platform-custom-field-generate, platform-custom-object-generate…

Salesforce Data Operations Expert (platform-data-manage)

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.

When This Skill Owns the Task

Use platform-data-manage when the work involves:

  • sf data CLI commands
  • record creation, update, delete, upsert, export, or tree import/export
  • realistic test data generation
  • bulk data operations and cleanup
  • Apex anonymous scripts for data seeding / rollback

Delegate elsewhere when the user is:


Important Mode Decision

Confirm which mode the user wants:

ModeUse when
Script generationthey want reusable .apex, CSV, or JSON assets without touching an org yet
Remote executionthey want records created / changed in a real org now

Do not assume remote execution if the user may only want scripts.


Required Context to Gather First

Ask for or infer:

  • target object(s)
  • org alias, if remote execution is required
  • operation type: query, create, update, delete, upsert, import, export, cleanup
  • expected volume
  • whether this is test data, migration data, or one-off troubleshooting data
  • any parent-child relationships that must exist first

Core Operating Rules

  • platform-data-manage acts on remote org data unless the user explicitly wants local script generation.
  • Objects and fields must already exist before data creation.
  • For automation testing, prefer 251+ records when bulk behavior matters.
  • Plan cleanup before creating large or noisy datasets — untracked records accumulate across runs and pollute org state.
  • Use synthetic, non-identifying data in test records — real PII creates compliance risk and cannot be safely removed after bulk import.
  • Prefer CLI-first for straightforward CRUD; use anonymous Apex when the operation truly needs server-side orchestration.

If metadata is missing, stop and hand off to:


1. Verify prerequisites

Confirm object / field availability, org auth, and required parent records.

2. Run describe-first pre-flight validation when schema is uncertain

Before creating or updating records, use object describe data to validate:

  • required fields
  • createable vs non-createable fields
  • picklist values
  • relationship fields and parent requirements

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.

3. Choose the smallest correct mechanism
NeedDefault approach
small one-off CRUDsf data single-record commands
large import/exportBulk API 2.0 via sf data ... bulk
parent-child seed settree import/export
reusable test datasetfactory / anonymous Apex script
reversible experimentcleanup script or savepoint-based approach
4. Execute or generate assets

Use the built-in templates under assets/ when they fit:

  • assets/factories/
  • assets/bulk/
  • assets/cleanup/
  • assets/soql/
  • assets/csv/
  • assets/json/
5. Verify results

Check counts, relationships, and record IDs after creation or update.

6. Apply a bounded retry strategy

If creation fails:

  1. try the primary CLI shape once
  2. retry once with corrected parameters
  3. re-run describe / validate assumptions
  4. pivot to a different mechanism or provide a manual workaround

Do not repeat the same failing command indefinitely.

7. Leave cleanup guidance

Provide exact cleanup commands or rollback assets whenever data was created.


High-Signal Rules

Bulk safety
  • use bulk operations for large volumes
  • test automation-sensitive behavior with 251+ records where appropriate
  • avoid one-record-at-a-time patterns for bulk scenarios
Show full SKILL.md (381 more words)Show less
Data integrity
  • include required fields
  • validate picklist values before creation
  • verify parent IDs and relationship integrity
  • account for validation rules and duplicate constraints
  • exclude non-createable fields from input payloads
Cleanup discipline

Prefer one of:

  • delete-by-ID
  • delete-by-pattern
  • delete-by-created-date window
  • rollback / savepoint patterns for script-based test runs

Common Failure Patterns

ErrorLikely causeDefault fix direction
INVALID_FIELDwrong field API name or FLS issueverify schema and access
REQUIRED_FIELD_MISSINGmandatory field omittedinclude required values from describe data
INVALID_CROSS_REFERENCE_KEYbad parent IDcreate / verify parent first
FIELD_CUSTOM_VALIDATION_EXCEPTIONvalidation rule blocked the recorduse valid test data or adjust setup
invalid picklist valueguessed value instead of describe-backed valueinspect picklist values first
non-writeable field errorfield is not createable / updateableremove it from the payload
bulk limits / timeoutswrong tool for the volumeswitch to bulk / staged import

Output Format

When finishing, report in this order:

  1. Operation performed
  2. Objects and counts
  3. Target org or local artifact path
  4. Record IDs / output files
  5. Verification result
  6. Cleanup instructions

Suggested shape:

text
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>

Cross-Skill Integration

NeedDelegate toReason
create missing custom objectsplatform-custom-object-generateschema must exist before data operations
create missing custom fieldsplatform-custom-field-generatefield-level schema must exist before data creation
run bulk-sensitive Apex validationplatform-apex-test-runtest execution and coverage
deploy missing schema firstplatform-metadata-deploymetadata readiness
implement production Apex logic consuming the dataplatform-apex-generateApex class / trigger authoring
implement Flow logic consuming the dataautomation-flow-generateFlow authoring and automation

Reference Map

Start here
Query / bulk / cleanup
Examples / limits
Validation scripts
Asset templates
  • 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 objects
  • assets/json/ — JSON tree import templates (account-contact, account-opportunity, full hierarchy)

Score Guide

ScoreMeaning
117+strong production-safe data workflow
104–116good operation with minor improvements possible
91–103acceptable but review advised
78–90partial / risky patterns present
< 78blocked until corrected

© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 51 other files (scripts, references, assets) in skills/platform-data-manage of forcedotcom/sf-skills.

  • SKILL.md
  • README.md
  • assets/bulk/bulk-insert-10000.apex
  • assets/bulk/bulk-insert-200.apex
  • assets/bulk/bulk-insert-500.apex
  • assets/bulk/bulk-upsert-external-id.apex
  • assets/cleanup/delete-by-created-date.apex
  • assets/cleanup/delete-by-name.apex
  • assets/cleanup/delete-test-data.apex
  • assets/cleanup/rollback-transaction.apex
  • assets/csv/account-import.csv
  • assets/csv/contact-import.csv
  • assets/csv/custom-object-import.csv
  • assets/csv/opportunity-import.csv
  • assets/factories/account-factory.apex
  • assets/factories/case-factory.apex
  • … and 36 more

Open the folder on GitHubat commit e5164d9

Compare with similar skills

Platform Data Manage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Platform Data Manage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Platform Data Manage this skillforcedotcom/sf-skills1.1k—~2.7kAutomated safety check: PassApache-2.0
Sf DataJaganpro/sf-skills424—~2.1kAutomated safety check: PassMIT
Soql Lib Testingbeyond-the-cloud-dev/soql-lib154—~2.1kAutomated safety check: PassMIT
Skill Doli Test InteractiveDolibarr/dolibarr7.7k1 repos~5.5kAutomated safety check: PassGPL-3.0
Eval Designagentscope-ai/OpenJudge868—~2.8kAutomated safety check: WarnApache-2.0
Sf DeployJaganpro/sf-skills424—~2kAutomated safety check: PassMIT

Similar skills

  • Sf Data

    Jaganpro/sf-skills

    Salesforce data operations with 130-point scoring. An agent skill from Jaganpro/sf-skills.

    424 GitHub stars~2.1k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Soql Lib Testing

    beyond-the-cloud-dev/soql-lib

    Writes unit tests for Salesforce Apex code that uses SOQL Lib (SOQL.cls).

    154 GitHub stars~2.1k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Create interactive PHP test case scripts for Dolibarr ERP/CRM that allow users to setup test data, view results via direct links, and tear down (clean up) the data.

    7.7k GitHub starsUsed in 1 repo~5.5k tokens
    Testing & QAAuto-check passed
  • Eval Design

    agentscope-ai/OpenJudge

    A skill your agent uses when the user needs to design evaluation datasets, create test cases, stratify samples, generate adversarial examples, extract eval dimensions from traces/specs, or build a…

    868 GitHub stars~2.8k tokensUpdated 27 days ago
    Testing & QAAuto-check: warnings
  • Sf Deploy

    Jaganpro/sf-skills

    Salesforce DevOps automation using sf CLI v2. An agent skill from Jaganpro/sf-skills.

    424 GitHub stars~2k tokensUpdated 5 mo ago
    DevOps & CloudAuto-check passed
  • Sf Vlocity Build Deploy

    Jaganpro/sf-skills

    Salesforce Industries DataPack deployment automation using Vlocity Build.

    424 GitHub stars~1.7k tokensUpdated 5 mo ago
    DevOps & CloudAuto-check passed

More from forcedotcom/sf-skills

All 251 skills in this repo
  • Agentforce Architecture Analyze

    forcedotcom/sf-skills

    Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.

    1.1k GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • Agentforce D360 Analyze

    forcedotcom/sf-skills

    Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.

    1.1k GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.3k tokensUpdated today
    Auto-check: notes
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.4k tokensUpdated today
    Auto-check: notes
  • Design Systems Slds Apply

    forcedotcom/sf-skills

    Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.

    1.1k GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Experience Lwc Generate

    forcedotcom/sf-skills

    Lightning Web Components with PICKLES methodology and 165-point scoring.

    1.1k GitHub stars~2.4k tokensUpdated today
    Auto-check passed

Works with

Questions about Platform Data Manage

What does Platform Data Manage do?

Salesforce data operations with 130-point scoring. An agent skill from forcedotcom/sf-skills. Platform Data Manage is an agent skill from forcedotcom/sf-skills. Salesforce data operations with 130-point scoring.

When should I use Platform Data Manage?

Platform Data Manage fits situations like: bulk import/export; generate test data; clean up org records via sf CLI and anonymous Apex; creating test data.

How do I install Platform Data Manage in Claude Code?

Run `npx skills add forcedotcom/sf-skills --skill platform-data-manage -a claude-code`. Or copy the skill folder (skills/platform-data-manage in forcedotcom/sf-skills) into .claude/skills/platform-data-manage in your project. Claude Code loads it when a task matches its description.

How do I install Platform Data Manage in Codex?

Run `npx skills add forcedotcom/sf-skills --skill platform-data-manage -a codex`. Or copy the skill folder (skills/platform-data-manage in forcedotcom/sf-skills) into .agents/skills/platform-data-manage in your project. Codex loads it when a task matches its description.

Can I use Platform Data Manage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill platform-data-manage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/platform-data-manage, .gemini/skills/platform-data-manage, .github/skills/platform-data-manage and .opencode/skills/platform-data-manage in your project.

What does Platform Data Manage need to run?

Going by SKILL.md and its folder, Platform Data Manage needs the command-line tools its instructions call (sf) and credentials named INVALID_CROSS_REFERENCE_KEY. Our summary lists: A credential in INVALID_CROSS_REFERENCE_KEY.

Does Platform Data Manage access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Platform Data Manage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Platform Data Manage use?

Platform Data Manage is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Platform Data Manage use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.

What are the alternatives to Platform Data Manage?

Skills that share tags, products or a category with Platform Data Manage: Sf Data (Jaganpro/sf-skills, 424 stars), Soql Lib Testing (beyond-the-cloud-dev/soql-lib, 154 stars), Skill Doli Test Interactive (Dolibarr/dolibarr, 7.7k stars) and Eval Design (agentscope-ai/OpenJudge, 868 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Platform Data Manage?

forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,060 GitHub stars. The repository holds 251 skills in this directory. The repository was last updated on October 7, 2026.

Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.