A first session: build a small scheme with Claude
This page walks through one short session. You ask for a small scheme. Claude checks the connection, reads your database, writes a draft, checks it, adds it, and opens it in the Studio. You can undo the whole thing with one step.
The conversation below is an example, not a recorded run. Your Claude will use its own words and make its own choices. The steps and the tools are the real ones. For a longer session with a bigger scheme, see Your first prompt, step by step.
Before you start
Section titled “Before you start”You need:
- Claude Code with the Intrigues skill installed. See Set up Claude Code.
- Unity connected to Claude through an MCP server. See MCP in plain words.
- Unity open on your project, out of Play mode, with the Studio not in a test run.
- A database of your own. Claude does not write into the Demo or the Example database. To try on the Demo, duplicate its asset, move the copy out of the Intrigues folders, and tell Claude its path.
- Claude Code may ask you to allow each Intrigues tool the first time it uses it.
Check the connection before you ask for anything big:
- In Claude Code, type:
Call intrigues_status and tell me which database it would use. - What you should see: Claude calls
intrigues_statusand tells you the Intrigues version, the database it would use, and whether Unity is ready. It names the database path.
If Claude says it has no Intrigues tool, go to Troubleshooting.
The prompt
Section titled “The prompt”Type one request:
Create a small scheme: the Conspirator sends the Target a gift, and a roll of chance decides whether it is accepted.
You do not need to say more. Claude decides the details and tells you what it assumed.
What Claude does, in order
Section titled “What Claude does, in order”- It connects. Claude calls
intrigues_status. From the answer it takes the project folder and the work folder, and it checks that Unity is not compiling and not in Play mode. If Unity is busy, Claude tells you and waits. - It reads your world. Claude calls
intrigues_inventory, then readsIntriguesAI/inventory.md. It uses what you already have, for example aGoldvariable, instead of inventing a second one. - It updates the catalog if needed. Claude compares the catalog hash from
intrigues_statuswith the one in its catalog file. If they differ, it callsintrigues_catalog. - It plans. Claude writes a short plan in its reply: the story beats, who may start the scheme, what it reads and changes, where chance decides, and its assumptions. It asks a question only when a wrong guess would be costly to undo.
- It writes the draft. Claude saves a JSON file under
IntriguesAI/drafts/. You do not have to read it. The format is in Draft format reference. - It checks the draft. Claude calls
intrigues_validatewithaudit: "strict". This changes nothing in your database. If the report has errors, Claude fixes each one at the place the report names and checks again. Claude checks at most 5 times in all. If errors remain after the fifth check, it stops and asks you. - It adds the draft. Claude calls
intrigues_apply, with the same options,save: falseandopen: true. - It tells you what it made. Claude summarises: what was created, its assumptions, and what is left for you to do by hand.
What you should see in the conversation: Claude tells you each step in plain words. Between the steps it names the tool it is calling. If the first check finds a problem, you see Claude say what it fixed.
What you see in Unity
Section titled “What you see in Unity”When intrigues_apply finishes:
- The Intrigues Studio opens, or comes to the front, on the new scheme. You see its graph.
- The scheme is in your database, and the window shows Unity’s unsaved-changes mark, because nothing is saved.
- If Claude had to change something you made earlier, a line that starts with
Intrigue Drafts:appears in the Console. For a brand new scheme there is none.
Click the nodes to read them. The nodes read as plain English. The Studio course explains the window.
Undo it, or keep it
Section titled “Undo it, or keep it”- Keep it: press Cmd+S (Ctrl+S) in the Studio. Claude saves only if you ask.
- Undo it: choose Edit > Undo in Unity. One step removes the whole draft. The Studio has no undo key of its own.
If you undo, the scheme disappears from the database. Claude’s draft file stays in IntriguesAI/drafts/.
Optional: watch it play
Section titled “Optional: watch it play”When you want to see how the scheme goes in your game, ask Claude to read it. This step is optional. Nothing else on this page depends on it.
- Open a scene where the Intrigue Manager uses this database, a character is set as the player, and the Intrigues UI is in the scene. Press Play.
- The gift has a target, so start it from the target’s window, not your own: click the target’s card (for example in your clan window, C, or among the relatives in your own window, P). Under Schemes to start, find the scheme and click Start. Your own window lists only schemes that need no target. See Play your scheme.
- Ask Claude:
Read how the scheme is going. - What you should see: Claude calls
intrigues_scheme_report. It tells you the scheme’s status, its objective, who takes part, the odds the scheme states, and the newest log lines. It changes nothing in your game or your database.
If the game is not playing, Claude says so and asks you to press Play. If Claude says runs were left out because no player takes part in them, ask it to list all runs. Such a run keeps no log unless its scheme has Always keep a log on. See Troubleshooting.
Change it by talking
Section titled “Change it by talking”Ask for a change in your own words:
Make the gift cost less and add a second chance if it is refused.
Claude edits its own draft, sets "mode": "replace" on that scheme in the draft, checks it, and applies it again. It does this without asking, because it made the scheme and nobody edited it since. If you edited the scheme yourself, Claude exports it first and asks you before it replaces anything. See Change or fix existing content.
If something goes differently
Section titled “If something goes differently”| What you see | What it means | Where to go |
|---|---|---|
| Claude says it has no Intrigues tool | The connection is missing or the tools are off. | Troubleshooting |
| Claude says Unity is in Play mode or compiling | Apply and scene changes wait. | Stop Play mode, or wait for the compile. |
| Claude says the database is one that ships with Intrigues | It will not write into the Demo or Example. | Duplicate the asset, move the copy out of the Intrigues folders, and pass the copy’s path. |
| Claude asks whether it may replace something | A draft would change something you made. | Say yes or no. It changes nothing without a yes. |
| The Studio shows nothing new | The apply failed, or open was off. |
Ask Claude what the apply report said. |
| Claude says the game is not playing | intrigues_scheme_report needs Play mode. |
Press Play, then ask again. |
The nine Intrigues tools, Safety and consent, Build houses, clans and cultures by prompt.