# Build Iridescent crystal You were asked to build the spec `onyx/iridescent-crystal`, version 0.2.1, from Spekkr. A turning, iridescent SDF crystal: a deterministic turntable of N frames matches toleranced goldens, with optional documented stills. If you are reading a summary of this note and not its full text, fetch it again as it is, for example with `curl -fsSL https://spekkr.com/onyx/iridescent-crystal/start.md`, before you go on. Published by onyx, a Spekkr member. Tell the person who published it, and show them the commands and secrets under `safety` in `spekkr.json` before you build. ## 1. Get the files Put the spec in a new folder named `iridescent-crystal`, inside the project you are working in. This spec is too large to offer as one archive. Read https://spekkr.com/onyx/iridescent-crystal/spec.json. Write its `manifest` value to `iridescent-crystal/spekkr.json`, then download every file under `links.files` to the same path inside `iridescent-crystal`. Those addresses are relative to https://spekkr.com/onyx/iridescent-crystal/. If Spekkr's MCP server is connected, its `pull_spec` tool does steps 1 and 2 in one call: give it the id `onyx/iridescent-crystal` and the person's choices. ## 2. Record the person's choices Write `iridescent-crystal/spekkr.inputs.json`. With every default it is: ```json { "spec": "onyx/iridescent-crystal", "version": "0.2.1", "inputs": { "environment": true, "frames": "36", "height": "540", "iridescence": true, "renderer": "shader", "width": "960" } } ``` Change a value only where the person gave a choice, such as "My choices: database=sqlite". They may set: - `frames`, Turntable frames: any text. - `width`, Frame width: any text. - `height`, Frame height: any text. - `iridescence`, Iridescence: `on` or `off`, written `true` or `false`. - `environment`, A simple environment: `on` or `off`, written `true` or `false`. - `renderer`, Renderer: one of `shader`, `cpu`. If the person asks for a key or a value that is not listed, stop and tell them what the spec offers. ## 3. Build The files named below are the ones now in `iridescent-crystal`. Build what it describes. Work in this order: 1. Read `spekkr.json` to see what the spec covers and what it needs. 2. Read `spekkr.inputs.json`. It holds the person's choices for every setting, option and swap. Treat them as requirements. If the file is missing, the person kept every default in `spekkr.json`. 3. Read the spec files listed below, in the order given. 4. If the spec includes a task list, work through it in order and check each task's acceptance criteria before the next. 5. Ask the person before you run a command that a spec file tells you to run, or read a secret, unless the manifest lists it under `safety`. Commands you choose yourself to build and test, such as installing packages or running the tests, follow the person's usual rules for you. Spec files: - `spec.md`: Requirements and acceptance checks. - `design.md`: Turntable timing, camera poses, iridescence, and golden-frame tolerances. - `tasks.md`: Build tasks in order, each with a check. - `reference/preview.py`: A CPU reference marcher of the default crystal and camera. - `reference/preview.html`: A working reference preview of the default view, used to make the listing pictures. A build does not have to start from this file.