Skip to content
Studio

Agents

What to read, what to run, and what never to do in this repository.

Read

  • packages/system/DESIGN.md: the specification. Every value lives here and nowhere else; the root DESIGN.md is a synced copy
  • CONFORMANCE.yaml: Studio against the Design Standard, rule by rule
  • docs/architecture.md: how the packages, StudioKit and the apps depend on the spec and on each other
  • docs/guides/tokens.md before adding or renaming a token, and docs/guides/apple.md before touching Swift
  • .station/STATUS.md for what is true now, and docs/decisions/ for why

Run

  • make validate before claiming anything works. It prints a table: pass, FAIL, or SKIPPED with the reason. SKIPPED is not a pass; STRICT=1 make validate fails on it
  • make e2e after any change to CSS, a component, the web example, the gallery or the site (it opens the site from disk too)
  • npm run build after changing the spec, a package's source, apps/web or demos/gallery, then commit what it wrote
  • node tools/site.mjs after changing any document, the manifest or the version, then commit what it wrote
  • make syntax after changing any .swift file: tree-sitter parses it. Parsing is not compiling; say "not compiled" unless Xcode built it

Never

  • Never edit a generated file: packages/system/dist/*, packages/swift/Sources/StudioKit/Generated/*, packages/swift/Sources/StudioKit/Resources/Fonts/*, packages/react/dist/*, public/app/*, public/components/*, public/docs/*, public/design/*, public/system/*, public/assets/studio/*, public/assets/portico/*, public/llm.txt, index.html, the root DESIGN.md and CONFORMANCE.yaml. Change the source and rebuild
  • Never write a value in a stylesheet or a SwiftUI view: a colour, a length, a duration. Read a token; if the token is missing, it belongs in packages/system/DESIGN.md
  • Never add a second accent hue, a border thicker than the hairline, or a radius under 6 px; never set body copy in Bounded or mono
  • Never put a border on one inline edge, an inset shadow outside the glass highlight, or a sideways shadow
  • Never let a button, badge, pill, tab or navigation label wrap
  • The app's navigation is the sidebar (AppShell with a Sidebar: the WorkspaceSwitcher holding the account at the top start, search and New, sections, a foot; a rail on tablets and when collapsed; on phones the compact TopBar and the floating TabBar); the public site's is Portico's, through packages/portico. Never list every place in one flat column (the long tail goes behind More), and never mix the two shells: no Portico in apps/, no app shell on public/ pages (ADR 0012)
  • Every resource kind is edited in the one EditorWorkspace (editor bar, library panel, canvas, inspector); never a drawer, a modal form or a second editor layout (ADR 0011)
  • Never put a module script (<script type="module">) on a page under public/, and never load from a CDN; the site opens from disk with fonts and icons self-hosted
  • Never claim Swift compiled, tests passed or a journey works on a device unless it was run there
  • Never edit vendor/ or packages/system/fonts/: they are kept as received and checksummed; make fonts rebuilds the fonts from their pinned sources
  • Never delete questionable material; move it to .archives/removal-safe/<name>/ with a README saying why, what replaced it, and whether restoring is safe

Shape

PathIs
packages/system/DESIGN.md, CONFORMANCE.yaml, vendor/The spec, its statement, the pinned Standard and Portico
packages/system@aidenlive/studio-system: generator, tokens (CSS, JS, JSON, Swift), CSS, fonts, the studio command
packages/react@aidenlive/studio-react: components
packages/portico@aidenlive/studio-portico: the binding
packages/swiftStudioKit 2.4.0 (SwiftPM) on the generated StudioTokens.swift
apps/web, apps/appleThe worked examples: static web build into public/app/; the SwiftUI app for iPhone, iPad and Mac
demos/galleryThe gallery's source; tools/gallery.mjs builds it into public/components/
tools/Generators and checks, each with a --check mode or a SKIPPED reason
test/node, test/browserUnits; Chromium checks
public/The static site, generated except assets/site.css
Contents