Skip to content

feat(sdk): new patch repos start in their company's look - #579

Merged
allisonmahmood merged 9 commits into
mainfrom
look/567-look-generation
Oct 7, 2026
Merged

allisonmahmood merged 9 commits into
mainfrom
look/567-look-generation

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

New patch repos start unstyled: the company look (#565) exists, but nothing carries it into a repo, so every agent invents a style or rebuilds Patchy's by hand.

Generation now carries the look as managed files, so init, refresh and dev start all write it:

  • patchy/_generated/look.css, plus patchy/_generated/logo.svg when the current revision has one.
  • The patchy-look project skill: a release-bound template (packages/sdk/skills/patchy-look/SKILL.md) with the style order, the token meanings and how to use the logo, filled with which look this is and the revision's LOOK.md.
  • index.json gains look: the revision the files came from, in the shape patchy look --json uses ({ revision, author: { id, name }, createdAt, note }), or null. feat(patchy): repos hear about look changes, and publish warns when behind #568 builds its notices on this.

With no company look, generation writes the Patchy look as Patchy's default: no logo, a null stamp, and the skill says the company has none yet. The Patchy look's files moved from core's fixtures to packages/sdk/looks/patchy/ so they ship in the server image; the image build checks they're there, and the logo stays behind. (Later in the stack, #582 moves them again to packages/companies/looks/patchy/, so the look API can hand the same files to static pages.)

The starters use it: tier 1 and 2 src/main.tsx import look.css, and tier 0's index.html links it. The single-file build inlines it, embedded fonts included, so the first patchy dev page is in the company's look at every tier. AGENTS.md gets one line pointing at the skill, and patchy-loop points there too, which reaches repos made before this change.

Closes #567

Built by Claude Opus 5.5 in Claude Code, running in T3 Code.

@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:m 100-500 changed lines labels Oct 7, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review round 1 (stack orchestration for #547): one Claude Opus 5.5 reviewer and three GPT-6.1 Sol reviewers (generation correctness, the skill as a fresh agent reads it, YAGNI + tests), read-only against f2fc446, with probes through the real generate route at every tier.

Agreed sound: both write paths carry the three managed files; a revision without a logo removes the stale logo.svg; restore none returns the Patchy look with a null stamp and no logo; a failed generation keeps the previous files; the index.json look field decodes with the wire LookRevision schema for #568; the packed SDK ships the Patchy look's CSS and brief and never its logo, with the server-image check wired; the bearer resolves the company and deactivated members are excluded; tests are focused and cover the ticket's four sequences. The builder's five decisions all stand, and tier 0 linking the generated CSS (inlined by the build) was judged better than the ticket's "inline by hand".

Sent to the builder: fill the skill template's markers in one pass (a note containing a marker string currently confuses sequential replacement); the Patchy brief still carries two "no success/warning token" literals from the 13-token prototype plus repo paths in its provenance line; the patchy-loop pointer sits under a tier-1-only bullet; the generated README calls the Patchy look "the company look"; the skill describes rather than forbids changing the look while building; one line on tier 0's size budget; a test fixture that never imports its stylesheet.

Carried to #568: when a revision drops its logo, the change notice should say so and name the fix, since a page importing logo.svg fails its next build. Pre-existing, to be filed separately: a SIGKILL between the managed-file writer's two activation renames leaves a stale lock.

Posted by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review round 2: the orchestrator read the fix commits (49c4fc8..49a2856). The skill template fills in one pass with replacer functions, so a note or brief is never searched for markers; the Patchy brief takes every colour from the tokens (badges from the status tokens, the selected tab from an accent wash) and names no repo paths; the no-look preamble covers every logo example in the brief; the patchy-loop pointer is unconditional; the generated README no longer calls the Patchy look the company's; the skill forbids look publish and look restore while building a patch; one line covers tier 0's size budget. The pre-existing stale-lock crash is filed as #580. CI is green on 49a2856.

Verdict from the orchestrator: ready to merge after #578.

Posted by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code.

allisonmahmood and others added 9 commits October 7, 2026 17:03
Generation writes it for a company with no look, so it has to be in the
server image; core's fixtures folder is not. The fixture helper reads it
from its new home.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…sion

Every generation now carries patchy/_generated/look.css, the logo when the
current revision has one, and the patchy-look project skill: the style
order plus the revision's brief. With no company look it writes the
Patchy look as Patchy's default, with no logo and a null stamp. index.json
records the revision as `look`, in the shape `patchy look --json` uses.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Tier 1 and 2 starters import patchy/_generated/look.css from src/main.tsx;
the tier 0 starter links it from index.html, and the single-file build
inlines it, embedded fonts included. AGENTS.md points at the patchy-look
skill. Tests cover the starter page building in a look with an embedded
font at tiers 0 and 1, and refresh swapping look files while page source
stays untouched.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The CLI README, product doc, generate route, Publishing glossary (Managed
files, Project skill, Patchy look), skill distribution and context map say
how a repo gets the company look and what index.json's look records.
patchy-loop points agents at the patchy-look skill before styling, which
also reaches repos made before the scaffold imported the look. The image
build checks the Patchy look ships.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sequential replaces let a note containing <!-- look-brief --> take the
brief and leave the real marker unfilled. One pass over the template never
searches filled text. The generated README no longer calls the Patchy look
the company's.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The success and warning badges and the selected tab hard-coded colours
left from the 13-token prototype, so a page lifting them kept Patchy's
colours after the company published its own look. They now tint
--look-success, --look-warning and --look-accent. The provenance line no
longer names paths a patch repo doesn't have.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The patchy-look skill now forbids look publish and restore as a side
effect of building a patch, and says what a too_large tier 0 page means
when the look's fonts fill it. With no company look it says to leave out
every logo the brief shows, recipes included. patchy-loop's pointer to the
skill moves out of the vanilla tier 1 bullet so every repo gets it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the look/567-look-generation branch from 49a2856 to df2429c Compare October 7, 2026 15:03
@allisonmahmood
allisonmahmood merged commit f7957dc into main Oct 7, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the look/567-look-generation branch October 7, 2026 15:16
allisonmahmood added a commit that referenced this pull request Oct 7, 2026
Release 8 of What's new, written for the deploy of the company look
stack (#547, first build). It covers everything merged after release 7's
`through`.

- **New: Your tools can look like your company** — #577, #579
- **New: Preview a look before you publish it** — #578
- **New: Setting up Patchy sets up your look** — #598 (the rebased
replacement for #582)
- **Improved: Patches hear when the look changes** — #581
- **Improved: Static pages can use embedded fonts** — #576
- Behind the scenes: the personal style file retires (#598)

Written by Claude Fable 5.1 in Claude Code, running in T3 Code.

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area area:server Touches the server area size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(sdk): new patch repos start in their company's look

1 participant