superpowers

Usage example

Quoted exactly from the real run. Not edited.

# superpowers real run

- Date: 2026-10-15 23:00 +0700
- Tool: Claude Code 2.1.300, headless `claude -p`, later turns with `--resume` (one session)
- Model: claude-sonnet-5-5
- Isolation: --setting-sources project --strict-mcp-config (no user skills, memory or MCP)
- Skill: obra/superpowers @ bb92a77741419a4ab5f06e711a283343f1ada0c3 `skills/using-superpowers/SKILL.md` (MIT, Jesse Vincent (obra))
- Dependency loaded: `skills/brainstorming/SKILL.md` same repo and commit
- Exact first prompt: `/using-superpowers I want to build a tiny command line tool that turns a Thai Baht amount like 1250.50 into Thai words for printed receipts. Help me design it before any code.`
- User replies are sample text written by our team. Assistant text is verbatim from the session log. Tool calls are shown as one line notes; local paths in them are shortened to `~` and `<project>`.

## Turn 1

### User

/using-superpowers I want to build a tiny command line tool that turns a Thai Baht amount like 1250.50 into Thai words for printed receipts. Help me design it before any code.

> [event] skill loaded: using-superpowers

> [tool call] Skill {"skill": "brainstorming"}

> [event] skill loaded: brainstorming

### Assistant

Using the brainstorming skill to design this with you before any code.

If you'd rather skip the questions and have me just start building, say so and I will.

Tell me about the moment this comes up: when a receipt gets printed, where does the Thai-words amount need to appear, and what happens today when someone has to write it out?

## Turn 2

### User

Right now my staff type the amount in Thai words by hand in a spreadsheet before printing, and they make mistakes with satang and with numbers like 21 and 101. I want to type 1250.50 in a terminal and get the words to paste into the receipt template.

### Assistant

Here's what I understand so far. Correct anything that's wrong.

**What it's for:** Your staff currently type the Thai-words amount by hand, and the mistakes cluster around satang and numbers like 21 and 101. You want to type an amount like `1250.50` in a terminal and get the words back, ready to paste into the receipt template.

**What I take from that:**
- The tool is small and does one job: amount in, Thai words out. There's no spreadsheet integration and no receipt layout.
- Being right matters more than being fancy, because the current mistakes are exactly the tricky spots.

**My guesses, which you haven't told me:**
- 1250.50 should come out as หนึ่งพันสองร้อยห้าสิบบาทห้าสิบสตางค์.
- The usual Thai rules apply:
  - 21 is ยี่สิบเอ็ด and 101 is หนึ่งร้อยเอ็ด.
  - 11 is สิบเอ็ด.
  - 20 is ยี่สิบ.
  - A whole-baht amount ends in บาทถ้วน.
- Invalid input, such as letters, negative numbers or three decimal places, should give a clear error instead of a guess.

**How it gets made:** I'd pick a language you can run easily on your staff's machines. That's my call, and we can settle it later. If you have a preference or an existing setup, tell me.

What's missing or wrong in that?

To fill in the details: what should the finished receipt line look like for 1250.50, and for a round amount like 1200?

## Turn 3

### User

For 1250.50 the line should read (หนึ่งพันสองร้อยห้าสิบบาทห้าสิบสตางค์) in brackets after the number. For 1200 it should be (หนึ่งพันสองร้อยบาทถ้วน). Python is fine, our shop laptop already has it.

### Assistant

Thanks. Here's the next chunk of the design.

**Output:** The tool prints only the bracketed words, for example `(หนึ่งพันสองร้อยห้าสิบบาทห้าสิบสตางค์)`, so staff can paste it straight in after the number. It doesn't print the number itself or add anything else.

**Wording rules:**
- If there are satang, the output ends in สตางค์.
- If there are none, it ends in บาทถ้วน.

**How it gets made:** It's a small Python script. It uses only what comes with Python, so nothing needs installing on the shop laptop, and you run it as something like `python baht.py 1250.50`. This is my call.

**Guesses, which you haven't confirmed:**
- It also accepts commas, so `1,250.50` works.
- A satang-only amount like `0.50` gives (ห้าสิบสตางค์) with no บาท part.
- One decimal digit, as in `1250.5`, counts as 50 satang.
- I'd back the logic with a short table of tricky cases, like 11, 21, 101, 1,000,001 and the satang edges, and check the output against it.

What's wrong or missing?

One question: what's the largest amount a receipt might reach, and do you ever need a zero-baht or satang-only amount?

## Turn 4

### User

The largest receipt is under 100000 baht. No zero baht receipts, but a 0.50 refund slip can happen, so keep the satang only case. Your guesses are right.

### Assistant

That covers what I need. This is a small, single-file tool, so I'll keep the design in chat and skip a formal document. Here is the full description for you to approve.

**What it does**
- You run `python baht.py 1250.50`.
- It prints one line with the words in brackets, and nothing else.
- `1250.50` gives `(หนึ่งพันสองร้อยห้าสิบบาทห้าสิบสตางค์)`.
- `1200` gives `(หนึ่งพันสองร้อยบาทถ้วน)`.
- `0.50` gives `(ห้าสิบสตางค์)`.

**Number rules**
- 11 is สิบเอ็ด, 21 is ยี่สิบเอ็ด, 101 is หนึ่งร้อยเอ็ด, and 20 is ยี่สิบ.
- A trailing 1 is เอ็ด after a tens or hundreds digit, as in 21 and 101. A lone 1 stays หนึ่ง.
- Satang follow the same rules. For example, 0.21 is ยี่สิบเอ็ดสตางค์.

**Input handling**
- Commas are accepted, so `1,250.50` works.
- One decimal digit is read as tens of satang, so `1250.5` is 50 satang.
- These give a short error message and no output:
  - letters
  - negative numbers
  - more than two decimal places
  - an empty input
  - zero

**My calls, not yours**
- The tool is Python using only the standard library, in one file.
- Zero is rejected. You said zero-baht receipts don't happen, so I'm treating one as a typo.
- Amounts are handled with exact decimals, not floats, so satang never come out wrong.
- Millions are handled correctly (ล้าน), even though your receipts stay under 100,000. A ceiling would be an arbitrary rule to explain, and handling millions costs almost nothing.

**Out of scope**
- No receipt layout.
- No spreadsheet integration.
- No English output.
- No graphical interface.

**How I'd check it:** A small table of tricky cases, run by a test file. It would cover 11, 20, 21, 101, 111, 1,000,001, 0.01, 0.50, 99,999.99 and the error inputs.

Do you approve this as described, or is there anything to change? Once you approve, I'll write a short plan and then build it.