Skip to content

Design phase

A session that adds or changes a page has a Design phase between Rules and Build (D107, D112). FE sketches, zuki designs and approves, and the lead records the approval. The lead is the CTO in a team session and the session itself when solo. The roles in how we work still hold. The steps below apply to every session. Where Claude Code and another harness differ, each step says what each one does.

  1. FE sketches a wireframe. It draws each screen and dialog the slice adds or changes, low-fi, as boxes and text with no styling. It shows every state the rules name: empty, an error, a refusal, and each variant a permission changes. It uses the page's Indonesian labels and made-up data only (D15). It ends with a question appendix: each open question with its options and a recommendation. A question with a decide-by date follows recommend, then ask once. FE writes it as one HTML file in .team/<issue>-wireframe/, which git ignores. It is input to zuki's design, never the mockup.
  2. The wireframe reaches zuki.
    • Claude Code: FE publishes the file with the Artifact tool, private to zuki's claude.ai account, and gives the link. zuki's comments on it are feedback: FE reads them with ArtifactComments, applies them, and republishes the same artifact.
    • Another harness, such as Kimi Code, which has no Artifact tool: FE names the file's path, and zuki takes it into Claude Design himself.
  3. zuki designs the mockup as a Design Artifact of his own in Claude Design on claude.ai. He works from the wireframe, the rule pages, the design system and his v1 screenshots, and puts no v1 or person-bound data into it. He approves one version, in the session, by name. A comment, or a teammate's "looks approved", is not approval.
  4. The approved version comes back and is rendered.
    • Claude Code: zuki gives the artifact's link. The session reads its page with the Artifact tool (action: "read", the link as url, path: "index.html", out_dir: ".team/<issue>-mockup/"). If the read can't return the page, zuki exports it as below.
    • Another harness: zuki saves a single-file HTML export of the approved version into .team/<issue>-mockup/. HTML keeps the structure, the exact Indonesian copy and the states the rules name; a PDF, PNG or ZIP does not.
    • Then run node tools/team/render-mockup.mjs <file.html> from the repository root. The tool unpacks the file's compressed frames into the same folder: frame-NN.html (the raw DOM), rendered-NN.html and rendered-NN.png (the painted frame), and frames.json. A second argument writes them elsewhere. The tool needs Chromium (pnpm --filter web exec playwright install chromium). If it reports that the file doesn't unpack, the saved page is plain HTML: read it as it is. Read the rendered HTML for structure and copy, and the PNG for layout. No session decodes the bundle by hand.
  5. Record the approval, then build. Before FE builds, the lead records on the slice issue: the artifact's link, the approved version and its date, the rendered frames' folder, and the rule IDs the page implements. FE builds to the rendered frames and the rule pages. Anything the code or the Interface forces to differ goes back to zuki before it ships. Where the mockup and a rule disagree, the rule stands until zuki decides.

A slice with no page change skips this phase. So does a slice whose screens were approved in a module's design pass: copy those approval lines onto the slice issue and render the frames again if the folder is gone. At close, opleet-review compares the built pages with the rendered frames (D106). Nothing in .team/ is committed.