Model Dependency and Coupling
Inspect indexed D365FO models, their declared dependencies, and architectural coupling metrics (fan-in, fan-out, instability, cycles). Use when the user asks "what models depend on X", "is there a cycle", "what's the layer of model Y", or "show coupling".
Install
npx skills add dynamics365ninja/d365fo-cli --skill model-dependency-and-couplinggit clone --depth 1 https://github.com/dynamics365ninja/d365fo-cli.git /tmp/d365fo-cli
mkdir -p ~/.claude/skills
cp -r /tmp/d365fo-cli/skills/anthropic/model-dependency-and-coupling ~/.claude/skills/model-dependency-and-couplingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
> ⛔ **NEVER write X++ AOT XML files directly** via PowerShell, terminal file commands (`Set-Content`, `Out-File`, `New-Item`), editor write tools, or any raw text approach. The XML schema (`<AxClass>`, `<AxTable>`, `<AxForm>`, `<Methods>`, `<SourceCode>`) is proprietary — LLMs have not been trained on it reliably. **ALWAYS use `d365fo generate …` commands** to produce correct AOT XML. If `d365fo` is unavailable in PATH, stop and ask the user to install it.
# Models, dependencies, coupling
> The CLI's `models` group reads the `Descriptor/*.xml` files indexed during
> `d365fo index extract` — no live AOT round-trip needed. All commands return
> JSON envelopes; pair with `jq` for narrow projections.
## Inspect models
```sh
# List indexed models with publisher / layer / customisation flag
d365fo models list --output json
# Direct + transitive dependencies
d365fo models deps FleetManagement --output json
```
`models list` output shape: `{count, items: [{modelId, name, publisher,
layer, isCustom}]}` (`publisher`/`layer` are frequently absent — omitted
when the Descriptor XML didn't populate them). `models deps` output shape:
`{model: {modelId, name, publisher, layer, isCustom}, dependsOn: string[],
dependedBy: string[]}`.
## Coupling metrics
```sh
d365fo models coupling --output json
d365fo models coupling --output json | jq '.data.cycles'
```
Output highlights:
| Metric | Meaning | Action threshold |
|---|---|---|Details
- Skill name
model-dependency-and-coupling- Repository
- dynamics365ninja/d365fo-cli
- Path
skills/anthropic/model-dependency-and-coupling/SKILL.md- Repo updated
- 16 November 2026
FAQ
What does the Model Dependency and Coupling skill do?
Inspect indexed D365FO models, their declared dependencies, and architectural coupling metrics (fan-in, fan-out, instability, cycles). Use when the user asks "what models depend on X", "is there a cycle", "what's the layer of model Y", or "show coupling".
How do I install the Model Dependency and Coupling skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add dynamics365ninja/d365fo-cli --skill model-dependency-and-coupling. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Model Dependency and Coupling popular?
It lives in dynamics365ninja/d365fo-cli, which has 49 GitHub stars and 26 forks.
Related skills
Analytics and Er
49dynamics365ninja/d365fo-cli
Model the D365FO analytical and document-generation surfaces — aggregate measurements and the entity store, tiles/cues and KPIs, and Electronic Reporting (ER). Invoke when the user asks about a workspace tile, a KPI, an aggregate measurement, the entity store, Power BI content, or running/binding an ER format.
Barcode Scanning
49dynamics365ninja/d365fo-cli
Barcodes and scanner input in D365FO — printing vs scanning are unrelated code paths, GS1-128 application identifiers, item-barcode resolution, and where the platform parses a scan for you. Invoke when the user mentions barcodes, GS1, GTIN, SSCC, scanning, scanners, item barcodes, or barcode setup.
Build Error Triage
49dynamics365ninja/d365fo-cli
Turn a D365FO compiler, best-practice, or runtime error into the specific fix it calls for. Invoke when the user pastes a build log, an xppc message, a BP violation, or an infolog stack trace and asks what it means or how to fix it.
Number Sequence Patterns
49dynamics365ninja/d365fo-cli
Register and consume a D365FO number sequence — the NumberSeqApplicationModule subclass, the parameters-table accessor, form auto-numbering, and runtime fetch. Invoke when the user asks to add an auto-numbered id, register a number sequence for a module, or wire NumberSeqFormHandler into a form.
List Teams
49toffyui/ccteams
List all available ccteams agent teams with their names, descriptions, and tags.
Object Extension Authoring
49dynamics365ninja/d365fo-cli
Create a Table / Form / Edt / Enum extension, a new EDT (Extended Data Type), or a new base enum in D365 Finance & Operations. Use when the user asks to "extend a table", "add a field to standard CustTable", "extend an EDT", "add an enum value", "extend a form via FormExtension", "create an EDT", "create a new EDT", "create an enum", "generate edt", or "generate enum".
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.