Repository navigation
prototype(look): a dozen tokens and a brief make a tool read as its company - #572
Closed
allisonmahmood wants to merge 4 commits into
Closed
allisonmahmood wants to merge 4 commits into
allisonmahmood wants to merge 4 commits into
Conversation
…sh-agent tools Throwaway build for #563, never merged. Four looks (Linear, Duolingo, Vanguard and the Patchy look) captured by following a draft capture reference; the specimen; six fresh agents building the same tier 1 tool in each look, with no look, and a Halloween page over Vanguard's look; twelve re-skins; the publish checks over real brands; and a CLI switch, PATCHY_PROTOTYPE_LOOK, that stands in for look generation. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
3 tasks done
…eview in the verdict Two fresh agents changed the finished Linear tool after Duolingo's look arrived as a new revision: one extended it, one was told to update it to the current look. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 7, 2026
Closed
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Owner
Author
|
Prototype, will not merge, real version has already been merged and deployed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prototype: will not merge. It stays open as the record of #563, step 1 of #547. The verdict is accepted and settled on #547; the build continues in #564 to #569.
#547 bets that about a dozen fixed tokens, plain-element styles and a brief are enough for a fresh agent to build a tool that reads as the company. The build tickets (#565 to #569) lock the token names, the publish checks and generation, and token names become a contract every patch depends on. So this checks the bet before any of that is built.
Comparison page: https://post.patchyhq.com/d/od3afj7fpmhi (public, unlisted)
What's here
capture.md). Each haslook.css,LOOK.md, a placeholder logo and the agent's capture notes. No brand fonts or real logos.specimen/specimen.html).runs/.PATCHY_PROTOTYPE_LOOK, init, refresh and dev start writepatchy/_generated/look.css, the logo and apatchy-lookskill. The scaffold imports the look. Nothing else on the platform changed.scripts/check.mjsruns the draftlook publishchecks, andscripts/measure-run.mjsmeasures how each tool used the look.prototypes/company-look/README.mdhas the file map.What it found
AGENTS.md. Each read the skill before writing CSS, never edited generated files, and lifted the brief's component recipes nearly verbatim.node_modulesand rebuilt it by hand: 672 lines, 21 literals and 25 variables of its own.look.cssasdata:load in the tier 1 frame. Three Inter weights makelook.css418 KB. Without them, the fallback stacks still read as the brand.Verdict (accepted by Allison, 2026-10-07)
Fifteen tokens: the 13 plus
--look-successand--look-warning. Colour tokens are opaque#RRGGBB.--look-linkstays: all four looks set it apart from the accent.Tighter definitions, since the names are a permanent contract:
--look-accent: the principal brand emphasis fill. Text on it uses--look-accent-fg. It doesn't mean the primary button, selection or status; three of the four brands don't fill their primary button with it. A plainbuttonis the look's call.--look-space: the reference layout gap, nominally 8px, not the smallest grid step. A label gap is half of it, related controls one, panel padding three. Linear's 4px made re-skins change density by about 50%.--look-surface: an alternate ground that carries the same foregrounds asbg.--look-border: decorative separators and frames. Control outlines are the look's call.One contrast rule. Every foreground (fg, muted, link, danger, success, warning) reaches 4.5:1 on both bg and surface, and accent-fg reaches it on accent. Today's looks would need three small fixes: Duolingo's danger (4.30) and muted on surface (4.24), and Vanguard's muted on surface (4.21).
Not added:
color-schememay sit in:root.Recipes carry literals for sizes, weights, shadows and pills.
The brief keeps its nine sections, and recipes ship markup with their CSS. One agent had to rebuild the tabs recipe on buttons because it styled links. Components must include a badge per status (neutral too), tabs or a segmented filter, a select and a small button. The reference allows pseudo-classes in element styles, and literal sizes.
The specimen keeps its current contents and adds a badge per status, plus focus, hover, invalid, disabled and busy states. It checks
look.cssand the tokens, not the brief's recipes, and it says so.Size cap: the folder is at most 512 KiB of published bytes, embedded fonts included.
LOOK.mdis at most 32 KiB."No company look" stays a state. Generation writes the Patchy look as Patchy's default, with no company logo and never as a company revision.
look restore nonereturns to it.A new revision recolours existing tools; it doesn't restructure them. In the revision runs, an agent extending the Linear tool under Duolingo's look kept the tool's own style, as the precedence rule says. An agent told "update this tool to our current look" rebuilt it in Duolingo's style in under 4 minutes. Change notices say this, and the way to match a new look is that one line, pasted to the owner's agent.
Plain-element styles carry no signature effects. Duolingo's plain
button(lip shadow, press transform, uppercase) leaked into the Linear tool's own tab and ghost buttons after the revision, and the agent had to reset it. Inlook.css, element styles set colours, fonts, borders, radius and spacing only. Shadows, transforms, text-transform and letter-spacing go in the brief's recipes, which patches copy and own.Try it
Run agents from a folder outside
$HOME. Claude Code loads~/.claude/CLAUDE.mdas an ancestor file even with--setting-sources project, which includes thepnpm dev upagent workspace, so its agent isn't fresh.Built by Claude Opus 5.5 in Claude Code, running in T3 Code.