Sysoperation Batch Patterns

Scaffold batch jobs, SysOperation triplets (DataContract + Service + Controller), RunBase/RunBaseBatch classes, or data migration scripts in D365 Finance & Operations. Invoke when the user asks to "create a batch job", "scaffold a SysOperation", "create a RunBase class", "build a batch class", "generate a migration script", "migrate data between tables", or "create a scheduled batch".

49 stars 26 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add dynamics365ninja/d365fo-cli --skill sysoperation-batch-patterns
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/sysoperation-batch-patterns ~/.claude/skills/sysoperation-batch-patterns

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 is proprietary. **ALWAYS use `d365fo generate …` commands** to produce correct AOT XML. If `d365fo` is unavailable in PATH, stop and ask the user to install it.

# Batch and SysOperation patterns

> **Prefer SysOperation** for all new batch jobs. Use `RunBase`/`RunBaseBatch` only
> when extending legacy code that already uses that pattern.

---

## 1. SysOperation — preferred pattern for new batch jobs

SysOperation separates concerns into three classes:

| Class | Role |
|---|---|
| `DataContract` | Parameter bag — `[DataContractAttribute]` + `[DataMemberAttribute]` on each `parmXxx()` |
| `Service` | Business logic — extends `SysOperationServiceBase`, contains the `process()` method |
| `Controller` | Entry point — extends `SysOperationServiceController`, sets menu item and execution mode |

**CLI workflow:**
Read the full skill on GitHub

Details

Skill name
sysoperation-batch-patterns
Path
skills/anthropic/sysoperation-batch-patterns/SKILL.md
Repo updated
16 November 2026

FAQ

What does the Sysoperation Batch Patterns skill do?

Scaffold batch jobs, SysOperation triplets (DataContract + Service + Controller), RunBase/RunBaseBatch classes, or data migration scripts in D365 Finance & Operations. Invoke when the user asks to "create a batch job", "scaffold a SysOperation", "create a RunBase class", "build a batch class", "generate a migration script", "migrate data between tables", or "create a scheduled batch".

How do I install the Sysoperation Batch Patterns skill?

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

Is Sysoperation Batch Patterns 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

System Objects

49

dynamics365ninja/d365fo-cli

The kernel (system) types X++ has that no AOT file declares — xRecord, Common, xSession, xApplication, Args, ClassFactory, the collection and reflection classes — why the metadata index cannot see them, and what that means for validation. Invoke when a type resolves at compile time but not in the index, when `validate references` warns about a declared type, or when reasoning about what every table buffer or object inherits.

AI, LLMs & Agents26

Ssrs Report Authoring

49

dynamics365ninja/d365fo-cli

Author or extend an SSRS report in D365 Finance & Operations — the TmpTable → Contract → DP → Controller → AxReport stack, RDL designs, and Print management integration. Invoke when the user asks to create a report, add a dataset, change a report design, or wire a report into Print management.

AI, LLMs & Agents26

Table Scaffolding

49

dynamics365ninja/d365fo-cli

Create AxTable XML in D365 Finance & Operations using business-role pattern presets (Main / Transaction / Parameter / Group / Reference / WorksheetHeader / WorksheetLine), or add fields / indexes / relations to existing tables. Use whenever the user asks to "create a table", "scaffold a master/transaction/parameter table", "add a field", or "set TableGroup / TableType".

AI, LLMs & Agents26

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