/powerplatform-core:data-operationsfrom powerplatform-core
Creates, reads, updates, upserts, and deletes Dataverse rows via SDK. Seeds and syncs reference/config data. Designs and runs OData, FetchXML, and Power Automate queries with paging and total-count reporting.
Ships in powerplatform-core. 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.
None: SKILL.md is the whole skill.
This skill owns Dataverse row create, read, update, upsert, and delete, plus query design and execution. It is the data branch of the powerplatform-core orchestrator — start there to discover repo context and confirm the target environment and solution. Keep data work separate from schema work: a solution import is not the way to sync environment-specific config data, and creating/changing tables or columns belongs in the dataverse-schema skill.
Default safety posture: create, read, update, and upsert are in scope when the user asks for them. Read is non-mutating and needs no preflight. Delete is supported but is the highest-risk write: only delete when the user explicitly asks, and only after the live-mutation preflight and explicit approval.
For table/column/lookup/form/view/ribbon/icon changes, use the dataverse-schema skill instead.
The Python helpers live in the plugin's scripts/ directory at the plugin root, not inside this skill folder. Resolve the plugin root and invoke a helper like this (use $CODEX_PLUGIN_ROOT, also exposed as $PLUGIN_ROOT, when running under Codex; if installed standalone, the scripts/ folder sits beside this bundle):
Claude Code: python "$CLAUDE_PLUGIN_ROOT/scripts/upsert_data.py" --table contoso_account --data ./row.json --key ./key.json --auth-dialog --verify
Codex: python "$CODEX_PLUGIN_ROOT/scripts/upsert_data.py" --table contoso_account --data ./row.json --key ./key.json --auth-dialog --verify
design_dataverse_query.py — offline query designer. Takes --spec (a JSON object or path describing tableLogicalName, entitySetName, select, filters, orderBy, top, expand) plus optional --repo-root / --output. Emits a Web API OData path, FetchXML, Power Automate "List rows" parameters, and warnings about missing filters, row limits, select lists, or entity-set names. No live call.
upsert_data.py — live row write. Key flags: --table (logical name, required), --data (JSON object or path, required), --mode {create,update,upsert} (default upsert), --id (primary-key GUID for update/upsert), --key (JSON object or path with alternate-key values), --verify (retrieve the changed columns after the write), plus the shared auth flags (--environment-url/--target-url, --username, --tenant-id, --auth-dialog, --auto-validate, --auth-flow {auto,devicecode,interactive,clientsecret,certificate}, --app-id, --certificate-path, --force-prompt, --verbose) and --repo-root (resolves project-profile deployment defaults, including typed row-write coercion). --dry-run reads the current row and prints a per-column diff of the would-be write (changed/added/unchanged) without mutating anything; it needs --id or --key for update/upsert (create mode reports every column as new).
read_data.py — live, read-only row read (no preflight). --mode retrieve reads one row by --id or --key (optional --columns / --all-columns); --mode list runs a query from --fetchxml or --spec (built with the offline designer) with --max-rows (default 100), --page-size, and --exact-total. The response reports returnedCount, moreRecords, and totalRecordCount (Dataverse caps that count at 5000; totalRecordCountLimitExceeded flags when the true total is higher). Shares the same auth flags as upsert_data.py.
delete_data.py — live row delete by --id or --key (--table required). Mutating and irreversible: run the live-mutation preflight and get explicit approval first; prefer --auth-dialog to confirm the target. Shares the same auth flags.
If the repo already has a proven seed-data or data-sync mechanism, or server-side SDK code, prefer that repo-owned path over reconstructing one. The Web API is the simpler direct/scriptable path when no SDK code exists.
Unattended (service-principal) auth. For CI/CD, scheduled agents, or headless verification, read_data.py/upsert_data.py/delete_data.py accept --auth-flow clientsecret (with --app-id and --tenant-id, client secret read from the DATAVERSE_CLIENT_SECRET environment variable) or --auth-flow certificate (--app-id, --tenant-id, --certificate-path, password from DATAVERSE_CERTIFICATE_PASSWORD). Secrets come from environment variables only — never pass a secret or certificate password as a CLI argument. Service-principal mode skips the auth dialog and PAC-profile defaulting, so pass --environment-url explicitly. The application user must exist in the target environment (see the platform-administration skill for pac admin create-service-principal).
Dataverse MCP interop. If Microsoft's Dataverse MCP is connected, prefer it for quick interactive "what does this data look like" lookups (search/describe/read_query). Use these helpers whenever the read must be paged (read_data.py --mode list returns returnedCount/moreRecords/totalRecordCount), keyed and verified, or followed by a write — and route every live mutation through the helpers so it passes the preflight gate, never through the MCP. When an MCP read_query result is truncated by its row cap or its SQL subset rejects a query, fall back to design_dataverse_query.py + read_data.py. See the orchestrator skill for the full routing rules.
create to let Dataverse assign the key; update to send only changed columns by primary or alternate key; upsert for create-or-update when the row might already exist. For Web API update-only behavior, If-Match: * prevents a silent upsert.source_system + source_id).--verify when confirming the write matters, and capture whether the action created or updated the row.powerplatform-core orchestrator before any live row write or delete. Reads (read_data.py) are non-mutating and skip the preflight. Stop if any required field is missing.--auth-dialog) so the user confirms the target URL and selects the working solution; warn when the requested target does not match the active PAC profile. Treat DEV as the working environment and TEST as validation. Do not touch production.upsert_data.py performs live row writes and optional post-write verification, plus a keyed --dry-run that diffs a single would-be update/upsert against the current row (no mutation); read_data.py reads (retrieve/list) and is non-mutating; delete_data.py deletes a single row. There is no bulk dry-run/plan mode across many rows, and read_data.py list returns at most --max-rows rows per call (default 100) with a moreRecords flag rather than streaming an entire table. For multi-row plan/apply (config sync, migrations), keep that planning phase in the workflow or repo-specific tooling layer; do not imply the shared helpers already batch it.$select, then $filter only for necessary predicates, $expand sparingly) for straightforward server-side filtering. Dataverse Web API does not support every OData option; if the query needs complex joins, aggregates, or view definitions, prefer FetchXML.coalesce, if, empty) over nested fragile expressions. Validate in filters against the specific connector action, falling back to FetchXML if rejected.Read the shared references at the plugin's references/ directory for depth:
references/data-operations.md — create/update/upsert paths, keying and provenance, dry-run/apply planning, and validation/reporting.references/queries-and-xml.md — OData and FetchXML guidance, view FetchXml/LayoutXml, and direct solution XML rules.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub satriotsubasa/powerplatform-core --plugin powerplatform-core12 skills in this plugin
/code-appsUse for Power Apps Code Apps - the pro-code model where a standalone Vite-built React/Vue/TS single-page app uses the `@microsoft/power-apps` client library and is pushed into a Power Platform environment with no server to manage. Covers scaffolding from the official Vite template, initializing with `power.config.json`, adding Dataverse data sources that generate typed model/service files, local dev, building, and pushing via `npx power-apps push` (npm CLI) or legacy `pac code push`. Trigger whenever the user mentions a code app, `power.config.json`, `@microsoft/power-apps`, `pac code` / `power-apps` CLI, a `CodeApp/` folder, or wants to build, run, or push a custom SPA into Power Platform, even if no helper is named. Not for PCF controls embedded in model-driven forms (use pcf-and-web-resources) or Canvas/maker apps.
/custom-connectorsUse to DESIGN Power Platform custom connectors and integration wrappers - review an OpenAPI/Swagger description, choose the auth shape (API key, OAuth2, basic, none), inventory operations, and decide whether to expose an API as a direct custom connector or behind an Azure Function / API facade. Produces a connector name, auth approach, operation summaries, a recommended pattern, suggested environment variables, and solution-aware connection-reference guidance. Trigger whenever the user mentions a custom connector, OpenAPI/Swagger for Power Platform, connecting a flow or app to an external/REST API, an integration wrapper or facade, or whether an Azure Function should front an integration, even if no helper is named. Design-first - it does not publish the connector. Not for authoring the flow that calls it (use power-automate-flows) or server-side Dataverse logic (use plugins-server-extensions).
/dataverse-schemaUse for Dataverse table METADATA - tables, columns, lookups/relationships, choices/option sets, alternate keys, main forms, public/lookup views, the form-level ribbon (RibbonDiffXml), form event handlers and script libraries, and table icons - plus up-front schema and query-shape design before metadata exists. Trigger on "create a table", "add a column/field", "add a lookup", "add a choice", "set an alternate key", "update the main form", "add a view / change view columns", "add a button to the form ribbon", "set the table icon", or "design a Dataverse schema", even when no helper is named. Prefer this over hand-edited customizations.xml. Not for row/record DATA, seeding config rows, or query authoring - use data-operations.
/document-generationUse for Dataverse document generation built on Word Templates - inventory the content controls in a `.docx`/`.dotx` template, map placeholders to data, and plan a template-aware change before editing blindly. Fires whenever the user mentions a Word Template, document generation, content controls, placeholder or merge-field mapping, document-definition records, "why is this field blank in the generated doc", "add a placeholder to the template", "what tags does this template use", or a document-generation plug-in, even if no helper is named. Treats `Word Templates/` as first-class source, surfaces duplicate tags, missing required placeholders, and unused controls, and points at the `*.Business`, `*.Plugins`, and `*.Data` touchpoints a placeholder change implies. Run the live-mutation preflight from the `powerplatform-core` orchestrator before any live template or component write.
/pcf-and-web-resourcesUse for the client-side surfaces of a model-driven app - Power Apps component framework (PCF) controls, web resources (JS/HTML/CSS/XML/image), client form scripts, and Power Fx formula review. Covers scaffolding a PCF control, binding it to a form control, building/deploying via wrapper solution or direct push, keeping manifest and wrapper-solution versions in sync, single and batch web resource sync/publish, OnLoad/OnSave/OnChange handler registration, and Xrm.WebApi code. Trigger whenever the user mentions PCF, pcfproj, ControlManifest, `pac pcf`, web resources, form scripts, ribbon JavaScript rules, Xrm/formContext, or wants a Power Fx / canvas formula debugged, even if no helper is named. Not for a standalone Vite SPA Code App - use code-apps.
/platform-administrationUse for Power Platform TENANT and ENVIRONMENT administration - the tasks normally done in the Power Platform Admin Center, driven headlessly via the `pac admin` CLI and the Power Platform API. Covers listing environments, creating / resetting / backing-up / restoring / deleting environments, reading and writing tenant settings, data loss prevention (DLP) policies, managed environments, environment groups, application users / admin service principals, and capacity reporting. Trigger on "list the environments", "create / reset / delete / backup / restore an environment", "tenant settings", "DLP" / "data policy", "managed environment", "environment group", "Power Platform admin", "admin center", or "what environments are in this tenant", even when no helper is named. Admin-tier: it needs a Power Platform Administrator profile, distinct from the maker/developer Dataverse auth the other skills use. NOT for Dataverse data or solution ALM inside a single environment - use data-operations or solution-alm-delivery. Run the admin preflight before any environment or tenant write.
Other plugins' skills for the same job