Skip to content

feat(patchy): onboarding sets up the company look, and the personal default style retires - #598

Merged
allisonmahmood merged 8 commits into
mainfrom
look/569-look-onboarding
Oct 7, 2026
Merged

allisonmahmood merged 8 commits into
mainfrom
look/569-look-onboarding

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

Onboarding still captured a personal style.md that only one person's static pages ever read, and a static page in a company with no look had no way to reach the Patchy look. This moves onboarding and the global skill to the company look and retires the personal default style.

Onboarding. Right after login, the agent runs patchy look --json and whoami:

  • An admin whose company has no look gets a guess from their email domain ("You're at acme.com. Want your tools to look like Acme?"). A webmail address gets no guess: the agent asks for a site once, or moves on. On yes, it captures the site on the person's machine, shows the specimen with patchy look preview, sums the look up in one line and publishes revision 1.
  • A member is asked nothing. Someone joining a company with a look is told their tools will use it.
  • The portal's setup line (Set up Patchy using …/llms.txt) runs this step too, because that login is the first time an agent meets a company's creator.

The global skill.

  • Static pages, the welcome page included, settle their style in the spec's order: what the person asked for, the page's own style, the company look, the Patchy look.
  • Agents write patchy look --json to a file and copy look.css and the logo by script, because embedded fonts can make the read half a megabyte. When the read fails, they fix the login or retry, and write a plain page rather than invent a look.
  • The welcome page's CSS now uses only the look's tokens, so it takes whichever look applies. Its badges carry status in text and border on bg or surface, the grounds the look checks verify.
  • The look changes only on an explicit request. A member is told who the admins are and can publish a draft's specimen as a page to show them. An admin sees look preview --compare before look publish.
  • style-file.md becomes look-capture.md, built from the prototype's capture draft and its four capture notes. patchy-plan-style.md goes, because the Patchy look replaces it.

The wire. GET /api/look (and patchy look --json) now carries patchyLook: the Patchy look's look.css and LOOK.md while current is null, and null otherwise. It also carries admins, so a member's agent can name the admins without attempting a change. The Patchy look moves from packages/sdk/looks/patchy/ to packages/companies/looks/patchy/. Looks reads it once, and both generation and the look API use that one copy. Its brief now heads pages with the company's name, since the stand-in never carries Patchy's logo.

Retired. status --json drops hasDefaultStyle, and nothing reads or writes style.md. There is no migration, since nobody has a setup yet.

Tried with fresh agents (Claude Code in /tmp with only the rewritten skill, against pnpm dev up team plus two companies made through create-or-join):

  • An admin at a real company domain was asked the guess question. The agent captured the site from the product's own CSS in about three minutes, showed the specimen and published revision 1. It then published the welcome page in that look, logo included.
  • A Gmail admin got no guess, skipped, and got the welcome page in the Patchy look.
  • A member of a company with a look was asked nothing and told their tools use it.
  • A member asking for a darker green was told only Ada can change it, and published the draft's specimen as acme/look-draft.
  • An admin asking the same got look preview --compare and published revision 2 only after approving.
  • The creator's real path, on a machine with nothing installed: given only the portal's setup line, the agent ran the installer, relayed the login, then asked the guess question. llms.txt needed no change. After the capture, the person said "that's our marketing website, not our product". The agent didn't argue or publish; it found the app behind a login, asked for product material, re-captured from the help centre's app screenshots and the sign-in screen, and published revision 1 once approved. It then handed back to "ask for your first tool" without a welcome page.
  • Ambiguous domains: eng.<domain> was fetched and guessed as the bare domain. A domain that now redirects to another company's site was named as such, and the agent asked for the right site instead of guessing.

Closes #569

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

Replaces #582, whose GitHub record stopped tracking the branch after it was rebased onto main for landing; the commits are identical. Review rounds and the orchestrator's verdicts are on #582.

allisonmahmood and others added 8 commits October 7, 2026 17:26
…e admins

A static page settles its style with `patchy look --json`, but a company with
no look got `current: null` and nothing to style by. The read now carries the
Patchy look's `look.css` and `LOOK.md` as `patchyLook` while `current` is
null, and `admins`, so a member's agent can say who changes the look without
attempting a change.

The Patchy look moves from the SDK into Companies beside the look it stands
in for; `Looks` reads it once and generation uses the same copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The company look replaces the personal default style, so nothing reads or
writes `style.md` and `status --json` drops `hasDefaultStyle`. Nobody has a
setup yet, so there is no migration.

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

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

Onboarding's style question becomes the company look: after login, an admin
whose company has no look is asked "You're at acme.com. Want your tools to look
like Acme?", from their email domain unless it is webmail; the agent captures
the site, shows the specimen and publishes revision 1. A member is asked
nothing, and someone joining a company with a look is told their tools use it.
The portal's setup line runs this step too, since it is the first moment an
agent meets a company's creator.

Static pages and the welcome page settle their style with `patchy look --json`
in the spec's order; the welcome page's own CSS uses only the look's tokens.
Changing the look takes an explicit request: a member hears who the admins are
and can show a draft's specimen as a page; an admin's change shows the
comparison first. `style-file.md` becomes the capture reference, and the old
plan-doc style goes now that the Patchy look is reachable.

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

patchyLook's schema is look.css and LOOK.md alone, so the API docs stop
offering a logo the Patchy look never has, and Looks locates the shipped
folder with Path.fromFileUrl instead of a node:url opt-out.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…s read into a file

The welcome page settles its style by the same four-level order as any static
page, so a request or the published page's own style wins on a redo. Its
badges carry status in text and border on bg or surface, the grounds the look
checks verify. Agents write patchy look --json to a file and copy look.css and
the logo by script, since embedded fonts can make the read half a megabyte,
and the skill says what to do when the read fails.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The Patchy look never carries a logo, so its header recipe and logo section
show the company's name instead of Patchy's mark. Its avoid list narrows grids
of cards to dashboards tiled with them, as its layout section already says.
The Patchy look's glossary entry moves to Companies, which ships it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@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:xl Over 1,000 changed lines; review in multiple passes labels Oct 7, 2026
@allisonmahmood
allisonmahmood merged commit f11604c into main Oct 7, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the look/569-look-onboarding branch October 7, 2026 15:43
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]>
allisonmahmood added a commit that referenced this pull request Oct 14, 2026
…chine (#672)

# What changed

The global skill only treated the portal's exact line, `Set up Patchy
using <instance>/llms.txt`, as a request to set a machine up, and that
path ended by pointing at the portal's guide. A person who asks in their
own words ("go to <instance> and get Patchy set up for me") was only
arguably covered: an agent could log in and skip the company look step,
and it had no closing for someone with no guide on screen.

The setup trigger in `SKILL.md` and `references/onboarding.md` is now
any request to get this machine ready to use Patchy, with the portal's
line as one example. It still logs in, runs step 3 (the company look)
and stops without a welcome page, now closing with step 5's one-line
sign-off. In the reference, "Redo my Patchy setup" moves above it and
the setup bullet reads "Any other request…", so redo keeps precedence
and still runs the whole conversation. "Those are the only triggers",
"installing or wiring up the skill runs nothing" and the absence of a
first-session check are unchanged. `docs/product.md` (the entry point)
and the patchy glossary's **Setup prompt** say the same; the glossary
entry also still claimed the setup line publishes the welcome patch,
which stopped being true in #598.

Closes #670

## How it was verified

- [x] `pnpm check`: format, lint, typecheck and synth pass. Tests: 1735
of 1736 passed. The one failure was
`packages/patchy/src/devExecution.test.ts` (workerd failed at startup
while the shared machine's load average was 16). It passed on rerun
together with `skillLock.test.ts`.
- [ ] Added or updated tests covering this change. Not applicable: the
diff is skill and doc wording plus the lock hash.
- `skills-lock.json` has the new `sha256sum skills/patchy/SKILL.md`.
- Checked against the portal guide (`packages/portal/src/guide.ts`).
Step 1 says the line "installs Patchy and gets this computer ready to
publish", which matches the new trigger wording. Step 3, "Ask for your
first patch", fits a sign-off that tells the person what to say next. No
portal copy changes.
- I did not run this with a fresh agent.

## Surface walk (CLAUDE.md › Hit every surface)

- **The wire contract**: does not apply.
- **The CLI**: applies to the global skill only. `SKILL.md` changed, so
the lock hash is refreshed. No command, flag or exit code changed, so
the README and ADR-0004 are untouched.
- **The dev loop**: does not apply.
- **Vocabulary and product shape**: applies. The entry point in
`docs/product.md` and **Setup prompt** in `packages/patchy/GLOSSARY.md`
are updated. No ADR contradicts the change.
- **Migrations, company resources, reverse states, repo layout**: do not
apply.
- **Served pages**: the portal guide was checked and left unchanged.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — wording in the global skill and docs only; the
skill reaches machines with the next release's install or upgrade.

Made by Claude Opus 5.5 via Claude Code in T3 Code

Co-authored-by: Claude Opus 5.5 <[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:xl Over 1,000 changed lines; review in multiple passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(patchy): onboarding sets up the company look, and the personal default style retires

1 participant