erp-sql

erp-sql is a skill for Claude Code from microsoft/Dataverse-skills. It costs 69 tokens per session (4,942 once invoked), scanned A, original, MIT.

A controlled way to obtain temporary SQL access to Finance and Operations ERP tables in a unified development environment. It requires administrator approval and checks the target environment before access is requested.

In plain words
What is it for?
It helps authorized developers request temporary SQL credentials, connect with sqlcmd, and perform bounded reads from physical ERP tables.
Why use it?
It limits sensitive database access by requiring a stated reason, client IP range, exact environment, and approval before credentials or reads are provided.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dataverse plugin — 10 skills shipped together

Good fit It helps authorized developers request temporary SQL credentials, connect with sqlcmd, and perform bounded reads from physical ERP tables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/dataverse-skills/erp-sql
About the project

microsoft/Dataverse-skills is a collection of skills that lets AI coding agents build, query, deploy, and administer Microsoft Dataverse environments and linked Dynamics 365 Finance and Operations systems. It is for working with Dataverse data models, records, solutions, and Finance and Operations development through natural-language instructions. The catalogue entries are the skills and plugin that operate the Dataverse tools and workflows.

microsoft/Dataverse-skills · 254 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add microsoft/Dataverse-skills --skill erp-sql
Clone the repo
git clone --depth 1 https://github.com/microsoft/Dataverse-skills

Made for: Claude Code.

Or install dataverse, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for erp-sql

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/dataverse-skills/erp-sql/github.svg)](https://agentmods.dev/skills/microsoft/dataverse-skills/erp-sql)
Your own site
<a href="https://agentmods.dev/skills/microsoft/dataverse-skills/erp-sql"><img src="https://agentmods.dev/badge/skills/microsoft/dataverse-skills/erp-sql/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for erp-sql

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/dataverse-skills/erp-sql"><img src="https://agentmods.dev/badge/skills/microsoft/dataverse-skills/erp-sql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,942 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.04942
Opus 5.5 $0.00028 $0.01977
Sonnet 5.5 $0.00014 $0.00988
Haiku 4.5 $0.00007 $0.00494

Measured today against content hash ed6a6e1a1604, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

erp-sql scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/connect.py, scripts/session_ipc.py, scripts/session.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run(
.github/plugins/dataverse/skills/erp-sql/SKILL.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Finance and Operations SQL Access

Critical safety rules — read first

  1. Confirm the Dataverse URL, selected access type, exact client IP or range, and access reason before requesting credentials. JIT access changes database access and firewall configuration even though the SQL check only reads. Verify the exact organization and linked ERP environment with the targeted Dataverse CLI check below before the request. This workflow uses Dataverse CLI verification instead of the overview's PAC check; PAC is not required. Every new grant invalidates existing SQL credentials for the same user in the same environment, including credentials used in Visual Studio, SSMS, or another SQL session. Disclose this and obtain explicit approval before each grant. The user must supply the IP address or range. Never discover it, suggest a range, or recommend a lookup source or command. If the user cannot provide it, stop before requesting credentials. The user must supply the JIT reason. Use the host's structured question tool if it has one, otherwise ask in chat. Keep any reason field empty, with no suggested/default answer. Wait for a meaningful, non-empty response; never invent, infer, or auto-fill the reason.
  2. UDE-only (ErpDeploymentType = OnlineDev); the user must already have the environment System administrator (sysAdmin) role. USEs are not implemented or tested by this skill. Confirm eligibility before requesting a grant; never self-elevate. Reader is the only supported SQL access type. Obtain explicit approval for Reader access; never offer or request Writer, accept write-capable credentials, or escalate after a failure. Never broaden the approved IP scope without new explicit approval or execute direct ERP data changes; the helper only probes the connection and performs explicitly approved bounded table reads. Use supported business APIs for writes.
  3. Never expose the password. Do not invoke the credential action through a tool that displays its response. Capture the managed CLI response inside Python, keep credentials in memory, and pass the password only in the sqlcmd child's SQLCMDPASSWORD environment. Never use -P, files, .env, chat, or logs for the password.
  4. Never bypass TLS validation. Require encryption and certificate validation; do not add -C.
  5. A credential response is not a successful connection. Require sqlcmd exit code zero and a matching database/login from the connection check. Do not claim success while a JIT operation or login is pending.
  6. Default to a reusable session for interactive reads, starting with the first table request. Obtain approval to retain credentials in the owner process. Reuse only this conversation's session for the approved workspace/environment/role/IP scope. Do not close it merely because one read or agent turn finishes. Close on an explicit user request or known conversation end; idle timeout and expiry also end it. Never expose credentials, automatically renew access, or attach to another conversation's session.

This skill is an explicit opt-in exception to normal ERP OData/MCP reads, not a replacement for them. It connects to the ERP SQL database, not the Dataverse read-only TDS endpoint. A Dataverse authentication token is used to request temporary SQL credentials, not as the SQL password.

Feature eligibility: this skill supports unified development environments (UDEs) only, requiring the System administrator (sysAdmin) role in the environment. That prerequisite is separate from the SQL Reader role requested by both helpers. Supported business APIs, not direct SQL writes, belong in dv-data.

Current helper limitation: preflight accepts only ErpDeploymentType = OnlineDev. Microsoft's product database access documentation also covers unified sandbox environments (USEs), but that broader platform scope is not implemented or tested by this skill. Stop on any other deployment type; do not bypass the guard or guess a USE mapping.

Read the full file on GitHub · 247 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 247 lines · 69 tokens per session scan A ed6a6e1a1604

Subscribe to this mod's changes

erp-sql is a skill published in the GitHub repository microsoft/Dataverse-skills (254 stars, last pushed yesterday), licensed MIT. It adds 69 tokens to every session and 4,942 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

erp-sql compared with skills from other repositories

erp-sql next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
erp-sqlmicrosoft/Dataverse-skillsSkill254yesterdayMITA69Claude Code
xrm-mcpjukkan/xrm-mcpSkill211mo agononeA0Claude Code, Codex
accounting-audit-system-buildersickn33/agentic-awesome-skillsSkill49kyesterdayMITA41Claude Code
amazon aurora dsqlawslabs/mcpSkill9.9kyesterdayApache-2.0A46Claude Code
ib-collarstaskh/trading_skillsSkill4043d agoMITA30Claude Code
report-stockstaskh/trading_skillsSkill4043d agoMITA22Claude Code
ib-report-delta-adjusted-notional-exposurestaskh/trading_skillsSkill4043d agoMITA58Claude Code