Astryx/Templates

Agent skill

Your agent writes React.
/astryx teaches it to design.

The taste behind the twelve demos below, packaged as an agent skill for Claude Code and Codex. It makes a coding agent work the way a designer does — frame the page before writing any JSX, start from a real Astryx template, and review its own screenshot before calling the page done.

npx skills add hex2null/astryx

/astryx in Claude Code, $astryx in Codex. Drop the prefix and it still activates on its own whenever the request is clearly about Astryx UI.

~/apps/console claude
 /astryx build the billing settings page for this console

  Frame first. Regions budgeted before a line of JSX:  ┌────────────────────────────────────────────────┐
  │ TopNav                                    56px │
  ├──────────────┬─────────────────────────────────┤
  │ SideNav      │ Layout                          │
  │ 256px        │   Plan            Card          │
  │              │   Invoices        Table, flush  │
  │              │   Seats           List / Item   │
  └──────────────┴─────────────────────────────────┘  Closest page: dashboard — adapted, not started blank.

   src/App.tsx    frame contract, then the bands
   src/data.ts    seed content, out of the layout
   screenshot     reviewed at 1485×850 — two gap
                 values, no card soup, real copy

 

What you ask it for

Three more runs, beside the one above
  • /astryx this dashboard looks generic, fix it Walks the composition checklist over what is already there: card soup, a badge on every row, one gap value everywhere, placeholder copy.
  • /astryx make the orders table denser and give it a real empty state Reaches for the system component and its documented props rather than restyling a raw <div>.
  • /astryx port this page onto the incident-console template Scaffolds beside the existing file and moves the content across, because the usual cause of a page looking wrong is the frame, not the styling.
The skill deliberately carries no API facts. Component names, props, tokens and template names are fetched from the astryx CLI at runtime, so nothing inside it can go stale as the design system moves.

About Astryx

Astryx is an open source design system that is fully customizable and agent ready. It ships over 160 accessible, themeable React components built on StyleX, with built-in dark mode, production-ready templates, CLI scaffolding and documentation written for coding agents as well as people. Astryx grew inside Meta over the last eight years and now powers more than 13,000 apps. Every demo above is the production build of a standalone React 19 + TypeScript + Vite template in the repository.