X++ Class Authoring
Guidance for authoring or extending X++ classes in D365 Finance & Operations. Invoke whenever the user asks to "create a class", "extend a class", "add a method", or write any X++ that touches CoC.
Install
npx skills add dynamics365ninja/d365fo-cli --skill x++-class-authoringgit clone --depth 1 https://github.com/dynamics365ninja/d365fo-cli.git /tmp/d365fo-cli
mkdir -p ~/.claude/skills
cp -r /tmp/d365fo-cli/skills/anthropic/x++-class-authoring ~/.claude/skills/x--class-authoringPersonal 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. # Authoring X++ classes with the d365fo index Before you write or modify any X++ class, **ground yourself in the index**. The `d365fo` CLI replaces guessing with one-shot lookups that never pollute the conversation with long metadata dumps. ## Workflow 1. **Resolve the base class** ```sh d365fo search class <namePart> --output json d365fo get class <FullName> --output json ``` Read `methods[*].signature` to anchor overrides to the real signatures. 2. **Check for existing Chain-of-Command extensions** before writing a new one: ```sh d365fo find coc <TargetClass>::<method> --output json ``` If the result has `count > 0`, prefer extending existing logic or coordinate with the owning team rather than stacking a duplicate wrapper. 3. **Label lookups** (never hardcode display strings): ```sh d365fo labels search "<free text>" --lang en-us,cs --output json ``` Use the returned `key` (e.g. `@SYS4724`) in your X++ code. 4. **Validate at the end**:
Details
- Skill name
x++-class-authoring- Repository
- dynamics365ninja/d365fo-cli
- Path
skills/anthropic/x++-class-authoring/SKILL.md- Repo updated
- 16 November 2026
FAQ
What does the X++ Class Authoring skill do?
Guidance for authoring or extending X++ classes in D365 Finance & Operations. Invoke whenever the user asks to "create a class", "extend a class", "add a method", or write any X++ that touches CoC.
How do I install the X++ Class Authoring skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add dynamics365ninja/d365fo-cli --skill x++-class-authoring. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is X++ Class Authoring 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.
Xpp Best Practice Rules
49dynamics365ninja/d365fo-cli
Best-practice (BP) rules every generated X++ file must satisfy — today/DateTimeUtil, label-typed messages, EDT migration, nested loops, alternate keys, doc comments, label existence. Invoke whenever you scaffold or edit X++ that will eventually be linted by xppbp.exe.
Use Team
49toffyui/ccteams
Apply a named ccteams agent team to the current project by running ccteams use <team-name>.
Xpp Class and Method Rules
49dynamics365ninja/d365fo-cli
Rules for X++ class declarations, method modifiers, parameter passing, constructors, and extension methods (separate from CoC). Invoke when authoring new classes, overrides, factory methods, or extension methods.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.