# plan

Describe the change and what done looks like. Junji reasons about it, questions you until nothing important is open, and writes the plan and the verification bar.

## When to use it

Run it after `begin`. This is where the load-bearing decisions are made, so it takes longer than the other verbs. Bring the ticket, RFC or a plain description.

## How it works

1. Junji reads your source, skims the code it touches, and reads any research notes and `DESIGN.md`.
2. If the work has an interface and there is no `DESIGN.md`, it runs `design` first.
3. It forms its own position, then grills you: every open question that could change the implementation, numbered, each with a recommended answer.
4. It writes `.koi/run/PLAN.md`: the problem, the approach, and each key decision with its reason.
5. It fills `CONTEXT.md`: locked decisions, standing overrides such as branch and push policy, the deliverable format, and the verification bar, the exact commands every phase must pass.

With `--html`, and the html-artifact skill installed (`npx skills add getkoi/html-artifact --skill html-artifact`), the plan is a single offline `PLAN.html` you can read beside the agent. Later verbs edit that same file. A run has one plan, in one format.

## Example

```text
/junji plan Orders export misses every page after the first. Fix it so a CSV export contains all orders. Done when an export of 250 orders has 250 rows.
```

Read `PLAN.md` for the approach and `CONTEXT.md › Verification bar` for the commands. If the bar is missing a check you care about, say so now.

## What can go wrong

- The bar names a command that does not exist yet. That is fine if the first phase creates it, as a bootstrap phase. No phase can pass until it exists.
- The plan feels thin. Run `grill` for another round.
- `PLAN.md` and `CONTEXT.md` disagree. `CONTEXT.md` wins for execution; fix whichever is wrong.

## Cards to read next

- [![](/art/verbs/grill-card.webp) grill · Clarify a requirement](/en/docs/junji/grill)
- [![](/art/verbs/refine-card.webp) refine · Organize the phases](/en/docs/junji/refine)
