# A workflow that produces good builds

Builders who do this well work in passes, from the big decisions to the small ones, and look
after every pass. Doing it in the other order (details first, shape later) is the most common
reason a build ends up flat and generic.

This is a default order, not a script. Skip a pass that the build does not need, merge passes,
or loop back (a detail pass often shows that the shape needs a change). A small prop might be
one pass; a city might be many builds, each with its own. Use the order that serves the thing
you are making. [playbook.md](playbook.md) is the one-page version of this and what "done"
means: a first mass is a start, and the passes below are what turn it into a deliverable.

Calls below are real tool calls. Blocks marked `call` run as written on an empty project;
blocks marked `call-live` need the running editor (block libraries, prefabs).

## 0. Orient

```call
status {}
```

Read what is open, the palettes, the selection. Then see what blocks the user has:

```call-live
find_blocks {"libraries": true}
```

If a build is already open, read it before you add to it: `inspect` with `view: "summary"`,
then a `capture`. Match its style unless asked otherwise.

Settle four things and say them to the user in a sentence: **what** it is, **how big** (a
footprint and a height), **which style** (see [styles.md](styles.md)), **which roles** it
needs. If the user gave none, choose; do not interview them.

Then, before the first edit, write down the **tells** and the **numbers**. The tells are 6 to
10 features that make this kind of object recognisable (a lighthouse: tapered tower, gallery
rail, lantern room, a keeper's door); build each one, and treat the list as the to-do list for
the detail pass. The numbers are the rhythm that repeats (a pier every 10, piers 4 wide, bays 6
wide), the heights of each storey and the footprint. Settle them in words first, then script
them with loops, `symmetry` and `repeat`: cell-by-cell placing is where time goes.

**How big** deserves the most care, because everything is built against it and it is the
costliest to change. Do not take it from an adjective: "cozy" and "little" are about feel, and
a build too small has no room for detail. Work it out from what has to fit (rooms 6 or 7 clear
on the short side, a porch, furniture with walkways: the tables in
[shape-and-scale.md](shape-and-scale.md); two or three rooms come to about 20 by 12). Say the
numbers. When the brief leaves the size open and it changes everything, ask one short
question with your recommendation instead of guessing; when nobody can answer, say what you
chose and build to it.

## 1. Name the roles, not the materials

Create the palette with roles and a tint each. A tint is only a colour hint, so the build
renders legibly while materials stay undecided. This is the Voxyl way: build first, decide
later.

```call
palette_edit {"palette": "Main", "semantics": [
  {"semantic": "Floor", "tint": "#8a8a8a"},
  {"semantic": "Wall", "tint": "#b9b2a3"},
  {"semantic": "Frame", "tint": "#5b4636"},
  {"semantic": "Glass", "tint": "#7fb7d6"},
  {"semantic": "Roof", "tint": "#7a3b32"},
  {"semantic": "Trim", "tint": "#d9d4c7"},
  {"semantic": "Light", "tint": "#ffd36b", "glow": true}
]}
```

Name roles for what they do (`Frame`, `Trim`, `Accent`), not for what they are made of
(`OakLog`). Add roles as the design needs them: `Wall Worn`, `Roof Ridge`, `Plinth`. Many
small roles are fine; a palette is cheap, and more roles means more control later.

## 2. Mass the form

Use `fill` for volumes and `build` for anything that is easier to draw than to describe. Keep
it crude. You are judging silhouette and proportion.

```call
fill {"where": {"box": [0, 0, 0, 20, 0, 12]}, "semantic": "Floor"}
fill {"where": {"box": [0, 1, 0, 20, 6, 12]}, "semantic": "Wall", "style": "walls"}
```

`style: "walls"` fills the vertical outer faces of the box, `hollow` makes a closed shell,
`frame` draws the twelve edges, `floor` the bottom layer. Add wings, a tower, a porch, stepped
heights: avoid one box. Then look, in a lens that shows form (see [seeing.md](seeing.md)):

```call
capture {"mode": "clay", "from": "se", "elevation": "mid"}
```

Fix the shape now. If the form is wrong, nothing later will save it.

## 3. Structure and depth

Add the frame (corner posts, pillars at a fixed spacing, a plinth, floor lines), then cut
openings back from the face. Walls should be at least two cells thick where you want recesses
and reveals. See [depth.md](depth.md) and [shape-and-scale.md](shape-and-scale.md).

Draw a pillar once and repeat it:

```call
fill {"where": {"box": [0, 1, 0, 0, 6, 0]}, "semantic": "Frame", "repeat": {"count": 6, "step": [4, 0, 0]}}
```

Design one half or one quarter of a symmetric build and let `symmetry` finish it
(`mirror_x`, `mirror_z`, `rotate2`, `rotate4`). Use `dry_run: true` to see what a large edit
will do, and `op_id` to make a retry safe.

Check proportion in flat elevations, which show errors a perspective view hides:

```call
capture_sheet {"preset": "elevations"}
```

## 4. Roof

Roofs are where beginner builds are judged. See [roofs.md](roofs.md). Do the roof before the
palette; its shape decides the silhouette, and its colour is a quarter of the palette.

## 5. Decide the materials

Now map roles to blocks. Search by name or by colour, check that a block draws the way you
expect, then set the palette. Pick for **shade first**, hue second, texture last
([palettes.md](palettes.md)).

```call-live
find_blocks {"query": "stone brick", "limit": 10}
```

```call-live
describe_block {"block": "voxyl:stone_bricks"}
```

```call-live
palette_edit {"palette": "Main", "semantics": [
  {"semantic": "Wall", "block": "voxyl:stone_bricks"},
  {"semantic": "Roof", "block": "voxyl:brick_stairs", "placement": "stairs"}
]}
```

To try two or three combinations, give the palette a look per candidate (`look_add`, then
`palette_edit`), switch back with `look_use` to the one that was showing, and render each candidate (`capture` and
`capture_sheet` take `looks`). The cells never change, and the user chooses with a picture in
front of them ([palettes.md](palettes.md)).

## 6. Texture and wear

Break up large uniform areas with sibling semantics and gradients
([gradients-and-wear.md](gradients-and-wear.md)). Mind the order: texture goes on after depth
and palette, because it is the cheapest pass to redo.

## 7. Detail pass

Entrances first, then corners, the roofline, the base, then windows and the quiet areas.
Trim, shutters, lights, signs, vents, props ([details.md](details.md)). Stop when the focal
points are rich and the rest is calm. Do not detail every cell equally.

## 8. Ground and surround

Foundation, steps, path, planting, fences, a few props ([grounding.md](grounding.md)). If the
build has an interior the user will see, do it now ([interiors.md](interiors.md)).

## 9. Review, then hand over

Run [checklist.md](checklist.md). Take the review sheet, and let `audit` count what can be
counted (flat faces, role shares, tones that are too close, undecided roles, floating cells):

```call
capture_sheet {"preset": "review"}
```

```call
audit {}
```

Fix what the pictures and the audit show. `project_save` before you tell the user it is ready. In your
message say what you built, the choices that are theirs to change (materials, accent colour,
roof pitch), and, if useful, point the user's own camera at the best angle with `view_set`.

## Repeated parts

Anything you will place more than twice (a bay, a pillar, a window unit, a tree, a lamp post)
should be built once, checked, and kept:

```call-live
prefab_save {"name": "Window bay", "where": {"box": [0, 1, 0, 3, 5, 1]}, "anchor": "corner"}
```

```call-live
prefab_place {"prefab": "Window bay", "at": [8, 1, 0], "repeat": {"count": 4, "step": [4, 0, 0]}}
```

Edit the prefab's design once and every stamp after it carries the fix. Placed prefabs are
plain cells, so you can vary individual copies afterwards, which is how you break repetition
with one weathered bay or one different window.
