# trudax/d365fo-xpp-skills architecture

> Architecture diagram of the GitHub repository trudax/d365fo-xpp-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/trudax/d365fo-xpp-skills
- Repository: https://github.com/trudax/d365fo-xpp-skills

## Overview

This repository is a Claude Code marketplace plugin for D365FO X++ development. Developers ask Claude to change or inspect X++ code; Claude invokes the relevant skill, which applies domain guidance or runs supporting scripts. The plugin’s five documented capabilities cover compile/build, cross-reference lookup, trace analysis, conventions, and extension patterns. The repository also contains a browser-side MCP helper under notes, which is outside the plugin. Relationships among skill instructions and supporting scripts are based on the README; their implementation details were not sampled.

Main entry points: [`plugins/trud-d365fo-xpp/skills/d365-xpp-compile/SKILL.md`](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/SKILL.md) (Compile Skill), [`plugins/trud-d365fo-xpp/skills/d365-xpp-xref/SKILL.md`](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-xref/SKILL.md) (Cross-reference Skill), [`plugins/trud-d365fo-xpp/skills/d365-xpp-xref/scripts/Find-XppReference.ps1`](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-xref/scripts/Find-XppReference.ps1) (Xref Query), [`plugins/trud-d365fo-xpp/skills/d365-xpp-trace-parser/SKILL.md`](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-trace-parser/SKILL.md) (Trace Skill)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_plugin["X++ Skills"]
  node_compile["Compile Skill<br/>[SKILL.md]"]
  node_xref["Cross-reference Skill<br/>[SKILL.md]"]
  node_xrefquery["Xref Query"]
  node_trace["Trace Skill<br/>[SKILL.md]"]
  node_tracescripts["Trace Queries"]
  node_conventions["Conventions Skill<br/>[SKILL.md]"]
  node_pattern["Form Pattern Check"]
  node_extensions["Extensions Skill<br/>[SKILL.md]"]
end

subgraph group_support["Compile Support"]
  node_build["Project Build"]
  node_project["Project Items"]
  node_deploy["Deploy and Sync<br/>[XppDeploy.ps1]"]
  node_metadata["Metadata Check"]
  node_common["X++ Helpers<br/>[XppCommon.ps1]"]
end

subgraph group_notes["MCP Note"]
  node_mcphelper["Browser MCP Helper<br/>[mcp-helper.js]"]
end

node_developer(("Developer"))
node_xrefdb[("Xref Database")]
node_tracedb[("Trace Parser Database")]
node_aos{{"D365 AOS MCP"}}

node_developer -->|"requests build"| node_compile
node_developer -->|"asks usage"| node_xref
node_developer -->|"asks trace analysis"| node_trace
node_developer -->|"creates elements"| node_conventions
node_developer -->|"writes or reviews"| node_extensions
node_compile -.->|"adds elements"| node_project
node_compile -.->|"builds project"| node_build
node_compile -.->|"checks metadata"| node_metadata
node_compile -.->|"syncs and restarts"| node_deploy
node_compile -.->|"uses helpers"| node_common
node_xref -.->|"queries references"| node_xrefquery
node_xrefquery -->|"queries"| node_xrefdb
node_trace -.->|"runs queries"| node_tracescripts
node_tracescripts -.->|"reads trace data"| node_tracedb
node_conventions -.->|"checks forms"| node_pattern
node_mcphelper -->|"calls MCP"| node_aos

click node_compile "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/SKILL.md"
click node_build "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/Invoke-XppProjectBuild.ps1"
click node_project "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/Add-XppProjectItem.ps1"
click node_deploy "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppDeploy.ps1"
click node_metadata "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppMetadataCheck.ps1"
click node_common "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppCommon.ps1"
click node_xref "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-xref/SKILL.md"
click node_xrefquery "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-xref/scripts/Find-XppReference.ps1"
click node_trace "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-trace-parser/SKILL.md"
click node_tracescripts "https://github.com/trudax/d365fo-xpp-skills/tree/main/plugins/trud-d365fo-xpp/skills/d365-xpp-trace-parser/scripts"
click node_conventions "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-conventions/SKILL.md"
click node_pattern "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-conventions/scripts/Invoke-XppFormPattern.ps1"
click node_extensions "https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-extensions/SKILL.md"
click node_mcphelper "https://github.com/trudax/d365fo-xpp-skills/blob/main/notes/d365mcp-local-vhd/mcp-helper.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_compile,node_xref,node_xrefquery,node_trace,node_tracescripts,node_conventions,node_pattern,node_extensions toneBlue
class node_build,node_project,node_deploy,node_metadata,node_common,node_xrefdb,node_tracedb toneAmber
class node_mcphelper toneMint
class node_developer,node_aos toneIndigo
```

## Components

### X++ Skills

- [Compile Skill](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/SKILL.md): `plugins/trud-d365fo-xpp/skills/d365-xpp-compile/SKILL.md`
- [Cross-reference Skill](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-xref/SKILL.md): `plugins/trud-d365fo-xpp/skills/d365-xpp-xref/SKILL.md`
- [Xref Query](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-xref/scripts/Find-XppReference.ps1): `plugins/trud-d365fo-xpp/skills/d365-xpp-xref/scripts/Find-XppReference.ps1`
- [Trace Skill](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-trace-parser/SKILL.md): `plugins/trud-d365fo-xpp/skills/d365-xpp-trace-parser/SKILL.md`
- [Trace Queries](https://github.com/trudax/d365fo-xpp-skills/tree/main/plugins/trud-d365fo-xpp/skills/d365-xpp-trace-parser/scripts): `plugins/trud-d365fo-xpp/skills/d365-xpp-trace-parser/scripts`
- [Conventions Skill](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-conventions/SKILL.md): `plugins/trud-d365fo-xpp/skills/d365-xpp-conventions/SKILL.md`
- [Form Pattern Check](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-conventions/scripts/Invoke-XppFormPattern.ps1): `plugins/trud-d365fo-xpp/skills/d365-xpp-conventions/scripts/Invoke-XppFormPattern.ps1`
- [Extensions Skill](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-extensions/SKILL.md): `plugins/trud-d365fo-xpp/skills/d365-xpp-extensions/SKILL.md`

### Compile Support

- [Project Build](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/Invoke-XppProjectBuild.ps1): `plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/Invoke-XppProjectBuild.ps1`
- [Project Items](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/Add-XppProjectItem.ps1): `plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/Add-XppProjectItem.ps1`
- [Deploy and Sync](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppDeploy.ps1): `plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppDeploy.ps1`
- [Metadata Check](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppMetadataCheck.ps1): `plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppMetadataCheck.ps1`
- [X++ Helpers](https://github.com/trudax/d365fo-xpp-skills/blob/main/plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppCommon.ps1): `plugins/trud-d365fo-xpp/skills/d365-xpp-compile/scripts/XppCommon.ps1`

### MCP Note

- [Browser MCP Helper](https://github.com/trudax/d365fo-xpp-skills/blob/main/notes/d365mcp-local-vhd/mcp-helper.js): `notes/d365mcp-local-vhd/mcp-helper.js`

### Other components

- **Developer**
- **Xref Database**
- **Trace Parser Database**
- **D365 AOS MCP**

## Connections

- Developer → Compile Skill: requests build (evidence: `README.md`)
- Developer → Cross-reference Skill: asks usage (evidence: `README.md`)
- Developer → Trace Skill: asks trace analysis (evidence: `README.md`)
- Developer → Conventions Skill: creates elements (evidence: `README.md`)
- Developer → Extensions Skill: writes or reviews (evidence: `README.md`)
- Compile Skill → Project Items: adds elements (evidence: `README.md`)
- Compile Skill → Project Build: builds project (evidence: `README.md`)
- Compile Skill → Metadata Check: checks metadata (evidence: `README.md`)
- Compile Skill → Deploy and Sync: syncs and restarts (evidence: `README.md`)
- Compile Skill → X++ Helpers: uses helpers
- Cross-reference Skill → Xref Query: queries references (evidence: `README.md`)
- Xref Query → Xref Database: queries (evidence: `README.md`)
- Trace Skill → Trace Queries: runs queries (evidence: `README.md`)
- Trace Queries → Trace Parser Database: reads trace data (evidence: `README.md`)
- Conventions Skill → Form Pattern Check: checks forms (evidence: `README.md`)
- Browser MCP Helper → D365 AOS MCP: calls MCP (evidence: `notes/d365mcp-local-vhd/mcp-helper.js`)
