Updated 26 September 20264 min read
A bundle is one JSON file describing libraries, their prompts and their skills, with one or more versions of each skill. The Import tab of the back office checks a bundle against what is already stored, lists every change it would make, and writes nothing until you confirm. The same tab exports any library as a bundle.
The back office is for administrators of your PromptControl deployment. Back office appears in the sidebar only for accounts on the deployment's administrator list, and everyone else is refused. Other users can load prompts with a library's own JSON tools, described at the end.
The bundle format
{
"format": "promptcontrol.bundle",
"version": 1,
"owner": "owner@your-company.com",
"libraries": [
{
"key": "finance-team",
"name": "Finance team",
"description": "Month-end close and the board pack.",
"publish": { "public": true, "listed": false, "publisher": "Finance team" },
"prompts": [
{
"key": "variance-commentary",
"title": "Variance commentary",
"content": "For each P&L line more than 5% from budget, write one sentence explaining the variance.",
"tags": ["finance", "month-end"]
}
],
"skills": [
{
"key": "meeting-notes",
"files": {
"SKILL.md": "---\nname: meeting-notes\ndescription: Turns a meeting transcript into decisions, owners and dates. Use when the user pastes a transcript.\n---\n\n# Meeting notes\n\n1. List every decision.\n"
}
}
]
}
]
}
| Field | Required | Meaning |
|---|---|---|
owner | For new libraries | Email of the account that will own the libraries the bundle creates. It must already exist; an import never creates accounts. A library can set its own owner. |
key | Yes | The library's permanent ID: letters, digits, - and _, up to 128 characters, starting with a letter or digit. |
name, description | name | As shown in the app and on the public page. |
publish | No | public, listed (in Explore, which needs public) and publisher (the "by …" name, never an email). Leave it out to keep the current settings. |
prompts | No | Each needs title and content; tags and datasets are optional. |
skills | No | A key, plus either files for one version or versions (oldest first, each with files and an optional note). files maps each path to its text and must include SKILL.md. |
prune | No | true deletes the library's prompts and skills that the bundle does not name. |
Give every prompt a key too: without one, the key is made from the title, and renaming the prompt later creates a second prompt instead of updating the first.
Limits per bundle: 50 libraries; per library, 2,000 prompts and 200 skills; per skill, 20 versions; per version, 100 files, all of them text.
Check, then import
- Open Back office in the sidebar and choose Import.
- Click Open a file, or paste the bundle into the box. Start from an example fills in a working sample.
- Click Check. Nothing is written.
- Read the result. Anything under Nothing can be imported until these are fixed blocks the import; notes under Worth knowing do not. Each library then lists its changes line by line, from new prompts and skill versions to publishing changes.
- Click Import. It accepts only the exact text you checked; edit anything and you must check again.
Every import is recorded in the back office Log with your address. If some writes fail, the result says so, and running the same import again completes it. A bundle too large for the browser can be split, or run from the command line with pnpm import:bundle, which does the same check and import.
What an import never does
- It never duplicates. Everything is matched by key: what exists is updated, the rest is created, and importing the same bundle twice changes nothing.
- It never rewrites a skill's history. A version whose files match a stored version is skipped; new versions are added after the existing ones.
- It never changes a library's owner. A bundle that names a different owner for an existing library gets a warning. Members and invitations are left alone.
- It never deletes without
prune, and the check lists every prompt and skill that would be removed. - It never imports half a bundle. If any part fails the check, nothing is written.
Export a library
Under Export a library as a bundle, enter the library's ID, tick every version of each skill if you want full skill histories, and click Download. The file uses the library's real IDs as keys, so you can edit it and import it again to update the library in place, or keep it as a backup. Members, favorites, share links and the contents of uploaded attachments are not included.
A public library's ID is the last part of its public page address. For any library, it appears as id when you export Libraries from Resources with CSV or JSON.
JSON tools inside a library
Owners, sub-owners and editors can load prompts without the back office, from the library's Prompts tab:
- Import appends prompts from JSON, as does the JSON import tab under Add. Each import adds new prompts, so importing the same file twice creates duplicates.
- JSON opens every prompt in the library as editable JSON. Save changes updates prompts whose
idis still in the text, adds entries without anidas new prompts, and deletes prompts whose entries you removed. Edits to the library's name and description in this text are not saved.
Both accept a plain list of prompts with title, content and tags, or a document with "version": 1 and a prompts list whose entries can also carry datasets. They handle prompts only, not skills, and read at most 500 prompts at a time. For a library of more than 500 prompts, use a bundle instead: JSON refuses to save a library it cannot hold whole, rather than deleting the prompts it could not read.