Xpp Statement and Type Rules

X++ statement-level and type-system rules — switch / break, ternary, no-DB-null sentinels, casting (`as` / `is`), `using` blocks, embedded function declarations. Invoke when writing any non-trivial X++ control flow or type conversion.

49 stars 26 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add dynamics365ninja/d365fo-cli --skill xpp-statement-and-type-rules
Manual install
git clone --depth 1 https://github.com/dynamics365ninja/d365fo-cli.git /tmp/d365fo-cli
mkdir -p ~/.claude/skills
cp -r /tmp/d365fo-cli/skills/anthropic/xpp-statement-and-type-rules ~/.claude/skills/xpp-statement-and-type-rules

Personal 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.

# X++ statement & type rules

> **Sources of truth:** [learn:xpp-conditional](https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-conditional) and [learn:xpp-variables-data-types](https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-variables-data-types).

## Operators & precedence

- **TRAP: `&&` and `||` have EQUAL precedence** and evaluate left-to-right —
  `a || b && c` means `(a || b) && c`, NOT `a || (b && c)` as in C#. Always
  parenthesize mixed `&&`/`||` chains.
- Precedence (high→low): unary (`-` `~` `!`) → `*` `/` `div` `mod` `<<` `>>`
  `&` `^` → `+` `-` `|` → relational (`<` `<=` `==` `!=` `>` `>=` `like` `as`
  `is`) → `&&` and `||` (equal) → `?:`.
- `div` = integer division, `mod` = remainder — **keywords**, not `/` and `%`:
  `7 div 2 == 3`, `7 mod 2 == 1`. Plain `/` always divides as real, even
  between ints.
- `++` and `--` are **statements** with no prefix/postfix value distinction —
  `int y = i++;` is a syntax error; increment on its own line.
Read the full skill on GitHub

Details

Skill name
xpp-statement-and-type-rules
Path
skills/anthropic/xpp-statement-and-type-rules/SKILL.md
Repo updated
16 November 2026

FAQ

What does the Xpp Statement and Type Rules skill do?

X++ statement-level and type-system rules — switch / break, ternary, no-DB-null sentinels, casting (`as` / `is`), `using` blocks, embedded function declarations. Invoke when writing any non-trivial X++ control flow or type conversion.

How do I install the Xpp Statement and Type Rules skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add dynamics365ninja/d365fo-cli --skill xpp-statement-and-type-rules. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Xpp Statement and Type Rules popular?

It lives in dynamics365ninja/d365fo-cli, which has 49 GitHub stars and 26 forks.

Related skills

Analytics and Er

49

dynamics365ninja/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.

Data & Analytics26

Barcode Scanning

49

dynamics365ninja/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.

AI, LLMs & Agents26

Build Error Triage

49

dynamics365ninja/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.

AI, LLMs & Agents26

Chinese Grandpa

44

Jakeschincariol/unhinged-claude-skills

Compresses long, repeated sub-agent instructions by translating them into Mandarin (more meaning per character) to slash the token bill, then dispatches the compressed brief to a fleet of sub-agents while preserving original intent; invoke via /chinese-grandpa when you are about to fan out the same heavy instructions to many sub-agents and the cost is climbing.

AI, LLMs & Agents13

Xpp Runtime Types

49

dynamics365ninja/d365fo-cli

Use the X++ runtime type surface correctly — collections and containers, utcdatetime and time zones, .NET interop, the Dict* reflection API, and macros. Invoke when the user asks about List/Map/Set/Struct/container, date and time zone handling, calling .NET from X++, runtime metadata, or macro libraries.

AI, LLMs & Agents26

Model Recommendation

40

muralidharsoth-tech/andrew-ng-ml-claude-skills

模型自动推荐 —— 根据数据特征和预测需求,智能推荐线性回归/逻辑回归/SVM/神经网络/Softmax 回归。 当用户提到"推荐模型"、"选什么模型"、"用什么算法"、"模型选择"、"该用哪个"、 "帮我选模型"、"哪个算法合适"、"用什么方法预测"、"线性回归还是"等类似场景时触发。 适用于任何"我有数据和预测目标,但不确定该用什么模型"的需求。 不要手动画决策树——必须调用此技能来统一处理。

AI, LLMs & Agents

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.