# Thirty-six questions before the first ticket

> How 1club Offers went from a sales-team artifact to a hosted, versioned, interactive quote across three portals, and what the grill-with-docs skill changed about how I designed it, split it into GitHub issues and built it.

- Author: Deyan Peev (https://deyanpeev.com)
- Published: 2026-09-27
- Tags: AI, Claude, Agent Skills, Product Engineering, Developer Experience
- URL: https://deyanpeev.com/posts/thirty-six-questions-before-the-first-ticket

Until this week, our sales team quoted gyms from a single HTML file. Someone
built it as a claude.ai artifact: pick Run or Grow, a member tier, the number of
locations and a couple of add-ons, and it prints a branded offer with a price.
It works, and it lives outside the product. Nobody can see which offers went
out or which were opened, and the prices in it are two hardcoded tables, keyed
by language.

On Wednesday the replacement merged to main. Offers are now part of 1club. A
super admin composes one in the admin. The prospect opens it at its own link on
`offers.1club.ai` without an account, changes the parts we allow them to
change, watches the price follow, and accepts. If the prospect is already a
customer, the same offer can also appear inside their own admin.

The way this feature was designed was new to me, so I want to write it down.
On 25 August I installed [Matt Pocock's skills](https://github.com/mattpocock/skills)
into Claude Code, and forty minutes later I ran `/grill-with-docs` on Offers.
The interview took two hours. By the end of the afternoon there was a glossary,
two ADRs, a spec with 75 user stories, and 16 GitHub issues with a dependency
graph between them. Four weeks later the last of them was merged.

# One feature, every layer

Offers is a good test for a design process because nothing about it stays in
one place:

- **Product:** what the prospect may change, what "accept" means when nothing
  is charged, and how to replace a tool that sales already likes.
- **UX:** a composer with a live preview, a configurator on the public page,
  six languages, and a page for links that no longer work.
- **System design:** offers and their versions, prices frozen at the moment of
  quoting, the URL as the identity of a version, and expiry without a
  background job.
- **Billing:** the offer quotes per location, while Stripe bills per active
  member.
- **Infrastructure:** a new Next.js app on its own Vercel project, Terraform
  for it, staging and promote workflows, and hosts paired per environment.
- **Three portals:** the super admin's, the customer's admin, and the public
  page.

I wrote earlier about
[the three pillars of a product engineer](https://deyanpeev.com/posts/the-three-pillars-of-the-modern-software-product-engineer).
Offers is what that looks like on a single feature. A decision in any one of
these layers moves the others, so I wanted all of them made before the first
line of code, and in an order where a later decision did not undo an earlier
one.

# What grill-with-docs is

The skill itself is one line: call the `grilling` skill and the
`domain-modeling` skill.

- **`grilling`** walks a design tree and asks questions in rounds, each with a
  recommended answer, until nothing is left open. It treats finding facts as its
  own job: anything it can look up in the code, it looks up instead of asking.
- **`domain-modeling`** keeps a `CONTEXT.md` glossary up to date while you
  talk. It writes an ADR only when a decision is hard to reverse, surprising,
  and a real trade-off.

My first run was a false start. I called `/grill-with-docs` with no arguments
in a worktree named after a check-in task, and it started grilling me about
check-in. I deleted the worktree and started over with a long opening prompt:

- Offers are for super admins and are composed by hand for now.
- The offer has interactive blocks, and the price follows the prospect's setup.
- It is hosted on `offers.1club.ai` with no login.
- It has a tab in the admin between Help & updates and Notifications.
- Offers have versions and an expiry date.
- The recipient may not be an organization in 1club yet.
- The look is a branded template in the white theme.

Before asking anything, Claude spent six minutes reading. It went through the
admin navigation, the Stripe plan catalog, the deploy setup and the sales team's
artifact itself, all 727 KB of it. Its first message described the existing
tool more precisely than I could have: every input, the formula, and the two
price tables keyed by language. Only then did the questions start.

# Thirty-six questions in five rounds

The questions came numbered, in five rounds, and each had a recommendation
marked with an arrow. I answered most of them with "yes". The
ones that mattered were where I said no:

```text
Q1.  makes sense - use offers.1club.ai; but don't use the slug. use UUID instead
Q7.  A, no warning, just edit edit and change directly (after refresh)
Q20. BGN no longer exists, just use stripe
Q22. Don't create a CRON for this. [...] if the valid date has passed, this
     would also mean that this quote will not be displayed.
Q34. no reseed, keep it simple, don't overstretch the Stripe integration
```

These rejections all point the same way. The recommendations kept adding
machinery:

- a warning before editing a published version;
- a daily job to mark offers as expired;
- recording every configuration a prospect tries on the server;
- a button to re-pull prices from Stripe.

Each one was reasonable on its own, and together they would have doubled the
feature. My part of the interview was mostly deciding which of these to refuse.

Sometimes I had a better rule than the one on the table. For the feature list
on an offer, Claude proposed one thing and I answered with another: the first
version starts from the Stripe product list, and every later version starts
from the version before it. The reply was "Q31 is a different and better rule
than I proposed". It then turned that rule into two new questions about how far
the copy-forward reaches.

Question 28 was the one I would not have asked myself until finance asked it
for me. While checking how prices are stored, Claude searched the billing code
for any notion of a location:

> I grepped `clubCount`, `locationCount`, `perLocation`, `per_location` across
> `server/services/stripe` and `server/services/subscriptions` - zero hits.
> There is no per-location billing basis anywhere. But the sales tool quotes
> `price per location × locations`.

So every offer sales had ever sent named a monthly total that our subscription
system could not produce. Stripe bills one tiered amount keyed on the
active-member count. We kept per-location pricing, because that is how the
business sells. Each offer version now records both the quoted structure and
the billable basis, the plan and the member tier, and someone reconciles the two
by hand when a deal closes. That decision is ADR 0027.

The questions ran out after 2 hours and 9 minutes.

# What it leaves behind

The domain-modeling half wrote five glossary terms into `CONTEXT.md`: Offer,
Offer Version, Offer Recipient, Offer Configurator and Quoted Total. Each one
has an _Avoid_ list, and that list turned out to be the most useful part. This
is the Offer entry as it was written that afternoon:

```markdown
### Offer

A commercial proposal 1club makes for its own [[Plan]]s, composed by a super
admin for one prospect and hosted at a public URL the prospect opens without
signing in. [...]

**Ours, not the gym's.** The `deals` table is an [[Organization]]'s own sales
pipeline for winning gym members. An Offer runs the other way: 1club selling
to the Organization. The two never meet.

An Offer is a quote, not a billing instruction. Accepting one starts a
conversation; it configures no subscription and creates no Organization.

_Avoid_: "quote", "proposal", "deal" (taken, see above), and "contract" (an
Offer is signed by nobody).
```

"Deal" was the obvious name for this feature, and it was already taken by the
gyms' own sales pipeline. Without that line, the first agent to read the code
would have mixed the two up.

It also wrote two ADRs:

- **ADR 0026:** an Offer Version freezes the catalog, and Stripe is read once.
  Version 1 copies every plan and add-on price it could ever quote, and later
  versions copy from their predecessor. A price change in Stripe never reaches
  an offer that is already out, and we accept that drift on purpose.
- **ADR 0027:** offers quote per location, while billing charges per member.

I committed the three files that evening.

# From a conversation to tickets

Next I ran `/to-spec`, and it stopped: the repository had no issue tracker
configured. The skills don't assume where tickets live. `/setup-matt-pocock-skills`
asks once and writes the answer down for every other skill. The choices are:

- **GitHub**, through the `gh` CLI;
- **GitLab**, through `glab`;
- **local markdown files** under `.scratch/<feature>/issues/`, one numbered
  file per ticket;
- **anything else**, Linear or Jira, which you describe in one paragraph for the
  skill to follow.

The tracker also decides how dependencies are written down. In local files, a
ticket's blockers are a line inside the file. On GitLab, the skill uses the
`/blocked_by` quick action. On GitHub, it uses the native "blocked by"
relationship and sub-issues.

Our README said we use Linear. Claude checked and found more than 1,600 GitHub
issues in active use. Instead of trusting the README, it asked me, and we picked
GitHub. The setup wrote `docs/agents/issue-tracker.md` and an "Agent skills"
block into `CLAUDE.md`, along with the triage labels. Every skill run since has
known where tickets go without being told.

`/to-spec` then produced issue #1708: a problem statement, the solution, 75
numbered user stories grouped by who they serve, the implementation decisions,
the testing seams and what is out of scope. `/to-tickets` cut it into tracer
bullets. A tracer bullet is a thin vertical slice that goes through every
layer, rather than a "do the database" ticket followed by a "do the UI" one. It
proposed 16 slices with a graph of which blocks which. I removed the ticket for
retiring the old tool, removed a dependency that was not a real blocker, and
added custom add-ons and free-text blocks. Then I typed "go".

It created four labels and the spec issue, then sixteen tickets, #1709 to #1724.
Each one is a sub-issue of #1708 with native "blocked by" links, and each is
labelled `ready-for-agent`.

![The Sub-issues panel of issue #1708 listing all sixteen Offers tickets, #1709 to #1724, from extracting a reusable message-translation core and provisioning the offers Vercel project, through the publish-and-read tracer bullet, the branded document, the Configurator, publish targets, the composer, custom blocks, the organization-facing tab and six locales, to accept and view telemetry.](https://deyanpeev.com/images/offers-grill-epic.png)

Every ticket uses the same template: the parent, what to build, acceptance
criteria and what blocks it. This is the tracer bullet:

![Issue #1713, "Offers: publish an Offer and read it at its public URL". Parent: #1708. What to build: the tracer bullet, a super admin publishes an Offer Version and it can be read at its own public URL with no account and no login, thin and unstyled but complete through every layer. Six acceptance criteria: publishing mints a public URL that needs no authentication; the URL carries the locale, then the Version's identifier; the page renders on the server so a Version that may not be shown never sends its content to the browser; the page shows the recipient, the plan and the Quoted Total from the frozen Version; every offer page is excluded from search indexing; an unknown identifier gets the same response as one that may not be shown. Blocked by the shared Quoted Total pricing module and the Offer and Offer Version schema and service core.](https://deyanpeev.com/images/offers-grill-ticket.png)

Not all of it went cleanly:

- A shell word-splitting bug put thirteen wrong blockers on #1712. Claude
  noticed, removed them, rebuilt the graph and read it back from the GitHub API
  to check.
- Earlier, it had told me it had fixed a line in the spec file. Later it
  corrected itself: "I hadn't; I only said so."

Both were caught in the same session. Both would have been a problem in a
process that trusts the output without reading it.

# Building from the issues

I ran `/implement` with no arguments and it found #1708 on its own. The skill
works test-first where it can. Then it runs `/code-review` along two axes: does
the code follow the repository's standards, and does it do what the ticket
asked. The spec reviewer earned its place on the first day. A refactor of
the translation code had been declared behaviour-preserving on the strength of
a test that could not fail. With that change, a bad model response would have
written English into another language's copy.

One of my decisions did not fit the tooling. I wanted Offers to reach main as a
single release, not as sixteen separate merges, so the ticket PRs went into an
integration branch, PR #1735. Claude's reply to that included "The dependency
graph is now lying." GitHub clears a blocker when the blocking issue
closes. An issue closes when its PR merges into the default branch, and nothing
merged into the default branch until the very end. Finished tickets kept
everything after them looking blocked. From then on I closed tickets by hand as
their PRs landed on the integration branch.

The first three tickets were done the next day: the pricing module, the
translation core, and the schema with its service. The tracer bullet and the
branded document followed in mid-September. The remaining nine went in one
session: 52 files and about 4,700 lines, in PR #2120 on the 18th. It all merged
to main on Wednesday.

# The feature, layer by layer

![How Offers fit together. The super-admin composer publishes through the Offer service, which seeds Version 1 from the Stripe catalog once and stores offers, versions and acceptances in Postgres. offers.1club.ai, a server-rendered Next.js app on Vercel, reads a Version by its UUID; the Configurator keeps its state in the URL; Accept is rate-limited, stores an acceptance and emails the rep. The customer's Offers tab lists Versions published to that organization.](https://deyanpeev.com/images/offers-grill-system.svg)

**The model.** An Offer belongs to one recipient and holds no prices. Prices
live on its Offer Versions. A version is a frozen snapshot of prices, features,
add-ons and copy, with its own validity date. Its UUID is the public URL, so a
new version is a new link. A version is stored as `draft`, `published` or
`superseded`. Expired is worked out when the page is read, by comparing the
validity date with today, so nothing has to run at midnight. Publishing has two
independent targets, the public link and the customer's admin, and the admin
target only exists once an organization is linked.

**The money.** The Quoted Total is one pure function, shared by the server's
first render and every click on the public page, so the two can never disagree.
It takes the per-location price for the member tier, multiplies it by the
locations, and adds the add-ons at face value. Multi-year discounts apply to the
plan price only. All the arithmetic is done in minor units, so 19.99 × 3 comes
out as 59.97.

![The monthly total on a published offer, €556.00, with "How this is calculated" underneath: €169.00 × 3 locations is €507.00, plus a Priority onboarding line at €49.00. A note below says the plan price is quoted per location, add-ons and one-off lines are quoted once for the whole arrangement, and the prices are fixed for this offer.](https://deyanpeev.com/images/offers-grill-pricing.png)

**The public page.** `offers.1club.ai` is its own Next.js app. It renders on the
server, so a version that may not be shown never sends its content to the
browser. An unknown ID, a superseded version and an expired one all get the same
"no longer available" page. The prospect's configuration lives only in the URL,
so a configured offer can be forwarded as-is. Accepting it records a name, an
email and the configuration on screen, and emails the rep. It charges nothing
and creates nothing. Telemetry is a view count with first and last timestamps,
and nothing per visitor. The rep's free text is machine-translated into the
other five languages on save. Each translation is stamped with a hash of its
source, so a re-save only translates what changed, and copy someone has reviewed
is never regenerated.

![The public offer page for Example Bouldering Co.: the title and subtitle, the client and sender, a strip stating Run, 3 locations and 250 active members, and the "Adjust this offer" block with a Run or Grow choice, a locations stepper and an active-members slider from 100 to unlimited.](https://deyanpeev.com/images/offers-grill-public-offer.png)

**The admin side.** The composer is a form with the real offer page running
beside it in an iframe as a live preview. The customer's Offers tab only appears
once something is published to that organization. Who can see it is decided by
the existing billing permission, not a new module.

![The super-admin Offers list, filtered to Example Bouldering Co.: a prospect on Version 1, published, valid until the end of the year, with columns for views and when it was first and last opened.](https://deyanpeev.com/images/offers-grill-list.png)

![The Offer composer: the document fields and who the offer is prepared by on the left, and on the right the live preview of the offer page, quoting €946.00 for Grow at three locations.](https://deyanpeev.com/images/offers-grill-composer.png)

**Infrastructure.** The offers app has its own Vercel project, created with
Terraform in our infrastructure repository and wired into the same staging and
promote workflows as the other frontends. Two things broke on the way to
production:

- The staging build failed on where the pricing module lived, and the module
  moved into the shared `@1club/interfaces` package.
- The admin's live preview had to point at the offers host of its own
  environment, so staging admin now pairs with staging offers.

Below is a working model of the three portals. A demo pointer walks through
publishing a version, configuring it as the prospect and accepting it. Click
anything to take over.

*This post has an interactive demo here. Open it on the site to try it: https://deyanpeev.com/posts/thirty-six-questions-before-the-first-ticket*

# What I would tell myself on 25 August

The skills compose, but the order is up to you. After the grilling I did not
know what came next, and my messages from that afternoon are mostly questions
about the process. "so how many tickets will I end up with?" "shall I clear the
context beforehand?" Ten minutes later: "ok, how do I clear the context now? Do
I clear the context after each implementation?" What worked was:

1. `/grill-with-docs`;
2. set up the tracker once;
3. `/to-spec`;
4. `/to-tickets`;
5. `/implement` in a fresh session per ticket or group of tickets.

Treat the recommended answers as the strongest case for doing more, and decide
for yourself how much of it you want. Two hours of questions feels long around
question twenty. Question 28 alone would have cost more than that if it had
surfaced after the first offer was accepted.
