> For the complete documentation index, see [llms.txt](https://docs.spicychat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spicychat.ai/product-guides/rulebooks/import-export-and-ai.md). Agents can also search and read this documentation through its [MCP server](https://docs.spicychat.ai/~gitbook/mcp).

# Import, export and AI

You can move a Rulebook out of the app as a file and bring it back, and you can let an AI write one for you. This page covers Export, Import, Create with AI, and the card menu on My Rulebooks.

## Export and Import

Export downloads the Rulebook as a .json file. It is in the menu of every card on My Rulebooks. Import (My Rulebooks > Import) takes a .json file up to 2 MB: drop it, upload it, or paste the JSON. Before you import, it shows the meters, levels and AI rules it found and how many things need fixing. A file with problems still imports: the Rulebook opens as a private draft and each problem is shown on its row in the Editor until you fix it. It needs a cover and 2 tags before it can be made Public. A draft can hold more meters and rules than the [limits](https://docs.spicychat.ai/product-guides/rulebooks/troubleshooting-faq-and-limits.md), for example an imported library of 50 meters. The draft stays in your browser, but you cannot save, test or publish it until it is trimmed to the limits.

<figure><img src="https://3060264960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZHNBN3T5KDxoXWSU7L3d%2Fuploads%2FvAQbY5vQRlD2Ia1OXzvh%2Frulebooks-rulebook-import-empty-fit.png?alt=media" alt="Import: drop or upload a .json file, or paste JSON" width="384"><figcaption><p>Import: drop or upload a .json file, or paste JSON</p></figcaption></figure>

<figure><img src="https://3060264960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZHNBN3T5KDxoXWSU7L3d%2Fuploads%2FOO6LGR25ELdpEk989sNA%2Frulebooks-rulebook-import-paste-preview-fit.png?alt=media" alt="Import shows what the Rulebook contains before you import it" width="384"><figcaption><p>Import shows what the Rulebook contains before you import it</p></figcaption></figure>

## Create a Rulebook with AI

You can let ChatGPT, Claude or Gemini write a Rulebook for you. On the Create Rulebook screen, tap **Create with AI**:

1. **Download Skill** or **Copy Skill**. The AI Skill is a text file that teaches the AI what a Rulebook is and the exact export format.
2. Add it to Claude as a Skill, or attach it to a ChatGPT or Gemini conversation.
3. Describe your character and the meters you want. The AI answers with a JSON block.
4. Come back, tap **Import** and paste the JSON. If the import lists problems, paste them back to the AI and it fixes them.

The modal shows the **Skill version** (right now 1.4). Your downloaded Skill file has the same number at the top, as `metadata.version`: download again when the modal shows a higher number, so the AI works from the newest format.

<figure><img src="https://3060264960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZHNBN3T5KDxoXWSU7L3d%2Fuploads%2FmmNnThmn6uOZnYLYEA8r%2Frulebooks-480-create-ai-skill.png?alt=media" alt="Create with AI: get the Skill, ask the AI, import the JSON" width="390"><figcaption><p>Create with AI: get the Skill, ask the AI, import the JSON</p></figcaption></figure>

## The card menu on My Rulebooks

A saved Rulebook shows Edit, Clone, Export and Delete (Delete Rulebook when it is Public or Unlisted). A draft that is only on this device shows Edit, Duplicate, Export and Delete. The menu is the same on every device.

<figure><img src="https://3060264960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZHNBN3T5KDxoXWSU7L3d%2Fuploads%2FLHlLqzB2DIIdxeDmcHvX%2Frulebooks-d470-card-menu-fit.png?alt=media" alt="The card menu of a saved Public Rulebook" width="390"><figcaption><p>The card menu of a saved Public Rulebook</p></figcaption></figure>

***

**Up next:** Start from a Rulebook that already works.

{% content-ref url="/pages/aR1QS24jSHOMOk46gH7P" %}
[Examples to clone](https://docs.spicychat.ai/product-guides/rulebooks/examples-to-clone.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.spicychat.ai/product-guides/rulebooks/import-export-and-ai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
