# design

Agree on what a person will see and what happens when they act, before any interface code is written. Junji saves it as a binding contract in .koi/run/DESIGN.md.

## When to use it

Use it when the change has a human-facing surface: a web page, a mobile screen, a terminal UI, a docs page. Run it after `begin`, before the phase that builds the interface. `plan` and `iterate` start it themselves when the work is human-facing and no `DESIGN.md` exists. It never moves `nextAction`.

## How it works

1. Junji looks for your project's own design document (often a root `DESIGN.md`) and treats it as the parent. It never overwrites that file.
2. It follows any design skill listed for `design` in `CONTEXT.md › Skills`.
3. It studies the references you give: URLs, screenshots, existing UI code. With none, it asks for one or confirms a fresh direction.
4. It settles open choices with you, then writes `.koi/run/DESIGN.md`.

From then on, any phase that ships human-facing work must obey `DESIGN.md` with the same weight as a locked decision.

## Example

```text
/junji design The task list on phone and desktop. Follow our DESIGN.md. What does an empty list show, and where does focus go after adding a task?
```

## What can go wrong

- No references and no project design document. Junji asks before it starts; give it something to anchor on.
- The design changes mid-effort. Run `design` or `grill` again so `DESIGN.md` is updated; a rule that lives only in chat will not reach the phases that run on their own.

## Cards to read next

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