astryx
AGENTS.md34k starsChanged 21 days agoMITView on GitHub
Astryx is a public design-system repository. Never commit internal links, identifiers, service names, private operational instructions, or other Meta-only context. This AGENTS.md is the canonical, tool-agnostic instruction surface for the repository. Add or change shared agent guidance here rather than duplicating it in tool-specific instruction files. Put genuinely path-specific guidance in a nested AGENTS.md. - Product builders: use astryx docs, component {Name}.doc.mjs files, and packages/cli/assets/docs/. - Contributors: read CONTRIBUTING.md and the relevant guidance linked from docs/README.md. - CLI output: an…
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about meta/astryx
- Signal Coders“Meta/astryx — An open source design system that's fully customizable and agent ready”YouTube · Nov 9, 2026 · 10k views
- Ray Codes“Astryx GitHub: Meta's New Agent Design Powers 174 Enterprise UI Components Locally!”YouTube · Nov 11, 2026 · 2.5k views
- SkipCI“Meta Open-Sources Astryx: 8 Years Powering 13,000+ Internal Apps”YouTube · Nov 11, 2026 · 1.1k views
- Git Hype“meta/astryx - An open source design system that's fully customizable and agent ready”YouTube · Nov 11, 2026 · 683 views
- Software Engineer Meets AI“Meta Astryx: Forget Shadcn & Tailwind”YouTube · Nov 14, 2026 · 623 views
The biggest 5 of 100 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 100
Talked about on GitHub, YouTube, the web, Bluesky and Hacker News (100 times).
On GitHub · 50
- Nov 14, 2026feat(w5): add Astryx as optional design-system library option — executiveusa/vibe-engineering1 reaction · 3 comments
- Nov 12, 2026build(deps): bump the minor-and-patch group across 1 directory with 16 updates — Plaintext-Lab/plaintext-blog1 reaction
- Nov 11, 2026docs(blog): add verified Astryx CLI walkthrough — penpenguin/portfolio1 reaction · 4 comments
- Dec 1, 2026build(deps): bump the worker-npm group in /worker with 5 updates — mayflower/wortlaut0 reactions
- Nov 30, 2026chore(deps): bump the patch-and-minor group across 1 directory with 27 updates — clement-antoine-xavier/emma-and-elea0 reactions · 1 comment
45 more on GitHub
- Nov 30, 2026build(deps): bump the minor-and-patch group with 5 updates — Jacob-9909/boundless0 reactions
- Nov 30, 2026license-server: Bump the license-server group in /license-server with 8 updates — robertherbaugh/kudurru0 reactions
- Nov 29, 2026build(deps): bump the npm-dependencies group across 1 directory with 18 updates — Sujaya-Nimneth/DataBridge0 reactions
- Nov 29, 2026chore(deps): bump @astryxdesign/theme-neutral from 0.2.0 to 0.7.17 — Miku-Events/miku-call-guide-app0 reactions
- Nov 29, 2026chore(deps-dev): bump @astryxdesign/cli from 0.2.0 to 0.7.17 — Miku-Events/miku-call-guide-app0 reactions
- Nov 29, 2026Bump @astryxdesign/core from 0.7.8 to 0.7.17 — Hyperrick/lyricstapper0 reactions
- Nov 28, 2026build(deps): Bump the astryx group in /admin-ui with 3 updates — TribalScale/ts-harness0 reactions
- Nov 28, 2026build(deps): bump the minor-and-patch group across 1 directory with 24 updates — Sujaya-Nimneth/VectorTrace-Multi-Disease-Surveillance0 reactions · 1 comment
- Nov 27, 2026Bump @astryxdesign/core from 0.7.16 to 0.7.17 — saaddahub/FingerPay0 reactions · 1 comment
- Nov 27, 2026Bump @astryxdesign/theme-neutral from 0.7.16 to 0.7.17 — saaddahub/FingerPay0 reactions · 1 comment
- Nov 27, 2026Bump @astryxdesign/cli from 0.7.16 to 0.7.17 — saaddahub/FingerPay0 reactions · 1 comment
- Nov 27, 2026흐름 시뮬레이터 작업 6: web 화면 2개와 Astryx 도입 — geonhos/specmock0 reactions · 2 comments
- Nov 27, 2026chore(deps): bump the astryx group with 4 updates — hyphacommerce/hypha0 reactions
- Nov 26, 2026build(deps): bump @astryxdesign/theme-neutral from 0.7.14 to 0.7.17 in /web — DiegoFranciscoG/lupa0 reactions
- Nov 26, 2026build(deps-dev): bump @astryxdesign/cli from 0.7.14 to 0.7.17 in /web — DiegoFranciscoG/lupa0 reactions
- Nov 26, 2026build(deps): bump @astryxdesign/core from 0.7.14 to 0.7.17 in /web — DiegoFranciscoG/lupa0 reactions
- Nov 25, 2026Bump @astryxdesign/core from 0.7.16 to 0.7.17 — nttare0/all-my-creation0 reactions · 2 comments
- Nov 25, 2026Bump @astryxdesign/cli from 0.7.16 to 0.7.17 — nttare0/all-my-creation0 reactions · 2 comments
- Nov 25, 2026Bump @astryxdesign/theme-neutral from 0.7.16 to 0.7.17 — nttare0/all-my-creation0 reactions · 2 comments
- Nov 25, 2026chore(deps): Bump the minor-and-patch group across 1 directory with 9 updates — Genpire/agent-army0 reactions
- Nov 24, 2026chore: bump the dev-tooling group with 5 updates — markeljan/gitbanners0 reactions
- Nov 24, 2026chore(deps): bump @astryxdesign/theme-gothic from 0.7.16 to 0.7.17 — mrgdwn/maplespire0 reactions
- Nov 24, 2026Bump @astryxdesign/core from 0.7.11-canary.ed0adf3 to 0.7.17 in /extension — dcluomax/browser-bridge0 reactions
- Nov 24, 2026chore(deps): bump the minor-and-patch group with 7 updates — AnandKalirana/Campus-Cart0 reactions
- Nov 24, 2026Bump @astryxdesign/core from 0.7.16 to 0.7.17 — Ritesh-Root/smogwise0 reactions · 1 comment
- Nov 23, 2026chore(deps): bump the astryx group across 1 directory with 2 updates — Jonatasbottaro/marcasalao-marketing0 reactions · 1 comment
- Nov 23, 2026chore(deps): bump @astryxdesign/core from 0.7.16 to 0.7.17 — mrgdwn/maplespire0 reactions
- Nov 23, 2026chore(deps): bump @astryxdesign/theme-neutral from 0.7.16 to 0.7.17 — mrgdwn/maplespire0 reactions
- Nov 23, 2026chore(deps-dev): bump @astryxdesign/cli from 0.4.5 to 0.7.16 in /frontend — GBSW/GBSW-CONN0 reactions
- Nov 23, 2026chore(deps): bump the astryx-design group with 4 updates — cysp/booze0 reactions
- Nov 23, 2026Bump the minor-and-patch group across 1 directory with 54 updates — markhunter123/Vera0 reactions
- Nov 23, 2026chore(deps): Bump the minor-and-patch group with 21 updates — lumagreen786-cell/Luma.Green0 reactions
- Nov 22, 2026chore(deps): bump the runtime-dependencies group across 1 directory with 4 updates — Sujaya-Nimneth/voxelle---Home0 reactions · 1 comment
- Nov 22, 2026Loot: Astryx — Meta's open-source, agent-readable design system — NeuralIO444/Kinetic_Curator0 reactions · 5 comments
- Nov 20, 2026chore: bump the astryx group across 1 directory with 2 updates — markeljan/gitbanners0 reactions
- Nov 20, 2026build(deps): bump @astryxdesign/theme-neutral from 0.7.15 to 0.7.16 in /frontend — DiegoFranciscoG/cpc-mini0 reactions
- Nov 20, 2026build(deps-dev): bump @astryxdesign/cli from 0.7.15 to 0.7.16 in /frontend — DiegoFranciscoG/cpc-mini0 reactions
- Nov 20, 2026build(deps): bump @astryxdesign/core from 0.7.15 to 0.7.16 in /frontend — DiegoFranciscoG/cpc-mini0 reactions
- Nov 20, 2026build(deps): bump @astryxdesign/cli from 0.7.14 to 0.7.16 in /frontend — KobraKob/common-ground0 reactions · 2 comments
- Nov 20, 2026build(deps): bump @astryxdesign/theme-y2k from 0.7.14 to 0.7.16 in /frontend — KobraKob/common-ground0 reactions · 2 comments
- Nov 19, 2026chore(deps): bump the astryx group with 2 updates — craftLayer-studio/industry-demos0 reactions
- Nov 19, 2026chore(deps): bump the astryx group across 1 directory with 2 updates — craftLayer-studio/craftlayer-studio.github.io0 reactions
- Nov 18, 2026Đề nghị P0: CFP+ Design System Astryx sandbox • HUB 69 • 5 Nhóm 10 Chương — charityfundplus/CFP.plus0 reactions
- Nov 17, 2026feat: MGSF Astryx Design Bridge M0.1 (isolated pilot) — madowaku/madowaku-cockpit0 reactions
- Nov 17, 2026[STYLE] Astryx 기반 인터랙티브 화면 개편 — mjufinder/teum-frontend0 reactions
On YouTube · 25
- Nov 9, 2026Meta/astryx — An open source design system that's fully customizable and agent ready — Signal Coders10k views · 3 comments
- Nov 11, 2026Astryx GitHub: Meta's New Agent Design Powers 174 Enterprise UI Components Locally! — Ray Codes2.5k views · 1 comment
- Nov 11, 2026Meta Open-Sources Astryx: 8 Years Powering 13,000+ Internal Apps — SkipCI1.1k views
- Nov 11, 2026meta/astryx - An open source design system that's fully customizable and agent ready — Git Hype683 views
- Nov 14, 2026Meta Astryx: Forget Shadcn & Tailwind — Software Engineer Meets AI623 views · 1 comment
20 more on YouTube
- Nov 10, 2026Meta Open-Sourced Its Design System: Astryx Explained — Open Source Trend421 views
- Nov 12, 2026Astryx: Meta's Free Open-Source Design System — Fork This.391 views
- Nov 11, 2026Astryx: 24.1K Stars Insane Meta Agent UI System [2026] — Repo_AI_Review266 views · 1 comment
- Nov 19, 2026Meta uses this design system in 13,000+ apps. Now your AI agent can too 🎨 | Astryx — BotsGoneWild261 views
- Nov 8, 2026Meta's Astryx: the design system behind 13,000+ Meta apps is free — Weights Unlocked212 views
- Nov 18, 2026Astryx Customization Overview — Dann Paker AI182 views
- Nov 9, 2026Astryx: Meta open-sourced its design system for people and AI agents, explained #meta #react #viral — 0x45 AI Developer182 views
- Nov 9, 2026Build UIs the Way Meta Does — Astryx Is Now Open Source — Dev Tools daily108 views · 1 comment
- Nov 13, 2026Meta's Astryx: the design kit behind 13,000 apps is now open source — The Daily Commit94 views
- Nov 12, 2026Astryx: Meta's 8-Year Design System Just Went Open Source (26.1k Stars, MIT) — n8nWithPatrick93 views
- Nov 17, 2026Meta Just Open-Sourced the Design System Behind 13,000+ Apps (Astryx) ⚡ — Tuxedo Labs69 views
- Nov 9, 202618,830 Stars: Meta Open-Sourced Its Design System Astryx — Telenewswire(GitHub,Hugging face & trending model)68 views
- Nov 11, 2026AI Keeps Making Messy Interfaces? Meta Open-Sourced Astryx #Shorts — NeoUnboxed54 views
- Nov 11, 2026Meta just open-sourced its app design kit #Astryx — Atlas & Icarus25 views
- Nov 11, 2026Astryx: Meta's 13,000-app design system for agents #shorts — Cemong21 views
- Nov 22, 2026Astryx: Give your React app a system — devloot xyz19 views
- Nov 11, 2026Try Meta Astryx Buttons Before Installing Anything — The Daily Repo17 views
- Nov 15, 2026One Word, New Look: Meta's Free Design System (Astryx) — Bouye | AI16 views
- Nov 20, 2026Build Faster: Astryx Design System by Meta 🚀⚛️ — GitGemVault6 views
- Nov 15, 2026Meta Open Sourced Its Design System — Astryx Is Free on GitHub — Githut6 views · 1 comment
On the web · 13
- Nov 27, 2026Meta Astryx Review: React 19 Design System — soymarketingultra.com
- Nov 25, 2026Build Your Site with Claude and Meta's Astryx Design System | Anwar Bouilouta — anwarbouilouta.com
- Nov 18, 2026【开源评测】Astryx:设计系统交给 Agent 之前,先把导出、文档和包边界管起来【开源评测】Astryx:设计系统 - 掘金 — juejin.cn
- Nov 18, 2026🎨 Astryx is Meta's open source design system, grown internally over eight years and powering 13,000+ apps. It ships 150+ accessible React components, dark mode, templates, seven themes and a CLI, with … | Prosper Flow IO — linkedin.com
- Nov 16, 2026Astryx Design System: 150+ React Components for AI Agents | phamnam.me — phamnam.me
8 more on the web
- Nov 15, 2026Astryx Setup Guide: Meta's Design System for AI Agents | Shipping Skool — shippingskool.com
- Nov 15, 2026Astryx on Ubuntu 26.04: Meta's Design System CLI and MCP | ComputingForGeeks — computingforgeeks.com
- Nov 12, 2026今日 GitHub 最热开源:Astryx,Meta 开源的“人机共建”设计系统Astryx 是 Meta 开源的一套设 - 掘金 — juejin.cn
- Nov 10, 2026Metaのデザインシステム「Astryx」をClaude Codeに使わせたら、LPはどう変わる?(あり/なし比較)|standby_tech — note.com
- Nov 9, 2026Astryx: What It Does, Setup & Verdict | MoreLime.AI — morelime2.com
- Nov 9, 2026astryx: A Chinese Translation of Meta's Design System, and What It Actually Takes to Run It — dev.to
- Nov 9, 2026Meta เปิด design system ที่ใช้มา 8 ปี: Astryx ไม่ใช่แค่ชุดคอมโพเนนต์ แต่ถูกออกแบบให้ AI เขียน UI ได้ — dev.to
- Oct 1, 2026Astryx: Meta's Agent-Ready Design System, Reviewed - Rushi's — rushis.com
On Bluesky · 10
- Nov 12, 2026Meta open-sourced Astryx, the design system it says runs 13,000+ of its apps, rebuilt so coding agents can read it. Good. It's React, so… — @johnathayde.com3 likes and reposts · 3 replies
- Nov 9, 2026¡Meta tiene un catálogo de componentes de código abierto! ✓ Componentes para React 19 ✓ Optimizado para agentes de IA ✓ 7 temas disponibles… — @midu.dev3 likes and reposts
- Nov 27, 2026AI coding agents often guess how your UI components work, and the screens look generic. Astryx is an open-source React design system with… — @crazygithubrepos.bsky.social2 likes and reposts
- Nov 11, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 meta / astryx ⭐ 21,746 (+3,111) 🗒 TypeScript An open source design system that's fully customizable… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Nov 11, 2026📈 Today's GitHub Trending: 1. https://github.com/meta/astryx - TypeScript, 2842 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost
5 more on Bluesky
- Nov 8, 2026今日のGitHubトレンド meta/astryx Astryxは、人間とAIエージェントの両方による開発を想定したオープンソースのデザインシステムです。 Meta社で13,000以上のアプリに導入されていた実績があり、React 19とStyleXをベースに構築されています。… — @dailygithubtrends.bsky.social1 likes and repost
- Nov 7, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 meta / astryx ⭐ 14,128 (+198) 🗒 TypeScript An open source design system that's fully customizable and… — @github-trending.bsky.social1 likes and repost
- Nov 7, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 meta / astryx ⭐ 14,029 (+181) 🗒 TypeScript An open source design system that's fully customizable and… — @github-trending-js.bsky.social1 likes and repost
- Nov 11, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 meta / astryx ⭐ 24,170 (+2,842) 🗒 TypeScript An open source design system that's fully customizable… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Nov 11, 2026公式READMEを読むと、中身はかなり本物寄りです。 Meta社内で8年育ち、13,000超のアプリで使われたという系譜に、型付きの部品、テーマ、CLIまで一式そろっています。ここは素直に強いです。 https://github.com/meta/astryx — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Nov 8, 2026Astryx: An open source design system that's customizable and agent ready3 points · 1 comment
- Nov 10, 2026An open source design system that's customizable and agent ready1 point · 1 comment
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 1 is distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Before you mark a pull request ready: pnpm preflight runs pnpm review:pre and CI's checks scoped to the change (--browser adds the browser …
- Very specific: line 41
Before editing a path, run pnpm specs:for <path>.
- Very specific: line 84
Only current records govern implementation and review.
- Distinctive: line 94
Before drafting, reviewing, or implementing a proposed outcome, search current records and open pull requests using the proposed canonical …
- Very specific: line 103
Run pnpm check:knowledge after editing knowledge records or templates.
- Very specific: line 124
Run pnpm -F @astryxdesign/vibe-tests interactive --sample <count> to set up iteration
- Very specific: line 126
Read the task file from results/<iteration>/tasks/{promptId}.json
- Very specific: line 129
Write .tsx result to results/<iteration>/results/{promptId}.tsx
- Very specific: line 130
Write .json metadata to results/<iteration>/results/{promptId}.json
- Very specific: line 132
Run pnpm -F @astryxdesign/vibe-tests aggregate --iteration <id> to see results
- Very specific: line 174
Update Protocol: When modifying code, keep the file's header comment accurate.
- Very specific: line 188
Imports inside a package: import the defining module ('../List/List'), never a folder's index barrel ('../List').
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Astryx repository guidance
Astryx is a public design-system repository. Never commit internal links, identifiers, service names, private operational instructions, or other Meta-only context.
Instruction surface
This AGENTS.md is the canonical, tool-agnostic instruction surface for the
repository. Add or change shared agent guidance here rather than duplicating it
in tool-specific instruction files. Put genuinely path-specific guidance in a
nested AGENTS.md.
Start here
- Product builders: use
astryx docs, component{Name}.doc.mjsfiles, andpackages/cli/assets/docs/. - Contributors: read
CONTRIBUTING.mdand the relevant guidance linked fromdocs/README.md. - CLI output: an agent reads every byte a command prints. Think about how long
an answer is, and test a change with agents, as
docs/contributing/cli-conventions.md("Output: keep answers short") says. - Pull requests: choose one primary intent and use its template under
.github/PULL_REQUEST_TEMPLATE/; readdocs/contributing/pull-requests.mdbefore opening or reviewing a mixed change. Before you request review, runpnpm review:preand its checklist from a fresh session. - Before you mark a pull request ready:
pnpm preflightrunspnpm review:preand CI's checks scoped to the change (--browseradds the browser specs;--quickis a fast subset, not CI-equivalent). - Component work: derive the review's semantic triggers, load matching
currentglobal baseline claims withnode scripts/review-global-baselines.mjs --authority-commit <base-sha> --review-head <head-sha> --triggers <comma-separated-triggers>, then read the component'sdocs/specs/components/<ComponentRoot>/{Name}.spec.mdwhen one exists and anymodule:*records it lists. Load global records before narrower owners, but resolve the direct component or family owner first when it governs the exact delta. A global route exposes only the listed claim; it never makes the whole record govern the component or change. Preserve each matched record, claim, trigger, and match reason in the review receipt. - Before editing a path, run
pnpm specs:for <path>. After editing, before you commit or push, runpnpm specs:for --diff origin/mainand follow every concern-routed claim. - Any path:
pnpm specs:for <path>lists the current records linked to it, the specs that decided them, and the global claims its component's triggers route. It reads the working tree, so on a pull-request branch it shows that branch's proposed records; it is a lookup, not review authority. It adds to the component-review steps above; it does not replace them. - Component-local visual intent: reuse or amend the optional
Design decisionstable in the current component/module spec only when durable local intent must survive future redesigns. Keep exact tuning in code/evidence and shared rules indocs/design/. DESIGNOWNER authors may include that local intent with the pixels and evidence in one atomic appearance-only PR. External contributors follow the normal contribution flow and are never asked to author specs; maintainers own missing authority. - Before adding a new
data-*attribute to a component, treat it as public API: themes generate selectors on data attributes. Add one only when a current record names it and says why (architecture:public-component-apiDEC-2). For a dynamic per-instance style, first use a StyleX dynamic style (stylex.create({x: (v) => ({...})})), which sets a private CSS variable; never add a data attribute just to feed CSS. For any other internal-only concern, use a privatedata-astryx-*attribute under INV23, or no attribute. - Layers: anchored layers follow their anchor through CSS anchor positioning only; script never moves a layer to follow its anchor (
architecture:layer-runtimeINV21). A press scales only the trigger's own visual; a layer renders outside it and anchors to the untransformed box (INV22). - Cross-component work: read the relevant contract under
docs/families/, applicable design spec underdocs/design/, and current architecture underdocs/architecture/. - Consequential shared-system changes: use a record under
docs/specs/. - Writing or reviewing any knowledge record: run the rubric in
docs/contributing/spec-writing.mdover the record and put its results in the pull request description under## Writing rubric results. A record describes the system in the present tense; proposals, history, pull requests, research, and project status (what is built so far, what goes first) stay out of it. When reviewing, read the record against the reported results; a record pull request without them is incomplete, so ask for them before reviewing the content. - Integration contribution work: read
docs/specs/AST-039/spec.md. Every new discoverable item owns a strongly typed, same-stem.doc.mjs; root manifests locate directories and never catalog their items. No catalog file (likethemes/manifest.json) and no per-item map in the manifest, ever.
Authority
Knowledge records declare authority:
draft: not authoritative; may still need evidence or owner review;current: explicitly approved and authoritative;archived: context only, with a reason such assuperseded,withdrawn, orhistoricaland a replacement link when one exists.
Only current records govern implementation and review. Never infer approval
from merged code, silence, an old review, or an existing wiki page.
Judgment boundary
Resolve checkable behavior from code, tests, and browser evidence. Ask a human only when a stable public API, theme contract, ownership boundary, compatibility policy, or genuinely subjective visual direction remains undecided. Ask one question at a time.
Before drafting, reviewing, or implementing a proposed outcome, search current records and open pull requests using the proposed canonical owner/id, affected paths and exported symbols, and the behavior's semantic terms. Extend or project the existing canonical owner by default. Create a new record only for a distinct fact boundary, and state why the existing owner cannot contain it. Do not create new policy for work that is already complete, owned, or superseded.
Validation
Run pnpm check:knowledge after editing knowledge records or templates. A
material template-shape change requires a schema-version bump and migration of
active records; changing template guidance alone does not rewrite accepted
history.
Custom Commands
/vibe-test [count] - Run vibeability tests
Tests how well AGENTS.md helps LLMs generate correct Astryx component code.
Usage:
/vibe-test 5 # Run 5 stratified sample tests (one-shot)
/vibe-test # Run all 21 tests (one-shot)
/vibe-test 5 --degradation # Run 5 tests with degradation curve (10-turn)How to execute:
- Run
pnpm -F @astryxdesign/vibe-tests interactive --sample <count>to set up iteration - Spawn parallel subagents (one per test prompt) to:
- Read the task file from
results/<iteration>/tasks/{promptId}.json - Generate code for the prompt using Astryx components (AGENTS.md auto-injected)
- Self-evaluate for success/escape hatches
- Write
.tsxresult toresults/<iteration>/results/{promptId}.tsx - Write
.jsonmetadata toresults/<iteration>/results/{promptId}.json
- Read the task file from
- Trigger
gh workflow run vibe-screenshots.ymlto build previews and capture screenshots - Run
pnpm -F @astryxdesign/vibe-tests aggregate --iteration <id>to see results
Degradation mode (--degradation): Tests context retention across 10-turn conversations with filler, distractor, and recovery turns. Probes at turns 0, 6, 8, 10 to measure quality degradation. Results show a line graph of each test's progression.
Result format:
{
"id": "<iter>-<promptId>",
"timestamp": "...",
"model": "claude-code-interactive",
"persona": "naive",
"promptCategory": "...",
"trajectoryDepth": 0,
"prompt": "...",
"response": "<code>",
"evaluation": {"success": true, "componentsUsed": [...], "escapeHatches": [...]}
}Runners may also write an optional <promptId>.provenance.json sidecar beside the result metadata. The versioned, executor-neutral contract and fallback behavior are documented in internal/vibe-tests/docs/execution-provenance.md.
AI Context
For architectural context, decisions, and research, see the GitHub Wiki:
- Decisions — API Conventions, Why StyleX, StyleX Distribution
- Architecture — System Architecture, Component Authoring Guide
- Research — AI + Design Systems, AI Model Trajectory, Swizzle Ergonomics
- Future — Animation System, RSC Utilities, Distribution Strategy
For component-specific documentation, see the {Name}.doc.mjs file in each component directory under packages/core/src/ (e.g. Button/Button.doc.mjs). These are plain JS files with JSDoc type annotations exporting a ComponentDoc object (typed via @astryxdesign/cli/authoring).
Documentation Standard
Documentation lives in two places:
- File Headers — Each source file has a structured JSDoc header with
@input,@output,@position, in about 12 lines at most - Component Docs —
{Name}.doc.mjsfiles in each component directory (props, features, examples)
Update Protocol: When modifying code, keep the file's header comment accurate. Look for SYNC: comments as reminders.
Source comments (architecture:knowledge-contracts INV29): make the code explain itself with names, structure, and control flow. A comment explains only non-obvious work: a reason, a constraint, an invariant, or a browser quirk. Never narrate the code, restate names or types, or cite pull requests, issues, dates, or spec records (pnpm specs:for <path> finds the record). When a citation is a file's only link to a record or claim, add that link to a record before you remove it: for a whole record, link the file through applies_to, verified_by, or path-applicability:v1; for a claim such as AST-108 FR4, add a claim-scoped reference such as system_specs: [spec:AST-108/FR4] to the file's own component, module, or theme record. Write in ASD-STE100 Simplified Technical English: short sentences, one topic each, active voice, present tense. Keep public JSDoc, the Effect note naming the system it syncs, and directives a tool reads: lint and TypeScript directives, @pr-a11y lines, and any other comment line a repository tool parses. The record has a worked before/after example.
Audience: every .doc.mjs, and everything under packages/cli/assets/docs/, is written for people building with Astryx — not for people building Astryx. Internal review rubrics, readiness gates, audit checklists and lab→core criteria belong in the wiki. A public authoring-quality rubric belongs in shipped docs when callers use it to evaluate an artifact they create through Astryx and a current system spec assigns that ownership. packages/cli/assets/docs/README.md has the test and the page each kind of material goes to.
Quick Reference
- Package manager: pnpm 11, pinned by the
packageManagerfield (see CONTRIBUTING.md for install options — Corepack is one of several, and Node 25+ no longer bundles it) - Testing: Vitest (colocated tests)
- Components:
packages/core/ - Storybook:
apps/storybook/ - Imports inside a package: import the defining module (
'../List/List'), never a folder's index barrel ('../List'); public consumers import@astryxdesign/core.@astryx/no-internal-barrel-importenforces it.
JSDoc Conventions
@examplecode fences must use plain```, not```tsx. Storybook's autodocs parser doesn't handle language-tagged fences in JSDoc correctly — the code block won't render as a proper code block. Always use untagged fences in@exampleblocks.
<!-- STYLEX-CAPS:START -->[StyleX v0.19.1 CSS Support]|Use CSS-native solutions. Don't build JS workarounds for supported features.
|AT-RULES: @media, @supports, @container (+named), @starting-style, @scope — YES
|AT-RULES: @layer, @property (explicit) — NO (compiles but invalid CSS output)
|PSEUDO-CLS: :hover, :focus, :focus-visible, :focus-within, :active, :disabled — YES
|PSEUDO-CLS: :first-child, :last-child, :nth-child(), :where(), :is(), :has(), :not() — YES
|PSEUDO-CLS: :placeholder-shown, :checked, :empty, :modal, :user-valid, :user-invalid — YES
|PSEUDO-EL: ::before, ::after, ::placeholder, ::selection, ::backdrop, ::marker, ::view-transition-_ — YES
|COMPOUND: ::backdrop+condition, RTL :is([dir="rtl"] _), nested @media+pseudo — YES
|VALUES: var(), calc(), clamp(), light-dark(), color-mix(), container-type/name — YES
|ANIM: transition (shorthand+individual), transitionBehavior:allow-discrete, animation longhands, stylex.keyframes — YES
|ANIM: animation shorthand — NO (use animationName/duration/timingFunction/etc.)
|WHEN: stylex.when.ancestor(':hover'/':focus-within'/':active'/':disabled') — YES
|WHEN: stylex.when.descendant(':hover'), siblingBefore(':checked'), siblingAfter(':checked'), anySibling(':hover') — YES
|WHEN: stylex.when.ancestor('[data-attr]') — YES
|NESTING: CSS nesting with & — NO (use stylex.when.ancestor/descendant/sibling for parent-child state)
|API: stylex.firstThatWorks() for CSS fallbacks (e.g. display: grid with flex fallback) — YES
|API: stylex.positionTry() for anchor positioning @position-try — YES
|API: stylex.types.color/length/etc for typed CSS variables in defineVars — YES
|API: stylex.defineConsts() for compile-time constants — YES
|DYNAMIC: Functions in stylex.create for runtime values — YES
|VARS: stylex.defineVars, stylex.createTheme (require .stylex.ts files) — YES
|LAYOUT: grid, flex+gap, aspect-ratio, overscrollBehavior, scrollbar-gutter/width — YES
|PATTERN: dialog entry animation -> @starting-style (not useState+rAF)
|PATTERN: parent hover child style -> stylex.when.ancestor(':hover', marker) (not CSS nesting). Use stylex.defineMarker() in a .stylex.ts file for scoped markers. Ancestor element MUST have marker.marker in its stylex.props() call. NEVER use stylex.defaultMarker() for form controls (CheckboxInput, RadioList, Switch) — it leaks hover/focus-within from outer containers like Popovers. Always use a component-scoped defineMarker() instead.
|PATTERN: hover on touch -> @media (hover: hover) guard
|PATTERN: zebra striping -> :nth-child(even) (not index%2 JS)
|PATTERN: container responsive -> @container (not ResizeObserver)
|PATTERN: CSS fallback values -> stylex.firstThatWorks() (not manual fallback)
|PATTERN: dynamic/runtime values -> stylex.create({ s: (val) => ({ prop: val }) }) (not inline styles)
|PATTERN: conditional styles -> stylex.props(condition && styles.x) (not className toggling)
|PATTERN: link elements -> useLinkComponent() (not hardcoded <a>). Consumers swap via LinkProvider for framework routers (Next.js, React Router)
|VERIFY: node internal/stylex-capabilities/scan.mjs
<!-- STYLEX-CAPS:END --><!-- ASTRYX-CLI:START -->Astryx CLI|Run from repo root. Load agent docs before any component work.
astryx() { node packages/cli/clients/cli/bin/astryx.mjs "$@"; }
BOOTSTRAP (run every branch, <500ms):
astryx help # discover all commands and options
astryx docs # list available doc topics
astryx docs principles --dense # design rules, anti-patterns, xstyle, tokens
astryx docs tokens --dense # spacing, color, radius, typography, shadow
astryx docs theme --dense # theme provider, light/dark, overrides
astryx component --list # all components grouped by category
astryx template --list # available page templates
ON DEMAND:
astryx docs <topic> --index # section index: one line per section, with its key
astryx docs <topic> <section> # one section, by key or title
astryx component <Name> --dense # import, usage and props for one component; --detail full adds anatomy and theming
astryx template <name> # emit full page source
astryx template <name> --skeleton # layout skeleton with spatial annotations
astryx swizzle <Name> # eject component source for deep customization
astryx upgrade --from <old version> --apply # run version migration codemods
OPTIONS: --detail compact|brief less output | --dense token-efficient | --zh Chinese
RULE: always run bootstrap on each branch — docs reflect the branch's actual API
RULE: always run astryx component <Name> --dense before modifying a component
RULE: after @astryxdesign/core bump, always run astryx upgrade --from <old version> --apply
<!-- ASTRYX-CLI:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

