Skip to content

How Claude builds content

Claude does not click through your database. It writes one JSON file, a draft, that names everything by name: no IDs and no coordinates. The Intrigue Drafts tool inside the Unity editor checks the draft against your real database and node classes, then writes it in. Claude never edits .asset files, scenes or prefabs itself.

  1. Connect. Claude calls intrigues_status. The answer gives the project folder and the work folder. If Unity is compiling or in Play mode, Claude says so and waits for you.
  2. Read your world. Claude calls intrigues_inventory and reads what you already have: variables, actors, clans, roles, requirement sets and text languages. It reuses what exists before it invents something new.
  3. Plan. Claude writes a short plan in its reply: the story beats, who may start the scheme, what it reads and changes, what you decide, where chance decides, and what ends it early. It lists its assumptions and goes on. It asks a question only when a wrong guess would be costly to undo, and at most two in one message.
  4. Write the draft. The file goes to IntriguesAI/drafts/ in your project folder. Everything the scheme needs is in the same draft. Player-facing text is in the language of your request.
  5. Check it. Claude calls intrigues_validate with audit: "strict". This changes nothing in your database.
  6. Fix it. Claude fixes every error and every strict audit finding where the report says, then checks again.
  7. Apply it. Claude calls intrigues_apply with save: false and open: true. The content goes into the database in one undo step and opens in the Studio.
  8. Summarise. Claude tells you what it made, what it assumed and what is left for you to do by hand.
ClaudeExample, not a recorded run
You

Create an assassination intrigue.

Claude

I will check the connection and read your database. Then I will write a draft and check it before I add it.

intrigues_statusproject folder, work folder, database, Play mode and compile state
intrigues_inventorywhat your database holds
intrigues_validatefirst check: Claude reads the whole report
intrigues_validatesecond check, after fixing what the first one listed
intrigues_applyadds the scheme in one undo step and opens it in the Studio
Claude

What was created, my assumptions, what is left for you, and how to play-test it.

The answer of intrigues_validate holds:

  • ok and a summary.
  • counts: errors, warnings, infos, and the audit counts audit.strict and audit.info.
  • problems: each one has severity, code, path, message, and often fix and suggestions.
  • plan: what apply will create or reuse.
  • next: what to do now.

The first part of a problem code says which layer found it.

Prefix Meaning
P- The JSON cannot be read.
S- An unknown key, node type, field or output, or a value of the wrong type.
N- A name does not resolve, exists already, or needs your confirmation.
G- Graph structure: links, unreachable nodes, run order.
D- The node’s own check, the same message the Studio shows.
A- Audit: valid but incomplete.
C- Apply itself: nothing to change, a build that differs from the check, or a step after apply that failed.
E- Export: something a draft cannot hold completely.
X- Environment: Play mode, compiling, database choice, path, an exception.

Claude aims for a draft with zero errors and zero strict audit findings. It reads the information findings once, and acts only where they are right.

After it has read the first full answer, Claude may ask for a short one with brief: true. That answer keeps errors and warnings in full and only counts the information lines.

Claude checks at most 5 times. If errors remain after the fifth round, it stops, shows you the problems in plain words and asks how to go on. It never applies a draft that has errors.

  • It checks the draft again, then writes it into the database in one undo step. Cmd+Z (Ctrl+Z) removes the whole draft.
  • It does not save, and Claude saves only if you ask. Press Cmd+S (Ctrl+S) to keep the change.
  • The answer adds created (each item with its ID and action), undo, saved and backups.
  • Apply is refused in Play mode (X-PLAYMODE), while Unity compiles (X-COMPILING) and during a test run in the Studio (X-TEST-RUN). Checking still works.
  • Apply refuses to change the demo and example databases unless Claude is told to allow it (X-PACKAGE-DATABASE). Claude offers a copy first.

Before apply changes an item that already exists, it writes the old version to IntriguesAI/backups/<time>/ in your project folder, one file per item, named <kind>-<name>.json. The folder name is the date and time of the apply. Each file is a draft that puts the old version back. Changed texts go together into texts.json. Apply never overwrites or deletes a backup.

If a backup cannot be written, apply stops and changes nothing (X-BACKUP).

Claude still plans and writes the full draft. It then says plainly that the draft is not validated and not applied, and where the file is. You can check and add it by hand: MCP in plain words lists the menu items.

Change or fix existing content, The nine Intrigues tools, or what to do when something goes wrong.