Qbort
A Claude Code plugin that generates realistic, fake customer support tickets, driven by a prompt file you write and a handful of numeric settings. It's useful for seeding demos, testing helpdesk automations, or producing sample data without touching real customer information.
There's no app to install, no API key, and no npm install. Ticket content is written within your local installation of Claude Code (through parallel subagents). A small, dependency-free Node engine owns everything structural (batching, validation and repair, sequential ids, staff/customer roles, and synthesized timestamps) and writes a tickets.json file.
Highlights
- Install as a plugin, invoke with
/qbort:generate-tickets, answer four questions, get a file.
- The creative half of the prompt is yours: a
TICKET_PROMPT.md file in your working directory describing your product, your ticket categories, and the people who file tickets.
- Every ticket gets its own one-line scenario off a globally-visible list, so batches can't converge on the same handful of topics.
- Output is a single
tickets.json file with full conversation threads ({ id, subject, status, messages: [...] }).
Requirements
- Claude Code: the plugin runs inside it.
- Node.js 20+ on your
PATH (node --version). No npm install: the engine is dependency-free ESM.
Install
/plugin marketplace add balevine/qbort
/plugin install qbort@qbort
That registers the generate-tickets skill and the restricted ticket-batch agent it spawns for each batch.
Usage
cd into the directory where you want the output. The plugin reads and writes there.
- Type
/qbort:generate-tickets.
Asking in natural language ("generate some fake support tickets") does not trigger it. The skill sets disable-model-invocation: true, which keeps its description out of every session's startup context at the cost of only firing when you name it.
The prompt file
If there's no TICKET_PROMPT.md file in your working directory, the first run scaffolds a starter one and generates from it, so you can see what the pipeline produces without writing anything first. The starter is generic, though, so edit it and run again to get tickets about your own product. This file is the creative and distribution half of the prompt: what your product is, who files tickets about it, the ticket categories and roughly what share of tickets each should get, the tone, and anything else that shapes the content.
The engine appends its own output requirements below a clear delimiter: the exact JSON shape, the per-batch count, the allowed statuses, the staff roster, and the per-ticket reply targets. Your text is never overridden. Every compiled prompt is a plain file at .qbort-run/prompt-<round>-<batch>.txt if you want to read exactly what a subagent was sent.
The settings Q&A
| Setting | Default | Range | What it does |
|---|
| Number of tickets | 100 | 1 – 500 | How many tickets to generate in a run. |
| Include staff responses | off | n/a | When off, each ticket has only the customer's opening message. |
| Average staff responses | 0 | 0 – 20 | Mean replies per ticket; the actual count is a Poisson draw around it. |
| Number of staff members | 10 | 1 – 100 | Size of the staff roster used to author replies. |
| Max ticket age (days) | 90 | 1 – 3650 | How far back ticket open times are spread. Each ticket opens somewhere in this window, with replies following later. |
Every answer, including a free-typed one, is re-clamped into range before it reaches the engine, so an out-of-range value is impossible rather than merely discouraged.
Staff roster. The roster is generated from the count you give: each member is a Firstname Lastname with a derived [email protected] email. That fixed domain is how staff messages are told apart from customer ones. Custom names aren't collected.
What happens during a run
The run opens with a single call that writes a list of one-line ticket scenarios (about 30% more than you asked for), which is then shuffled and dealt one per ticket. Then batches fan out in parallel, each written by its own subagent, and the engine validates, repairs, and assembles what comes back into a timestamped file under qbort-output/. If validation drops tickets, up to 3 top-up rounds regenerate just the shortfall, drawing fresh scenarios from the surplus. Every round rewrites the same file, so a run leaves exactly one behind however many rounds it takes.
A run uses two directories in your working directory, and adding both to your .gitignore file is usually what you want: