Working with AI agents¶
A coding agent (Claude Code, Cursor and similar) edits text files, and an ArcRmlUI screen is text: .rml and .rcss
files, not a binary asset like a UMG Widget Blueprint. The plugin ships skills for the agent and a check the agent can
run on its own output.
What ships¶
The plugin folder (the one that holds ArcRmlUI.uplugin) has an Extras folder; Config/FilterPlugin.ini lists
/Extras/..., so it is part of the plugin you install.
| Folder | What it holds |
|---|---|
Extras/AgentSkills/ |
Two skills, arc_rml_translate and arc_rml_screen, and a README.md that says how to install them. |
Extras/DcConvert/ |
The converter script the first skill runs, and its README.md. |
arc_rml_translate converts a Claude Design .dc.html mockup with dc2rml.py and finishes only the bindings and the
Manual entries of the converter's report. arc_rml_screen wires a screen document to view models, input, focus
areas and Back, and is used with the first when the file is a screen. The converter itself is described in
Converting Claude Design mockups.
Install the skills¶
Claude Code. Copy each folder of Extras/AgentSkills/ into <Project>/.claude/skills/ under its kebab-case name:
Copy-Item -Recurse "<ArcRmlUI>\Extras\AgentSkills\arc_rml_translate" "<Project>\.claude\skills\arc-rml-translate"
Copy-Item -Recurse "<ArcRmlUI>\Extras\AgentSkills\arc_rml_screen" "<Project>\.claude\skills\arc-rml-screen"
After a plugin update, delete the two folders in .claude/skills/ and copy again: copying onto an existing folder
puts the new copy inside the old one, and the agent keeps reading the old skill.
Other agents. Copy the two folders anywhere in the project and paste this into CLAUDE.md or AGENTS.md, with the
real path:
## ArcRmlUI
To convert a Claude Design `.dc.html` mockup to RML, read `<path>/arc_rml_translate/SKILL.md` first and follow it.
For a screen document also read `<path>/arc_rml_screen/SKILL.md`.
Check that it works. Ask the agent to convert one screen of a mockup (a document, not a single component).
PASS: the converter's summary line shows 0 errors (exit code 0) and Validate RML on the output
folder reports 0 errors. FAIL: an error in either.
Let the agent check its own work¶
An agent that writes a document can validate it without you. The validator compiles documents and style sheets and checks them against the project: view model fields and functions, images, fonts, localization keys and input mappings. It needs the editor, and runs three ways:
- the Validate RML entry in the Content Browser,
- the console command
ArcRml.Validate <Path>in the editor, - the commandlet
UnrealEditor-Cmd.exe "<Project>.uproject" -run=ArcRmlValidate -Paths="<Path>" -json="<File>", which an agent can run from a shell: PASS is exit code 0, FAIL is exit code 2, and-jsonwrites each diagnostic withfile,line,severity,codeandmessage.
In a running game (not a Shipping build) the console commands ArcRml.Open, ArcRml.Click,
ArcRml.SimulateKey and ArcRml.UIAction open a document and simulate input; ArcRml.Open and ArcRml.Close also
exist in a Shipping build.
What to point the agent at¶
The skills name the guide pages they need. For your own screens, give the agent these:
- Attributes, Event reference and Expressions: what a document may declare, bind and call.
- CSS support and Limits: what the engine drops or does not do, so the agent does not write it.
- Coming from HTML and CSS: where a document differs from a web page, the main source of wrong first drafts.
What the skills do not cover¶
- They start from a Claude Design
.dc.htmlmockup. There is no skill for hand-written HTML, a Figma file or another design tool; for a plain.htmlpage use Converting an HTML page. - They are written for Claude Code and plain
CLAUDE.md/AGENTS.mdinstructions; the plugin ships no Cursor rules or other agent-specific files. - The agent does not decide your game data: lists a mockup builds in its script, and the view models behind them, are for you to supply (Lists built in the mockup).