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 rootDESIGN.mdis a synced copyCONFORMANCE.yaml: Studio against the Design Standard, rule by ruledocs/architecture.md: how the packages, StudioKit and the apps depend on the spec and on each otherdocs/guides/tokens.mdbefore adding or renaming a token, anddocs/guides/apple.mdbefore touching Swift.station/STATUS.mdfor what is true now, anddocs/decisions/for why
Run
make validatebefore claiming anything works. It prints a table: pass, FAIL, or SKIPPED with the reason. SKIPPED is not a pass;STRICT=1 make validatefails on itmake e2eafter any change to CSS, a component, the web example, the gallery or the site (it opens the site from disk too)npm run buildafter changing the spec, a package's source,apps/webordemos/gallery, then commit what it wrotenode tools/site.mjsafter changing any document, the manifest or the version, then commit what it wrotemake syntaxafter changing any.swiftfile: 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 rootDESIGN.mdandCONFORMANCE.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 (
AppShellwith aSidebar: theWorkspaceSwitcherholding the account at the top start, search and New, sections, a foot; a rail on tablets and when collapsed; on phones the compactTopBarand the floatingTabBar); the public site's is Portico's, throughpackages/portico. Never list every place in one flat column (the long tail goes behind More), and never mix the two shells: no Portico inapps/, no app shell onpublic/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 underpublic/, 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/orpackages/system/fonts/: they are kept as received and checksummed;make fontsrebuilds 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
| Path | Is |
|---|---|
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/swift | StudioKit 2.4.0 (SwiftPM) on the generated StudioTokens.swift |
apps/web, apps/apple | The worked examples: static web build into public/app/; the SwiftUI app for iPhone, iPad and Mac |
demos/gallery | The 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/browser | Units; Chromium checks |
public/ | The static site, generated except assets/site.css |