[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AR6XKM814KPH4PEEQE7R7":3,"skill-same:01M69AR6XKM814KPH4PEEQE7R7":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M69AR6XKM814KPH4PEEQE7R7","erp-xpp","X++ 代码开发与部署","X++ code development lifecycle for Finance and Operations — scaffold models, author classes, custom services\u002FAPIs, and data entities, install matching SDKs, compile deployable packages, deploy packages, synchronize databases, and verify deployed artifacts. Use when the user explicitly requests creating, building, compiling, packaging, deploying, DB-syncing, or verifying X++ customizations, or an end-to-end ERP code change.","面向 Finance and Operations 的 X++ 代码开发生命周期——搭建模型、编写类、自定义服务\u002FAPI 和数据实体，安装匹配的 SDK，编译可部署包、部署包、同步数据库，并验证已部署的工件。当用户明确要求创建、构建、编译、打包、部署 X++ 自定义项、同步数据库或进行验证，或进行端到端的 ERP 代码变更时使用。","microsoft\u002FDataverse-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69AQ9SHMSQ8KC4EKV8DZW2Y",258,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-xpp\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"erp xpp","xpp","erp","custom","lifecycle","compile","for","development","compiling","data","install","packages","sdks","code","end","packaging","db","databases","development lifecycle","change","2026-11-10 10:12:30",false,"---\nname: erp-xpp\ndescription: X++ code development lifecycle for Finance and Operations — scaffold models, author classes, custom services\u002FAPIs, and data entities, install matching SDKs, compile deployable packages, deploy packages, synchronize databases, and verify deployed artifacts. Use when the user explicitly requests creating, building, compiling, packaging, deploying, DB-syncing, or verifying X++ customizations, or an end-to-end ERP code change.\n---\n\n# Skill: Finance and Operations X++ Development\n\n> ## Critical safety rules — read first\n>\n> 1. **Windows only.** `pac tool xpp install` and `pac package compile --package-type erp` require Windows. Do not invent a Linux\u002FmacOS or SDK-based fallback.\n> 2. **Confirm the target before any deploy or DB sync.** Show the Dataverse environment URL, obtain explicit confirmation, then run `pac org who --environment \u003Curl>` and verify both the Dataverse URL and linked ERP URL\u002Fversion.\n> 3. **Never assume Full DB sync.** Although standalone `pac package db-sync` defaults to `Full`, require the user to choose `Full`, `Module`, or `Incremental` when the request is ambiguous.\n> 4. **Do not call deployment successful until PAC reaches a successful terminal state.** Preserve and report the async operation ID on failure.\n> 5. **Do not overwrite existing models or source files.** Inspect `.erp\u002Fxpp.json`, descriptors, and target metadata paths before scaffolding or editing.\n> 6. **Pin every runtime surface before ERP verification.** PAC and the Dataverse CLI have separate active profiles. Before any `dataverse ... --target erp` check, require `dataverse auth who` and `dataverse org who --json` to match the confirmed Dataverse and linked ERP URLs. Validate ERP MCP according to its transport: direct HTTP must target `\u003Cerp-url>\u002Fmcp`; an stdio proxy must receive the base `\u003Cerp-url>` and route effectively to `\u002Fmcp`. Profile selection does not retarget an existing MCP connection.\n> 7. **Treat runtime verification as possible data mutation.** After the separate post-deployment opt-in, inspect the X++ implementation, disclose exact test inputs and expected mutations, and obtain confirmation for those inputs and effects. Do not apply a generic test matrix to non-idempotent operations.\n> 8. **All additional validation after an ERP X++ package deployment is opt-in.** After `pac package deploy --package-type erp`, capture PAC's terminal result, then ask whether the user wants any further validation and which checks to run. Do not query the async operation, execute an X++ artifact, query its ERP entity, or test its security unless selected. For runtime validation, confirm exact inputs, success criteria, and failure criteria; never invent values or execute an unapproved failure path. This rule is scoped to ERP X++ package deployment, not Dataverse solution ALM.\n\nPAC CLI is the managed surface for the X++ lifecycle. Do not replace these commands with raw Dataverse APIs, direct calls to the ERP sidecar, LCS upload automation, or hand-written compiler invocations.\n\nFor a planning-only X++ request, loading skills and reading local references is allowed; do not make environment calls or write local files.\n\n## Intent routing\n\n| User intent | Action |\n|---|---|\n| Create an ERP package\u002Fmodel | `pac package init --package-type erp` |\n| Install compiler metadata for an environment | `pac tool xpp install` |\n| Check\u002Fremove local SDKs | `pac tool xpp list` \u002F `pac tool xpp uninstall` |\n| Compile or build X++ | `pac package compile --package-type erp` |\n| Deploy one prebuilt ZIP | `pac package deploy --package-type erp --package \u003Czip>` |\n| Deploy all models in a repo | `pac package deploy --package-type erp --solution-root \u003Croot>` |\n| Run DB sync only | `pac package db-sync` |\n| Create an ERP custom service | Author its X++ class\u002Fcontracts plus `AxService` and `AxServiceGroup` metadata, then compile and deploy |\n| Create an ERP `ICustomAPI` action | Author an `ICustomAPI` class, action menu item, and privilege\u002Fduty\u002Frole security, then compile, deploy, DB-sync when required, and verify through ERP MCP |\n| Author, compile, deploy, and verify | Follow [End-to-end workflow](#end-to-end-workflow) |\n\n**There is no `pac package build` or top-level `pac xpp` command.** For ERP, `pac package compile --package-type erp` compiles labels and X++, runs best-practice checks, and builds deployable managed ZIPs.\n\n## Skill boundaries\n\n| Need | Use instead |\n|---|---|\n| Connect\u002Fauthenticate, install or update PAC CLI | **dv-connect** |\n| Read or analyze ERP business data | **dv-query** |\n| Explicit direct developer-database SQL access or temporary SQL credentials | **erp-sql** |\n| Create\u002Fupdate\u002Fdelete ERP business records or import DMF data | **dv-data** |\n| List\u002Fcancel ERP batch jobs | **dv-admin** |\n| Dataverse solution ALM | **dv-solution** |\n| ERP UI personalization, workflow editing, or environment lifecycle | Finance and Operations UI \u002F Power Platform admin tooling; not covered |\n\n## Preflight\n\n1. Confirm Windows.\n2. Run `pac` and inspect its banner; `pac --version` is invalid. These commands require the PAC CLI .NET tool version 2.11.1 or later.\n3. Run `pac package help` and `pac tool xpp help`. If `compile`, `db-sync`, or `tool xpp` is absent, load **dv-connect** and update to the latest .NET tool installation before continuing.\n4. For environment operations, run:\n\n```bash\npac auth list\npac org who --environment \u003Cdataverse-url>\n```\n\nThe output must identify the confirmed Dataverse environment and include a linked ERP URL\u002Fversion. Do not substitute the ERP URL for `--environment`; PAC accepts the Dataverse URL and resolves ERP linkage.\n\n5. Before runtime verification through the Dataverse CLI or ERP MCP, run:\n\n```bash\ndataverse auth who\ndataverse org who --json \\\n  --context \"app=dataverse-skills\u002F\u003Cver>;skill=erp-xpp;agent=\u003Cagent>\"\n```\n\nRequire the selected CLI profile's environment URL and returned `erpUrl` to match the PAC target confirmed above. If they do not, run `dataverse auth select --name \u003Cprofile-name>`, then repeat both checks. Pass `--environment \u003Cdataverse-url>` on commands that support it, but never treat that option as a substitute for selecting the correct profile; some ERP data commands have no environment override.\n\nFor ERP MCP verification, inspect the active server configuration. Require direct HTTP to use the confirmed `\u003Cerp-url>\u002Fmcp`, or require an stdio proxy such as `dataverse mcp` to receive the confirmed base `\u003Cerp-url>` and use its effective `\u002Fmcp` endpoint. If it differs, stop and reconnect or reinitialize the matching ERP MCP server before discovery or invocation.\n\nBefore every MCP runtime invocation, establish a fresh transport-specific session and verify its caller through an MCP-originated identity\u002Fcurrent-session check. `dataverse auth who` proves only the CLI identity. If MCP cannot prove its caller, do not invoke through that session. For security acceptance, the proven caller must be the intended non-administrator test user.\n\n6. Before a first SDK install, explain that it downloads roughly 4 GB and expands to roughly 16 GB under `%LOCALAPPDATA%\\Microsoft\\Dynamics365\\\u003Cversion>\\PackagesLocalDirectory`.\n\n## Command quick reference\n\n```bash\n# Scaffold one or more models\npac package init --outputDirectory \u003Croot> --package-type erp \\\n  --model \u003CModelA,ModelB> --publisher \u003Cpublisher> --layer ISV\n\n# SDK lifecycle\npac tool xpp install --environment \u003Cdataverse-url>\npac tool xpp list\npac tool xpp uninstall --version \u003Cfour-part-version>\n\n# Compile\u002Fbuild all configured models\npac package compile --solution-root \u003Croot> --package-type erp \\\n  --app-version \u003Cfour-part-version> --language en-US\n\n# Compile one model during the edit loop\npac package compile --solution-root \u003Croot> --package-type erp \\\n  --model \u003CModelName> --app-version \u003Cfour-part-version> \\\n  --language en-US --incremental\n\n# Deploy one compiled package, without DB sync\npac package deploy --environment \u003Cdataverse-url> --package-type erp \\\n  --package \u003Croot>\u002Fbin\u002F\u003CModel>_\u003Cversion>_managed.zip \\\n  --build-type Full --release-type Dev --db-sync None \\\n  --logConsole --logFile \u003Cdeployment-log-path>\n\n# Deploy every model in .erp\u002Fxpp.json in dependency order\npac package deploy --environment \u003Cdataverse-url> --package-type erp \\\n  --solution-root \u003Croot> --build-type Full --release-type Dev \\\n  --db-sync None --logConsole --logFile \u003Cdeployment-log-path>\n```\n\nUse explicit values rather than relying on defaults in automation. Full argument tables and DB-sync rules are in [`references\u002Fcommands.md`](references\u002Fcommands.md).\n\n## Authoring X++ source\n\nThe repo root contains `.erp\u002Fxpp.json`; source defaults to `src\u002F`. Each model has a descriptor and metadata under:\n\n```text\n\u003Croot>\u002F\n  .erp\u002Fxpp.json\n  src\u002F\u003CModel>\u002FDescriptor\u002F\u003CModel>.xml\n  src\u002F\u003CModel>\u002F\u003CModel>\u002FAxClass\u002F\u003CClass>.xml\n```\n\nRun `pac package init` instead of hand-writing the descriptor\u002Fconfig. Add metadata files surgically after inspecting existing paths. PAC compiles and packages authored metadata; it does not scaffold custom services, `ICustomAPI` actions, or data entities. For runnable classes, labels, custom services, `ICustomAPI` actions, public OData data entities, and artifact-specific verification, use [`references\u002Fauthoring.md`](references\u002Fauthoring.md).\n\n## Compile\u002Fbuild rules\n\n- A normal compile runs labels -> X++ -> best-practice checks -> deployable ZIP.\n- Use `--incremental` only for the edit loop. Run a non-incremental compile before a final deployment.\n- Do not use `--skip-bp` unless the user explicitly requests it and understands the reduced validation.\n- If multiple SDKs are installed, pass `--app-version`; otherwise PAC may reject ambiguous selection.\n- Treat `Compile summary: ... failed` or any nonzero exit as failure even if a ZIP already exists from an earlier run.\n- Verify the output ZIP was produced by the current run under `\u003Croot>\u002Fbin\u002F`.\n- If label compilation reports `XPPLC2010` and PAC fails despite exit code 0 from LabelC, add a valid label resource; do not delete logs or bypass the stage.\n\n## Deploy and DB-sync rules\n\n- **Deploy-only** means `--db-sync None`.\n- `--build-type` controls how the server applies the package: `Full`, `Incremental`, or `Delete`; it is not a local build command.\n- `--release-type Dev` is the normal test\u002Fdevelopment choice. `Release` forces Full DB sync server-side when a sync is requested.\n- `Delete` ignores DB-sync settings.\n- Single-package deployment uses `--package \u003Czip>`. Solution-mode deployment omits `--package`, reads `.erp\u002Fxpp.json`, topologically orders models, deploys them, then runs one requested DB sync.\n- PAC injects `fnomoduledefinition.json` into the ZIP at deploy time. Copy the artifact first if an immutable checksum must be retained.\n- Standalone DB sync and deploy-with-sync are separate supported workflows; never redeploy merely to satisfy a DB-sync-only request.\n\nSee [`references\u002Fworkflows.md`](references\u002Fworkflows.md) for compile-only, deploy-only, DB-sync-only, multi-model, and full lifecycle sequences. Apply the success gates, diagnostics flow, and error mappings in [`references\u002Fvalidation.md`](references\u002Fvalidation.md) to every compile, deployment, DB sync, and runtime verification.\n\n## End-to-end workflow\n\nFor “make this X++ change and deploy it”:\n\n1. Inspect the repo and preserve existing work.\n2. Confirm model\u002Fclass names, publisher, and layer before scaffolding a new model.\n3. Run `pac package init --package-type erp` only when the model does not exist.\n4. Add or edit the requested X++ metadata, such as classes, contracts, custom services, service groups, `ICustomAPI` actions and security, public data entities, and required labels.\n5. Confirm\u002Fauthenticate the target environment and verify ERP linkage\u002Fversion.\n6. Install or reuse the matching SDK.\n7. Compile non-incrementally and require zero compile errors. Address best-practice warnings unless the user accepts them.\n8. Deploy with explicit build\u002Frelease\u002FDB-sync modes.\n9. Capture PAC's exit code, async operation ID, terminal state, and DB-sync result as part of the deployment command. Do not run additional validation automatically.\n10. Ask whether the user wants post-deployment validation and which checks they authorize: async-operation re-query, API\u002Faction discovery, runtime behavior, data-entity query, multiple-case testing, and\u002For security acceptance. Earlier deployment approval and selection of one check do not authorize another.\n11. If all validation is declined, report the PAC deployment result and state that no additional validation was performed. If runtime validation is selected, inspect only the deployed custom artifact and its contract, then ask for each required input plus the expected success and failure criteria. Repeat exact values or criteria already in the prompt for confirmation; never invent or broaden them.\n12. For selected runtime checks, pin the Dataverse CLI profile and transport-specific ERP MCP target to the confirmed environment, then verify only the approved artifact:\n   - Runnable class: open `https:\u002F\u002F\u003Cerp-host>\u002F?mi=SysClassRunner&cls=\u003CClassName>`.\n   - Custom service: inspect the X++ implementation for side effects before invoking `erp:\u003CServiceGroup>\u002F\u003CService>\u002F\u003COperation>` with `dataverse api invoke --target erp --context \"app=dataverse-skills\u002F\u003Cver>;skill=erp-xpp;agent=\u003Cagent>\"`; use `list`\u002F`describe` only for discovery.\n   - `ICustomAPI` action: if discovery was selected, use ERP MCP `api_find_actions` to validate its action menu item and contract. If execution was selected, invoke only approved inputs using the confirmed source contract or approved discovery result, then compare every returned property and expected mutation with the observed result.\n   - Public OData data entity: if discovery was selected, inspect it with `dataverse data describe --target erp`. If query execution was selected, query the confirmed entity set with `dataverse data query --target erp`. Add `--context \"app=dataverse-skills\u002F\u003Cver>;skill=erp-xpp;agent=\u003Cagent>\"` to each command that runs.\n   - Security acceptance: only when runtime execution and security acceptance were both selected, invoke the approved case as a non-administrator test user assigned the intended custom role. Administrator execution is diagnostic only and does not validate the privilege\u002Fduty\u002Frole chain.\n13. Report the package path, environment, async operation ID, terminal status, DB-sync mode, the validation checks accepted or declined, and results only for checks actually performed.\n\n## Common mistakes — do not use these\n\n| Wrong | Correct |\n|---|---|\n| `pac xpp install` | `pac tool xpp install` |\n| `pac xpp compile` | `pac package compile --package-type erp` |\n| `pac package build` | `pac package compile --package-type erp` |\n| `pac package deploy --package-type xpp` | `--package-type erp` |\n| Passing the ERP URL to `--environment` | Pass the linked Dataverse URL |\n| Omitting `--package` for one ZIP | Add `--package \u003Czip>` |\n| Adding `--package` for repo-wide deployment | Omit it and use `--solution-root` |\n| `pac package db-sync --db-sync None` | `None` is deploy-only; standalone modes are `Full`, `Module`, `Incremental` |\n| Module sync without `--modules` | Add `--modules ModelA,ModelB` |\n| Incremental sync without `--argument-file` | Add a valid `IncrementalSyncParameters` JSON file |\n","# Skill: Finance and Operations X++ Development\n\n> ## Critical safety rules — read first\n>\n> 1. **Windows only.** `pac tool xpp install` and `pac package compile --package-type erp` require Windows. Do not invent a Linux\u002FmacOS or SDK-based fallback.\n> 2. **Confirm the target before any deploy or DB sync.** Show the Dataverse environment URL, obtain explicit confirmation, then run `pac org who --environment \u003Curl>` and verify both the Dataverse URL and linked ERP URL\u002Fversion.\n> 3. **Never assume Full DB sync.** Although standalone `pac package db-sync` defaults to `Full`, require the user to choose `Full`, `Module`, or `Incremental` when the request is ambiguous.\n> 4. **Do not call deployment successful until PAC reaches a successful terminal state.** Preserve and report the async operation ID on failure.\n> 5. **Do not overwrite existing models or source files.** Inspect `.erp\u002Fxpp.json`, descriptors, and target metadata paths before scaffolding or editing.\n> 6. **Pin every runtime surface before ERP verification.** PAC and the Dataverse CLI have separate active profiles. Before any `dataverse ... --target erp` check, require `dataverse auth who` and `dataverse org who --json` to match the confirmed Dataverse and linked ERP URLs. Validate ERP MCP according to its transport: direct HTTP must target `\u003Cerp-url>\u002Fmcp`; an stdio proxy must receive the base `\u003Cerp-url>` and route effectively to `\u002Fmcp`. Profile selection does not retarget an existing MCP connection.\n> 7. **Treat runtime verification as possible data mutation.** After the separate post-deployment opt-in, inspect the X++ implementation, disclose exact test inputs and expected mutations, and obtain confirmation for those inputs and effects. Do not apply a generic test matrix to non-idempotent operations.\n> 8. **All additional validation after an ERP X++ package deployment is opt-in.** After `pac package deploy --package-type erp`, capture PAC's terminal result, then ask whether the user wants any further validation and which checks to run. Do not query the async operation, execute an X++ artifact, query its ERP entity, or test its security unless selected. For runtime validation, confirm exact inputs, success criteria, and failure criteria; never invent values or execute an unapproved failure path. This rule is scoped to ERP X++ package deployment, not Dataverse solution ALM.\n\nPAC CLI is the managed surface for the X++ lifecycle. Do not replace these commands with raw Dataverse APIs, direct calls to the ERP sidecar, LCS upload automation, or hand-written compiler invocations.\n\nFor a planning-only X++ request, loading skills and reading local references is allowed; do not make environment calls or write local files.\n\n## Intent routing\n\n| User intent | Action |\n|---|---|\n| Create an ERP package\u002Fmodel | `pac package init --package-type erp` |\n| Install compiler metadata for an environment | `pac tool xpp install` |\n| Check\u002Fremove local SDKs | `pac tool xpp list` \u002F `pac tool xpp uninstall` |\n| Compile or build X++ | `pac package compile --package-type erp` |\n| Deploy one prebuilt ZIP | `pac package deploy --package-type erp --package \u003Czip>` |\n| Deploy all models in a repo | `pac package deploy --package-type erp --solution-root \u003Croot>` |\n| Run DB sync only | `pac package db-sync` |\n| Create an ERP custom service | Author its X++ class\u002Fcontracts plus `AxService` and `AxServiceGroup` metadata, then compile and deploy |\n| Create an ERP `ICustomAPI` action | Author an `ICustomAPI` class, action menu item, and privilege\u002Fduty\u002Frole security, then compile, deploy, DB-sync when required, and verify through ERP MCP |\n| Author, compile, deploy, and verify | Follow [End-to-end workflow](#end-to-end-workflow) |\n\n**There is no `pac package build` or top-level `pac xpp` command.** For ERP, `pac package compile --package-type erp` compiles labels and X++, runs best-practice checks, and builds deployable managed ZIPs.\n\n## Skill boundaries\n\n| Need | Use instead |\n|---|---|\n| Connect\u002Fauthenticate, install or update PAC CLI | **dv-connect** |\n| Read or analyze ERP business data | **dv-query** |\n| Explicit direct developer-database SQL access or temporary SQL credentials | **erp-sql** |\n| Create\u002Fupdate\u002Fdelete ERP business records or import DMF data | **dv-data** |\n| List\u002Fcancel ERP batch jobs | **dv-admin** |\n| Dataverse solution ALM | **dv-solution** |\n| ERP UI personalization, workflow editing, or environment lifecycle | Finance and Operations UI \u002F Power Platform admin tooling; not covered |\n\n## Preflight\n\n1. Confirm Windows.\n2. Run `pac` and inspect its banner; `pac --version` is invalid. These commands require the PAC CLI .NET tool version 2.11.1 or later.\n3. Run `pac package help` and `pac tool xpp help`. If `compile`, `db-sync`, or `tool xpp` is absent, load **dv-connect** and update to the latest .NET tool installation before continuing.\n4. For environment operations, run:\n\n```bash\npac auth list\npac org who --environment \u003Cdataverse-url>\n```\n\nThe output must identify the confirmed Dataverse environment and include a linked ERP URL\u002Fversion. Do not substitute the ERP URL for `--environment`; PAC accepts the Dataverse URL and resolves ERP linkage.\n\n5. Before runtime verification through the Dataverse CLI or ERP MCP, run:\n\n```bash\ndataverse auth who\ndataverse org who --json \\\n  --context \"app=dataverse-skills\u002F\u003Cver>;skill=erp-xpp;agent=\u003Cagent>\"\n```\n\nRequire the selected CLI profile's environment URL and returned `erpUrl` to match the PAC target confirmed above. If they do not, run `dataverse auth select --name \u003Cprofile-name>`, then repeat both checks. Pass `--environment \u003Cdataverse-url>` on commands that support it, but never treat that option as a substitute for selecting the correct profile; some ERP data commands have no environment override.\n\nFor ERP MCP verification, inspect the active server configuration. Require direct HTTP to use the confirmed `\u003Cerp-url>\u002Fmcp`, or require an stdio proxy such as `dataverse mcp` to receive the confirmed base `\u003Cerp-url>` and use its effective `\u002Fmcp` endpoint. If it differs, stop and reconnect or reinitialize the matching ERP MCP server before discovery or invocation.\n\nBefore every MCP runtime invocation, establish a fresh transport-specific session and verify its caller through an MCP-originated identity\u002Fcurrent-session check. `dataverse auth who` proves only the CLI identity. If MCP cannot prove its caller, do not invoke through that session. For security acceptance, the proven caller must be the intended non-administrator test user.\n\n6. Before a first SDK install, explain that it downloads roughly 4 GB and expands to roughly 16 GB under `%LOCALAPPDATA%\\Microsoft\\Dynamics365\\\u003Cversion>\\PackagesLocalDirectory`.\n\n## Command quick reference\n\n```bash\n# Scaffold one or more models\npac package init --outputDirectory \u003Croot> --package-type erp \\\n  --model \u003CModelA,ModelB> --publisher \u003Cpublisher> --layer ISV\n\n# SDK lifecycle\npac tool xpp install --environment \u003Cdataverse-url>\npac tool xpp list\npac tool xpp uninstall --version \u003Cfour-part-version>\n\n# Compile\u002Fbuild all configured models\npac package compile --solution-root \u003Croot> --package-type erp \\\n  --app-version \u003Cfour-part-version> --language en-US\n\n# Compile one model during the edit loop\npac package compile --solution-root \u003Croot> --package-type erp \\\n  --model \u003CModelName> --app-version \u003Cfour-part-version> \\\n  --language en-US --incremental\n\n# Deploy one compiled package, without DB sync\npac package deploy --environment \u003Cdataverse-url> --package-type erp \\\n  --package \u003Croot>\u002Fbin\u002F\u003CModel>_\u003Cversion>_managed.zip \\\n  --build-type Full --release-type Dev --db-sync None \\\n  --logConsole --logFile \u003Cdeployment-log-path>\n\n# Deploy every model in .erp\u002Fxpp.json in dependency order\npac package deploy --environment \u003Cdataverse-url> --package-type erp \\\n  --solution-root \u003Croot> --build-type Full --release-type Dev \\\n  --db-sync None --logConsole --logFile \u003Cdeployment-log-path>\n```\n\nUse explicit values rather than relying on defaults in automation. Full argument tables and DB-sync rules are in [`references\u002Fcommands.md`](references\u002Fcommands.md).\n\n## Authoring X++ source\n\nThe repo root contains `.erp\u002Fxpp.json`; source defaults to `src\u002F`. Each model has a descriptor and metadata under:\n\n```text\n\u003Croot>\u002F\n  .erp\u002Fxpp.json\n  src\u002F\u003CModel>\u002FDescriptor\u002F\u003CModel>.xml\n  src\u002F\u003CModel>\u002F\u003CModel>\u002FAxClass\u002F\u003CClass>.xml\n```\n\nRun `pac package init` instead of hand-writing the descriptor\u002Fconfig. Add metadata files surgically after inspecting existing paths. PAC compiles and packages authored metadata; it does not scaffold custom services, `ICustomAPI` actions, or data entities. For runnable classes, labels, custom services, `ICustomAPI` actions, public OData data entities, and artifact-specific verification, use [`references\u002Fauthoring.md`](references\u002Fauthoring.md).\n\n## Compile\u002Fbuild rules\n\n- A normal compile runs labels -> X++ -> best-practice checks -> deployable ZIP.\n- Use `--incremental` only for the edit loop. Run a non-incremental compile before a final deployment.\n- Do not use `--skip-bp` unless the user explicitly requests it and understands the reduced validation.\n- If multiple SDKs are installed, pass `--app-version`; otherwise PAC may reject ambiguous selection.\n- Treat `Compile summary: ... failed` or any nonzero exit as failure even if a ZIP already exists from an earlier run.\n- Verify the output ZIP was produced by the current run under `\u003Croot>\u002Fbin\u002F`.\n- If label compilation reports `XPPLC2010` and PAC fails despite exit code 0 from LabelC, add a valid label resource; do not delete logs or bypass the stage.\n\n## Deploy and DB-sync rules\n\n- **Deploy-only** means `--db-sync None`.\n- `--build-type` controls how the server applies the package: `Full`, `Incremental`, or `Delete`; it is not a local build command.\n- `--release-type Dev` is the normal test\u002Fdevelopment choice. `Release` forces Full DB sync server-side when a sync is requested.\n- `Delete` ignores DB-sync settings.\n- Single-package deployment uses `--package \u003Czip>`. Solution-mode deployment omits `--package`, reads `.erp\u002Fxpp.json`, topologically orders models, deploys them, then runs one requested DB sync.\n- PAC injects `fnomoduledefinition.json` into the ZIP at deploy time. Copy the artifact first if an immutable checksum must be retained.\n- Standalone DB sync and deploy-with-sync are separate supported workflows; never redeploy merely to satisfy a DB-sync-only request.\n\nSee [`references\u002Fworkflows.md`](references\u002Fworkflows.md) for compile-only, deploy-only, DB-sync-only, multi-model, and full lifecycle sequences. Apply the success gates, diagnostics flow, and error mappings in [`references\u002Fvalidation.md`](references\u002Fvalidation.md) to every compile, deployment, DB sync, and runtime verification.\n\n## End-to-end workflow\n\nFor “make this X++ change and deploy it”:\n\n1. Inspect the repo and preserve existing work.\n2. Confirm model\u002Fclass names, publisher, and layer before scaffolding a new model.\n3. Run `pac package init --package-type erp` only when the model does not exist.\n4. Add or edit the requested X++ metadata, such as classes, contracts, custom services, service groups, `ICustomAPI` actions and security, public data entities, and required labels.\n5. Confirm\u002Fauthenticate the target environment and verify ERP linkage\u002Fversion.\n6. Install or reuse the matching SDK.\n7. Compile non-incrementally and require zero compile errors. Address best-practice warnings unless the user accepts them.\n8. Deploy with explicit build\u002Frelease\u002FDB-sync modes.\n9. Capture PAC's exit code, async operation ID, terminal state, and DB-sync result as part of the deployment command. Do not run additional validation automatically.\n10. Ask whether the user wants post-deployment validation and which checks they authorize: async-operation re-query, API\u002Faction discovery, runtime behavior, data-entity query, multiple-case testing, and\u002For security acceptance. Earlier deployment approval and selection of one check do not authorize another.\n11. If all validation is declined, report the PAC deployment result and state that no additional validation was performed. If runtime validation is selected, inspect only the deployed custom artifact and its contract, then ask for each required input plus the expected success and failure criteria. Repeat exact values or criteria already in the prompt for confirmation; never invent or broaden them.\n12. For selected runtime checks, pin the Dataverse CLI profile and transport-specific ERP MCP target to the confirmed environment, then verify only the approved artifact:\n   - Runnable class: open `https:\u002F\u002F\u003Cerp-host>\u002F?mi=SysClassRunner&cls=\u003CClassName>`.\n   - Custom service: inspect the X++ implementation for side effects before invoking `erp:\u003CServiceGroup>\u002F\u003CService>\u002F\u003COperation>` with `dataverse api invoke --target erp --context \"app=dataverse-skills\u002F\u003Cver>;skill=erp-xpp;agent=\u003Cagent>\"`; use `list`\u002F`describe` only for discovery.\n   - `ICustomAPI` action: if discovery was selected, use ERP MCP `api_find_actions` to validate its action menu item and contract. If execution was selected, invoke only approved inputs using the confirmed source contract or approved discovery result, then compare every returned property and expected mutation with the observed result.\n   - Public OData data entity: if discovery was selected, inspect it with `dataverse data describe --target erp`. If query execution was selected, query the confirmed entity set with `dataverse data query --target erp`. Add `--context \"app=dataverse-skills\u002F\u003Cver>;skill=erp-xpp;agent=\u003Cagent>\"` to each command that runs.\n   - Security acceptance: only when runtime execution and security acceptance were both selected, invoke the approved case as a non-administrator test user assigned the intended custom role. Administrator execution is diagnostic only and does not validate the privilege\u002Fduty\u002Frole chain.\n13. Report the package path, environment, async operation ID, terminal status, DB-sync mode, the validation checks accepted or declined, and results only for checks actually performed.\n\n## Common mistakes — do not use these\n\n| Wrong | Correct |\n|---|---|\n| `pac xpp install` | `pac tool xpp install` |\n| `pac xpp compile` | `pac package compile --package-type erp` |\n| `pac package build` | `pac package compile --package-type erp` |\n| `pac package deploy --package-type xpp` | `--package-type erp` |\n| Passing the ERP URL to `--environment` | Pass the linked Dataverse URL |\n| Omitting `--package` for one ZIP | Add `--package \u003Czip>` |\n| Adding `--package` for repo-wide deployment | Omit it and use `--solution-root` |\n| `pac package db-sync --db-sync None` | `None` is deploy-only; standalone modes are `Full`, `Module`, `Incremental` |\n| Module sync without `--modules` | Add `--modules ModelA,ModelB` |\n| Incremental sync without `--argument-file` | Add a valid `IncrementalSyncParameters` JSON file |\n",{"name":5,"description":7},"main","65bb1d3b311d2fd2ba4b9c5918f81712fed43a33",".github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-xpp",65,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 08:33:20",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add microsoft\u002FDataverse-skills --skill erp-xpp",{"tool":71,"command":72},"bunx","bunx skills add microsoft\u002FDataverse-skills --skill erp-xpp",{"tool":74,"command":75},"pnpm","pnpm dlx skills add microsoft\u002FDataverse-skills --skill erp-xpp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-xpp\u002FSKILL.md",true,[79,85,89,93],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fauthoring.md","REFERENCE","参考文档",16807,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-xpp\u002Freferences\u002Fauthoring.md",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fcommands.md",5321,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-xpp\u002Freferences\u002Fcommands.md",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fvalidation.md",15876,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-xpp\u002Freferences\u002Fvalidation.md",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fworkflows.md",8955,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-xpp\u002Freferences\u002Fworkflows.md",[98,122,140,157,189,217],{"skillNo":99,"name":100,"nameZh":17,"description":101,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":51},"01M6PJ8NCTZS7PZ5AVHXERS10A","erp-sql","Temporary Finance and Operations SQL access and bounded physical-table reads for unified development environments (UDEs) only, requiring the environment System administrator (sysAdmin) role. Use when the user explicitly requests direct ERP SQL access, a temporary SQL password, a sqlcmd connection, or a table read in an established ERP SQL workflow.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-sql\u002FSKILL.md",[],[33,105,106,107,38,108,109,110,111,112,113,114,37,115,116,117,118,119,120,121],"sql","erp sql","only","operations","requests","password","use","sqlcmd","system","environment","table","bounded","environments","direct","read","workflow","access",{"skillNo":123,"name":124,"nameZh":125,"description":126,"descriptionZh":127,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":128,"categories":129,"keywords":134,"publishedAt":51},"01M69AR3MEKCYBD8FEKK80KJ5B","dv-solution","Dataverse 解决方案部署管理","Dataverse solution lifecycle — create, export, import, promote across environments, and validate deployments. Use when the user wants to package customizations, deploy to another environment, or move work between dev \u002F test \u002F prod.","Dataverse 解决方案生命周期——创建、导出、导入、跨环境提升以及验证部署。当用户想要打包自定义配置、部署到其他环境，或在开发\u002F测试\u002F生产环境之间迁移工作成果时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-solution\u002FSKILL.md",[130,131],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":132,"categoryName":133,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[135,136,137,138,139],"dv solution","dataverse","deploy","validate","test",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":154,"publishedAt":51},"01M69AR0SGRQFYSFT071ZAS19V","dv-security","Dataverse 安全权限管理","Security-role assignment, user access, application users, business units, and admin self-elevation in Dataverse environments. Use when the user wants to give someone access, grant a role, become an admin, or add a service principal.","Dataverse 环境中的安全角色分配、用户访问、应用程序用户、业务单元以及管理员自我提权。当用户想要授予某人访问权限、授予角色、成为管理员或添加服务主体时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-security\u002FSKILL.md",[148,151],{"categoryNo":149,"categoryName":150,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":152,"categoryName":153,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTFDX7M21YT75733H52N36","身份与访问管理",[155,156,136],"dv security","security",{"skillNo":158,"name":159,"nameZh":160,"description":161,"descriptionZh":162,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":163,"categories":164,"keywords":171,"publishedAt":51},"01M69AQX9TXX472D6Q59RYSMXY","dv-query","Dataverse 数据查询分析","Bulk reads, multi-page iteration, and analytics over Dataverse data. Use when the user wants to read, list, filter, aggregate, group, join, or analyze records — including pandas DataFrame workflows and notebook exploration. Also covers ERP (Finance and Operations \u002F F&O) business-data reads and runtime entity, schema, or action discovery; load dv-overview first, then this skill.","对 Dataverse 数据进行批量读取、多页迭代和分析。当用户想要读取、列出、筛选、聚合、分组、联接或分析记录时使用——包括 pandas DataFrame 工作流和 notebook 探索。还涵盖 ERP（Finance and Operations \u002F F&O）业务数据读取，以及运行时实体、架构或操作发现；请先加载 dv-overview，再加载本技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-query\u002FSKILL.md",[165,168],{"categoryNo":166,"categoryName":167,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":169,"categoryName":170,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[172,173,174,175,176,111,119,177,178,179,136,180,181,182,183,184,185,186,187,188],"dv query","query","pandas","bulk","user","records","analytics","workflows","exploration","iteration","notebook","join","filter","analyze","dataframe","list","discovery",{"skillNo":190,"name":191,"nameZh":192,"description":193,"descriptionZh":194,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":195,"categories":196,"keywords":201,"publishedAt":51},"01M69AQSP7EV1XGQAA69Y9MJ8Y","dv-overview","Dataverse\u002FPower Platform 总览","Foundational cross-cutting context for Dataverse \u002F Power Platform work — scope and the skill map, the tool-capability reference, the safety rules, and the safe change lifecycle. Use when the user mentions Dataverse, Dynamics 365, Power Platform, CRM, or ERP; load this first for orientation. Specialist skills self-route via their own frontmatter triggers. Finance and Operations \u002F F&O business-data requests also require this skill first, then dv-query for reads.","Dataverse \u002F Power Platform 工作的基础性跨领域上下文——包括范围与技能图谱、工具能力参考、安全规则以及安全变更生命周期。当用户提及 Dataverse、Dynamics 365、Power Platform、CRM 或 ERP 时使用；应首先加载此技能以进行定位。专家技能通过其自身的 frontmatter 触发器自行路由。财务与运营（Finance and Operations \u002F F&O）业务数据请求也需要先加载此技能，然后再使用 dv-query 进行读取。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-overview\u002FSKILL.md",[197,198],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":199,"categoryName":200,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[202,203,204,40,205,206,207,208,209,173,210,211,212,213,136,214,50,215,216,33],"dv overview","overview","skill map","Safety","crm","work","route","self","map","frontmatter","scope","power","safe","context","capability",{"skillNo":218,"name":219,"nameZh":220,"description":221,"descriptionZh":222,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":223,"categories":224,"keywords":227,"publishedAt":51},"01M69AQP3WCSN3K3DCRD0E2PFF","dv-metadata","Dataverse 数据模型设计与查看","Dataverse schema authoring and inspection — tables, columns, relationships, forms, and views. Use when the user wants to define, evolve, or inspect the data model — add a column, create a table, set up a lookup, customize a form, build a view, or list existing columns and relationships.","Dataverse 架构编写与检查——表、列、关系、表单和视图。当用户希望定义、演进或检查数据模型时使用——添加列、创建表、设置查找（lookup）、自定义表单、构建视图，或列出现有的列和关系。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-metadata\u002FSKILL.md",[225,226],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":199,"categoryName":200,"taxonomyType":28,"taxonomyTypeDesc":29},[228,229,136],"dv metadata","customize"]