Official agent skill

Setup Datamodel

by microsoft in microsoft/power-platform-skills

Creates Dataverse tables, columns, and relationships for a Power Pages site based on a data model proposal.

OfficialMITAuto-check: notes

Install Setup Datamodel

skills CLI
$ npx skills add microsoft/power-platform-skills --skill setup-datamodel -a claude-code

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

GitHub CLI
$ gh skill install microsoft/power-platform-skills setup-datamodel --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/microsoft/power-platform-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/power-pages/skills/setup-datamodel .claude/skills/setup-datamodel && 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
setup-datamodel
GitHub stars
967
Token cost
~4k tokens
SKILL.md length
1,770 words
Files
3 (incl. scripts, references)
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

Creates Dataverse tables, columns, and relationships for a Power Pages site based on a data model proposal.

  • Works in 8 steps: Verify Prerequisites → Choose Data Model Source → Invoke Data Model Architect → …
  • The user wants to set up the data model
  • SKILL.md covers Core Principles, Phase 1: Verify Prerequisites, Phase 2: Choose Data Model… and Phase 3: Invoke Data Model…, plus 5 more sections
  • Runs JavaScript scripts from its folder; calls node; reaches org12345.crm.dynamics.com

What it does

Setup Datamodel is an agent skill from microsoft/power-platform-skills, published by the product's own GitHub organization. Creates Dataverse tables, columns, and relationships for a Power Pages site based on a data model proposal. Use when the user wants to set up the data model, create database tables, or build the Dataverse schema for their site.

Its SKILL.md is about 4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/odata-api-patterns.md` and `scripts/validate-datamodel.js`).

It works with Microsoft Azure. The repository describes itself as: A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and… The licence is MIT.

When your agent uses it

  • The user wants to set up the data model
  • Create database tables
  • Build the Dataverse schema for their site

Example prompts

  • “Use the setup-datamodel skill to create Dataverse tables, columns, and relationships for a Power Pages site based on a data model proposal”
  • “/setup-datamodel”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_search, mcp__plugin_power-pages_microsoft-learn__microsoft_code_sample_search, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch

Workflow steps

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

  1. Verify Prerequisites
  2. Choose Data Model Source
  3. Invoke Data Model Architect
  4. Review Proposal
  5. Pre-Creation Checks
  6. Create Tables & Columns
  7. Create Relationships
  8. Publish & Verify

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Bash
    • Grep
    • Glob
    • AskUserQuestion
    • Task
    • TaskCreate
    • TaskUpdate
    • TaskList

    …and 3 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

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

    Shell commands in SKILL.md call:

    • node

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • org12345.crm.dynamics.com

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Setup Datamodel loads about 4k tokens when it runs, and up to ~7k if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 1,770 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, mcp__plugin_

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 microsoft/power-platform-skills at commit 5ef4e4f, republished under its MIT licence (© microsoft). 1,770 words, ~4,050 tokens.

Download SKILL.mdSave it as .claude/skills/setup-datamodel/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
setup-datamodel
description
Creates Dataverse tables, columns, and relationships for a Power Pages site based on a data model proposal. Use when the user wants to set up the data model, create database tables, or build the Dataverse schema for their site.
allowed-tools
Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_search, mcp__plugin_power-pages_microsoft-learn__microsoft_code_sample_search, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch
user-invocable
true
model
opus

Plugin check: Run node "${PLUGIN_ROOT}/scripts/check-version.js" — if it outputs a message, show it to the user before proceeding.

Set Up Dataverse Data Model

Guide the user through creating Dataverse tables, columns, and relationships for their Power Pages site. Follow a systematic approach: verify prerequisites, obtain a data model (via AI analysis or user-provided diagram), review and approve, then create all schema objects via OData API.

Core Principles

  • Never create without approval: Always present the full data model proposal and get explicit user confirmation before making any Dataverse changes.
  • Use TaskCreate/TaskUpdate: Track all progress throughout all phases — create the todo list upfront with all phases before starting any work.
  • Resilient execution: Refresh tokens proactively, check for existing tables before creating, and report failures without automated rollback.

Initial request: $ARGUMENTS


Phase 1: Verify Prerequisites

Goal: Confirm PAC CLI authentication, acquire an Azure CLI token, and verify API access

Actions:

  1. Create todo list with all 8 phases (see Progress Tracking table)
  2. Follow the prerequisite steps in ${PLUGIN_ROOT}/references/dataverse-prerequisites.md to verify PAC CLI auth, acquire an Azure CLI token, and confirm API access. Note the environment URL as <envUrl> for subsequent script calls.

Output: Verified PAC CLI auth, valid Azure CLI token, confirmed API access, <envUrl> noted


Phase 2: Choose Data Model Source

Goal: Determine whether the user will upload an existing ER diagram or let AI analyze the site

Actions:

<!-- gate: setup-datamodel:2.source | category=plan | cancel-leaves=nothing -->

🚦 Gate (plan · setup-datamodel:2.source): Decide whether the user uploads an existing ER diagram or the data-model-architect agent infers the model. Choice routes the rest of the skill into Path A vs Path B.

Trigger: Entering Phase 2. Why we ask: Auto-picking either path can run a multi-minute architect agent against the wrong intent (Path B) or skip Dataverse-existence checks (Path A). Cancel leaves: Nothing — no Dataverse calls made yet.

  1. Ask the user how they want to define the data model using the AskUserQuestion tool:

    Question: "How would you like to define the data model for your site?"

    OptionDescription
    Upload an existing ER diagramProvide an image (PNG/JPG) or Mermaid diagram of your existing data model
    Let the Data Model Architect figure it outThe Data Model Architect will analyze your site's source code and propose a data model automatically
  2. Route to the appropriate path:

Path A: Upload Existing ER Diagram

If the user chooses to upload an existing diagram:

  1. Ask the user to provide their ER diagram. Supported formats:

    • Image file (PNG, JPG) — Use the Read tool to view the image and extract tables, columns, relationships, and cardinalities from it
    • Mermaid syntax — The user can paste Mermaid ER diagram text directly in chat
    • Text description — A structured list of tables, columns, and relationships
  2. Parse the diagram into the same structured format used by the data-model-architect agent:

    • Publisher prefix (ask the user, or retrieve from the environment via pac env who)
    • Table definitions: logicalName, displayName, status (new/modified/reused), columns, relationships
    • Column definitions: logicalName, displayName, type, required
    • Relationship definitions: type (1:N or M:N), referenced/referencing tables
  3. Query existing Dataverse tables (same as Phase 3 would) to mark each table as new, modified, or reused.

  4. Generate a Mermaid ER diagram from the parsed data (if the user provided an image or text) for visual confirmation.

  5. Proceed directly to Phase 4: Review Proposal with the parsed data model.

Path B: Let the Data Model Architect Figure It Out

If the user chooses to let the Data Model Architect figure it out, proceed to Phase 3: Invoke Data Model Architect (the existing automated flow).

Output: Data model source chosen and, for Path A, parsed data model ready for review


Phase 3: Invoke Data Model Architect

Goal: Spawn the data-model-architect agent to autonomously analyze the site and propose a data model

Actions:

  1. Use the Task tool to spawn the data-model-architect agent. This agent autonomously:

    • Analyzes the site's source code to infer data requirements
    • Queries existing Dataverse tables via OData GET requests
    • Identifies reuse opportunities (reuse, extend, or create new)
    • Proposes a complete data model with an ER diagram
  2. Spawn the agent:

    Task tool:
      subagent_type: general-purpose
      prompt: |
        You are the data-model-architect agent. Follow the instructions in
        the agent definition file at:
        ${PLUGIN_ROOT}/agents/data-model-architect.md
    
        Analyze the current project and Dataverse environment, then propose
        a complete data model. Return:
        1. Publisher prefix
        2. Table definitions (logicalName, displayName, status, columns, relationships)
        3. Mermaid ER diagram
  3. Wait for the agent to return its structured proposal before proceeding.

Output: Structured data model proposal from the agent (publisher prefix, table definitions, ER diagram)


Phase 4: Review Proposal

Goal: Present the data model proposal to the user and get explicit approval before creating anything

Actions:

4.1 Present Proposal

Present the data model proposal directly to the user as a formatted message, including:

  • Publisher prefix
  • All proposed tables with columns (logical names + display names)
  • Relationship descriptions
  • Mermaid ER diagram
  • Which tables are new vs. modified vs. reused
4.2 Get User Approval
<!-- gate: setup-datamodel:4.2.approval | category=plan | cancel-leaves=nothing -->

🚦 Gate (plan · setup-datamodel:4.2.approval): Final sign-off on the data model proposal before any Dataverse write. Cancel here stops the skill with zero side effects.

Trigger: Phase 4.1 rendered the proposal (tables, columns, relationships, ER diagram). Why we ask: Tables and columns get created in Dataverse against the user's actual schema intent — column types and relationship cardinalities are awkward to undo. Cancel leaves: Nothing — no EntityDefinitions POST yet, no .datamodel-manifest.json write.

Use AskUserQuestion to get approval:

QuestionHeaderOptions
Does this data model look correct?Data Model ProposalApprove and create tables (Recommended), Request changes, Cancel
  • If "Approve and create tables (Recommended)": Proceed to Phase 5
  • If "Request changes": Ask what they want changed, modify the proposal, and re-present for approval
  • If "Cancel": Stop the skill

Only proceed to creation after explicit user approval.

Output: User-approved data model proposal


Phase 5: Pre-Creation Checks

Goal: Refresh the token, verify what already exists in Dataverse, and build the creation plan to avoid duplicates

Actions:

5.1 Refresh Token

Re-acquire the auth token (tokens expire after ~60 minutes):

node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>
5.2 Query Existing Tables

For each table in the approved proposal marked as new, check whether it already exists:

node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "api/data/v9.2/EntityDefinitions(LogicalName='<table_logical_name>')"
  • If 404: Table does not exist, proceed to create it
  • If 200: Table already exists — skip creation, warn the user

For tables marked as modified, verify the table exists (it should) and check which columns are missing.

5.3 Build Creation Plan

From the pre-creation checks, build a list of:

  • Tables to create (new tables that don't exist yet)
  • Columns to add (new columns on existing/modified tables)
  • Relationships to create
  • Tables/columns to skip (already exist)

Inform the user of any skipped items.

Output: Finalized creation plan with tables, columns, and relationships to create or skip


Show full SKILL.md (724 more words)Show less

Phase 6: Create Tables & Columns

Goal: Create each approved table and its columns using the Dataverse OData Web API

Actions:

Refer to references/odata-api-patterns.md for full JSON body templates.

6.1 Create Tables

For each new table, POST to the EntityDefinitions endpoint:

node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/EntityDefinitions" --body '<JSON body from references/odata-api-patterns.md>'

Use the deep-insert pattern to create the table and its columns in a single POST request. See references/odata-api-patterns.md for the complete JSON structure.

6.2 Add Columns to Existing Tables

For tables marked as modified, add new columns one at a time:

node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/EntityDefinitions(LogicalName='<table>')/Attributes" --body '<column JSON from references/odata-api-patterns.md>'
6.3 Track Progress

Track each creation attempt and its result (success/failure/skipped). Do NOT attempt automated rollback on failure — report failures and continue with remaining items.

6.4 Refresh Token if Needed

If creating many tables, the dataverse-request.js script handles 401 token refresh automatically. No manual refresh is needed between batches.

Output: All approved tables and columns created (or failures reported)


Phase 7: Create Relationships

Goal: Create all relationships between the newly created and existing tables

Actions:

7.1 One-to-Many Relationships

Create lookup columns that establish 1:N relationships:

node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/RelationshipDefinitions" --body '<relationship JSON from references/odata-api-patterns.md>'
7.2 Many-to-Many Relationships

Create M:N relationships (intersect tables are created automatically):

node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/RelationshipDefinitions" --body '<M:N relationship JSON from references/odata-api-patterns.md>'
7.3 Track Relationship Creation

Track each relationship creation attempt. Report failures without rolling back.

Output: All approved relationships created (or failures reported)


Phase 8: Publish & Verify

Goal: Publish all customizations, verify tables exist, write the manifest, and present a summary

Actions:

8.1 Publish Customizations

Publish all customizations so the new tables and columns become available:

node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/PublishXml" --body '{"ParameterXml":"<importexportxml><entities><entity>cr123_project</entity><entity>cr123_task</entity></entities></importexportxml>"}'

See references/odata-api-patterns.md for the full PublishXml pattern.

8.2 Verify Tables Exist

For each created table, run a verification query:

node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "api/data/v9.2/EntityDefinitions(LogicalName='<table>')?$select=LogicalName,DisplayName"
8.3 Write Manifest

After successful verification, write .datamodel-manifest.json to the project root. This file records which tables and columns were verified to exist, and is used by the validation hook.

json
{
  "environmentUrl": "https://org12345.crm.dynamics.com",
  "tables": [
    {
      "logicalName": "cr123_project",
      "displayName": "Project",
      "status": "new",
      "columns": [
        { "logicalName": "cr123_name", "type": "String" },
        { "logicalName": "cr123_description", "type": "Memo" }
      ]
    }
  ]
}

Use the Write tool to create this file at <PROJECT_ROOT>/.datamodel-manifest.json. Only include tables and columns that were confirmed to exist in Step 8.2. See ${PLUGIN_ROOT}/references/datamodel-manifest-schema.md for the full schema specification.

8.4 Record Skill Usage

Reference: ${PLUGIN_ROOT}/references/skill-tracking-reference.md

Follow the skill tracking instructions in the reference to record this skill's usage. Use --skillName "SetupDatamodel".

8.5 Present Summary

Present a summary to the user:

TableStatusColumnsRelationships
cr123_project (Project)Created5 columns2 relationships
contact (Contact)Reused1 column added—
cr123_task (Task)Created4 columns1 relationship

Include:

  • Total tables created/modified/reused/failed
  • Total columns created/skipped/failed
  • Total relationships created/failed
  • Any errors encountered with details
  • Location of the manifest file (.datamodel-manifest.json)
8.6 Suggest Next Steps

After the summary, suggest:

  • Review created tables in the Power Pages maker portal
  • Populate tables with sample data for testing: /add-sample-data
  • Integrate tables with your site's frontend via Web API: /integrate-webapi
  • If the site is not yet built: /create-site
  • If the site is ready to deploy: /deploy-site

Output: Published customizations, verified tables, manifest written, summary presented


Important Notes

Throughout All Phases
  • Use TaskCreate/TaskUpdate to track progress at every phase
  • Ask for user confirmation at key decision points (see list below)
  • Token refresh is automatic — the dataverse-request.js script handles 401 token refresh and 429/5xx retry internally
  • Report failures without rollback — track each creation attempt and continue with remaining items on failure
Key Decision Points (Wait for User)
  1. After Phase 2: Data model source chosen (upload vs. AI)
  2. After Phase 4: Approve data model proposal before any creation
  3. After Phase 5: Acknowledge any skipped items before proceeding
  4. After Phase 8: Review summary and choose next steps
Progress Tracking

Before starting Phase 1, create a task list with all phases using TaskCreate:

Task subjectactiveFormDescription
Verify prerequisitesVerifying prerequisitesConfirm PAC CLI auth, acquire Azure CLI token, verify API access
Choose data model sourceChoosing data model sourceAsk user to upload ER diagram or let AI analyze the site
Invoke data model architectInvoking data model architectSpawn agent to analyze site and propose data model
Review and approve proposalReviewing proposalPresent data model proposal to user, get explicit approval
Pre-creation checksRunning pre-creation checksRefresh token, query existing tables, build creation plan
Create tables and columnsCreating tables and columnsPOST to OData API to create tables and columns
Create relationshipsCreating relationshipsPOST to OData API to create 1:N and M:N relationships
Publish and verifyPublishing and verifyingPublish customizations, verify tables, write manifest, present summary

Mark each task in_progress when starting it and completed when done via TaskUpdate. This gives the user visibility into progress and keeps the workflow deterministic.


Begin with Phase 1: Verify Prerequisites

© microsoft, MIT. 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 2 other files (scripts, references) in plugins/power-pages/skills/setup-datamodel of microsoft/power-platform-skills.

  • SKILL.md
  • references/odata-api-patterns.md
  • scripts/validate-datamodel.js

Open the folder on GitHubat commit 5ef4e4f

Compare with similar skills

Setup Datamodel 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.

Setup Datamodel compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Setup Datamodel this skillmicrosoft/power-platform-skills967—~4kAutomated safety check: NotesMIT
Skill CreatorAzure/azqr79489 repos~8.2kAutomated safety check: PassApache-2.0
Microsoft Skill CreatorMicrosoftDocs/mcp1.9k3 repos~2.1kAutomated safety check: PassCC-BY-4.0
Microsoft Code ReferenceMicrosoftDocs/mcp1.9k4 repos~1.1kAutomated safety check: PassCC-BY-4.0
Cloud Cost Optimizationwshobson/agents40k13 repos~1.7kAutomated safety check: PassMIT
Add Model Pricelangfuse/langfuse35k—~1.2kAutomated safety check: PassCustom licence

Similar skills

  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    794 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed
  • Microsoft Skill Creator

    MicrosoftDocs/mcp

    Official

    Create agent skills for Microsoft technologies using official documentation.

    1.9k GitHub starsUsed in 3 repos~2.1k tokens
    Agent WorkflowsAuto-check passed
  • Microsoft Code Reference

    MicrosoftDocs/mcp

    Official

    Find working code samples, verify API signatures, and fix Microsoft SDK errors using official docs.

    1.9k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.

    40k GitHub starsUsed in 13 repos~1.7k tokens
    DevOps & CloudAuto-check passed
  • Add Model Price

    langfuse/langfuse

    A skill your agent uses when editing worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, pricing tiers, tokenizer IDs, or matchPattern regexes for OpenAI…

    35k GitHub stars~1.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Official

    Reference for building on Microsoft Foundry with the azure-ai-projects Python SDK: project clients, versioned agents, evaluations, connections, datasets and indexes.

    3.1k GitHub starsUsed in 6 repos~2.8k tokens
    AI & LLM EngineeringAuto-check passed

More from microsoft/power-platform-skills

All 87 skills in this repo
  • Manage Firewall

    microsoft/power-platform-skills

    Official

    Inspects and configures the web application firewall (WAF) in front of a Power Pages production site.

    967 GitHub stars~4.5k tokensUpdated today
    Auto-check: notes
  • Manage Headers

    microsoft/power-platform-skills

    Official

    Inspects and configures the security headers a Power Pages site sends to browsers — Content Security Policy, frame and clickjacking protection, cross-origin sharing, cookie behavior, and related…

    967 GitHub stars~3k tokensUpdated today
    Auto-check: notes
  • Scan Code

    microsoft/power-platform-skills

    Official

    Scans a Power Pages site project for security issues in source code and dependencies.

    967 GitHub stars~3.4k tokensUpdated today
    Auto-check: notes
  • Scan Site

    microsoft/power-platform-skills

    Official

    Runs a security scan on a deployed Power Pages site, fetches the latest scan report, and produces a plain-language summary.

    967 GitHub stars~3.2k tokensUpdated today
    Auto-check: notes
  • Add Server Logic

    microsoft/power-platform-skills

    Official

    Creates, edits, and manages Power Pages Server Logic files — server-side JavaScript that runs securely on the Power Pages runtime.

    967 GitHub stars~18k tokensUpdated today
    Auto-check: notes
  • Activate Site

    microsoft/power-platform-skills

    Official

    Activates and provisions a Power Pages website in a Power Platform environment via the Power Platform REST API.

    967 GitHub starsUsed in 1 repo~5k tokens
    Auto-check: notes

Works with

Questions about Setup Datamodel

What does Setup Datamodel do?

Creates Dataverse tables, columns, and relationships for a Power Pages site based on a data model proposal. Setup Datamodel is an agent skill from microsoft/power-platform-skills, published by the product's own GitHub organization. Creates Dataverse tables, columns, and relationships for a Power Pages site based on a data model proposal.

When should I use Setup Datamodel?

Setup Datamodel fits situations like: the user wants to set up the data model; create database tables; build the Dataverse schema for their site.

How do I install Setup Datamodel in Claude Code?

Run `npx skills add microsoft/power-platform-skills --skill setup-datamodel -a claude-code`. Or copy the skill folder (plugins/power-pages/skills/setup-datamodel in microsoft/power-platform-skills) into .claude/skills/setup-datamodel in your project. Claude Code loads it when a task matches its description.

How do I install Setup Datamodel in Codex?

Run `npx skills add microsoft/power-platform-skills --skill setup-datamodel -a codex`. Or copy the skill folder (plugins/power-pages/skills/setup-datamodel in microsoft/power-platform-skills) into .agents/skills/setup-datamodel in your project. Codex loads it when a task matches its description.

Can I use Setup Datamodel 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 microsoft/power-platform-skills --skill setup-datamodel -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/setup-datamodel, .gemini/skills/setup-datamodel, .github/skills/setup-datamodel and .opencode/skills/setup-datamodel in your project.

What does Setup Datamodel need to run?

Going by SKILL.md and its folder, Setup Datamodel needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_search, mcp__plugin_power-pages_microsoft-learn__microsoft_code_sample_search, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch.

Does Setup Datamodel access the network?

SKILL.md names 1 domain. In commands or code: org12345.crm.dynamics.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Setup Datamodel safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. 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 Setup Datamodel use?

Setup Datamodel is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Setup Datamodel use?

About 4k tokens (SKILL.md is roughly 16k 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 3k tokens, read only when the agent opens those files.

What are the alternatives to Setup Datamodel?

Skills that share tags, products or a category with Setup Datamodel: Skill Creator (Azure/azqr, 794 stars), Microsoft Skill Creator (MicrosoftDocs/mcp, 1.9k stars), Microsoft Code Reference (MicrosoftDocs/mcp, 1.9k stars) and Cloud Cost Optimization (wshobson/agents, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Setup Datamodel?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/power-platform-skills, which has 967 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on October 6, 2026.

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