DreamFXLang
Tooling

Agent skills

The four skills that ship with the plugin, and the "read the schema first" loop an agent has to follow when writing DreamFXLang.

The plugin ships four agent skills under .skill/. They are instructions for a coding agent (Claude Code and the like): how to author, build, debug and migrate effects, all headlessly.

SkillWhat it does
dream-fx-createWrites a new .dfs / .dfe / .dfm from a plain-language description, then builds it to prove it compiles
dream-fx-verifyBuilds or checks headlessly: one file, or every source root. The harness the other three call
dream-fx-diagnoseTakes a DFXnnnn, looks up the cause, explains it, fixes the source
dream-fx-decompileExports an existing Niagara system to source, or answers "how much of this project's VFX is expressible"

Point any agent at AGENTS.md in the repository root first. It is plain Markdown, so it works with any tool: the authoring loop, the commands, and the rules an agent breaks most often, plus a second section for changing the plugin.

Give the guide to the agent in your project

An agent reads the instruction file at the root of the folder it works in. In a game project that is the project root, not Plugins/DreamFX/, so it does not find the plugin's AGENTS.md by itself. Add this line to your project's instruction file (for example AGENTS.md at the project root):

Before writing or fixing any DreamFX source, read Plugins/DreamFX/AGENTS.md and follow its Authoring section.

In Claude Code you can import the file instead. Add this line to the project's CLAUDE.md:

@Plugins/DreamFX/AGENTS.md

The step everyone skips

dream-fx-create is a five-step loop, and step 2 is the one that matters:

Find the modules

dfx.ps1 list prints every module the search paths expose.

Read their real signatures

dfx.ps1 schema <Module> — once per module you intend to call.

This is the step people skip and then spend twenty minutes on. Module input names are read off real assets: names with spaces, inputs revealed by a static switch, inputs that only exist in one stack. Nobody — including a model — can guess them reliably.

Write the file

Under a source root: the project's DreamSource/FX/ or a plugin's (see the DreamSource layout).

Build it

dfx.ps1 build <file> -Force.

Fix and repeat

Diagnostics carry line and column; look the code up in diagnostics.

Note:

The proving is not optional. "It looks right" means nothing here — only a green build says the module names, the input names, the types and the switch ordering are all correct. That is why one of the four skills is nothing but a build gate.

Wiring them into your own agent

The skills are plain text plus dfx.ps1, with no other dependency. To use them in your project:

  1. let the agent run pwsh;
  2. make the engine resolvable (UE_ENGINE_ROOT or a registered EngineAssociation);
  3. package-writing commands need the editor closed — make sure the agent knows;
  4. drop the four SKILL.md files from .skill/ into your agent's skills directory.

For Claude Code, pwsh -File Plugins/DreamFX/.skill/sync-skills.ps1 copies them into the project's .claude/skills/ and fixes their links; -Check reports a stale copy.

When the agent gets it wrong

If an agent wrote source that does not build, looks wrong, or uses modules or syntax that do not exist, open an issue with the AI wrote it wrong form. It asks for the prompt, the source, and the output of:

pwsh -File Plugins/DreamFX/.skill/dfx.ps1 info

That prints the plugin, engine and OS versions without starting the engine or printing any path.

Why this language suits agents

Not because of the era — because of three concrete things:

  • The text is the only authoring surface. An agent can write text; it cannot click a Slate button.
  • Diagnostics carry a stable code and a position. DFX3003 is always the same failure mode, and the line and column point at the token — a feedback channel a program can consume, rather than a paragraph of prose.
  • The build is headless and has an exit code. "Is it right" has an answer that does not need a pair of eyes.

All three are just as good for humans. Agents only make the requirement — that the feedback channel be machine-readable — harder to ignore.

On this page