Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

astryx

БесплатноЗапускает вложенные скриптыНе проверен

Build fully customizable, agent-ready design systems with Astryx — Meta's production design system now open source. Ships 150+ React components built on…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

Astryx — Agent-Ready Design System

Astryx is an open source design system built and proven at Meta over 8+ years across 13,000+ apps. It ships 150+ accessible React components, brand-level theming, dark mode, templates, and a CLI — all designed for how teams build now: by people and the agents working alongside them.

Built on React and StyleX, Astryx emphasizes open internals (no closed top-level API, full component composability), zero styling lock-in (bring your own CSS, no special build plugin), and agent readiness (components exported at the base level so AI assistants understand and extend them).

Currently in Beta

When to use this skill

  • You're building or scaling a component library and want production-proven patterns from Meta
  • You need 150+ accessible, ready-to-ship React components with dark mode, theming, and templates
  • Your design system must support both human and AI co-creation — agents need to understand, modify, and extend components safely
  • You want zero styling lock-in — bring your own CSS framework (Tailwind, emotion, vanilla CSS) without fighting a design system build plugin
  • You need component swizzling — ability to eject a component's full source into your project to customize without forking the library
  • Your team values open internals and composability over a locked top-level API
  • You want to leverage Meta's 8+ years of design system evolution across 13,000+ applications

When NOT to use this skill

  • Building a simple one-off application (use Shadcn, Mantine, or MUI directly)
  • Headless-only needs (no styled components required) — route to component architecture patterns
  • Non-React projects — Astryx is React-only; route to design token tools
  • Quick prototype that won't outlive a quarter

Quick Start

Step 1 — Install Astryx into your project

# Install the core package (React 18+ required)
npm install @astryxdesign/core

# Install the CLI for scaffolding and setup
npm install --save-dev @astryxdesign/cli

# Install the build utilities (optional, for custom builds)
npm install --save-dev @astryxdesign/build

Astryx requires Node 22+ on an active LTS line and pnpm 11+ (or enable Corepack):

# Enable Corepack once (auto-installs pinned pnpm)
corepack enable

# Install dependencies
pnpm install

Step 2 — Import and use components

Astryx ships fully exported components at the base level. No compound component API, no Context hell — just import what you need:

import { Button, TextField, Card, Stack } from '@astryxdesign/core'

export function MyApp() {
  return (
    <Card>
      <Stack gap="md">
        <TextField label="Name" placeholder="Enter your name" />
        <Button variant="primary">Submit</Button>
      </Stack>
    </Card>
  )
}

Step 3 — Apply theming and dark mode

Astryx supports brand-level theming and automatic dark mode via CSS variables:

import { ThemeProvider } from '@astryxdesign/core'

export function App() {
  return (
    <ThemeProvider theme="light" // or "dark" or "auto"
      colorScheme={{
        primary: '#6741d9',
        background: '#ffffff',
      }}
    >
      <MyApp />
    </ThemeProvider>
  )
}

Dark mode responds to system preference automatically.

Step 4 — Customize with swizzling

When you need to eject a component and own its implementation:

# Eject a component's full source into your project
astryx swizzle Button --path src/components/Button

# Now you can modify Button.tsx without forking the library

The ejected component is fully yours — customizations survive library upgrades.

Step 5 — Use templates for common patterns

Astryx ships ready-to-ship templates for common UI patterns:

# List available templates
astryx templates list

# Scaffold a form template
astryx templates create form --name MyForm

# Scaffold a data table
astryx templates create table --name MyDataTable

Core Concepts

Open Internals

Astryx exports primitives and building blocks at the base level, not locked behind a closed top-level API. This means:

  • You can compose Button, Icon, Loader, Tooltip freely in any combination
  • AI agents understand the component structure and can modify safely
  • You're never fighting a framework-imposed constraint

Contrast: many design systems lock you into their compound component structure. Astryx lets you build compound components yourself when you need them.

Zero Styling Lock-in

Astryx ships pre-built CSS using StyleX, but you're free to:

  • Replace styling entirely with Tailwind CSS utilities
  • Mix Astryx components with your own CSS framework
  • Override component styles via CSS modules or emotion
  • Use Astryx as a component anatomy reference while building your own styles

No build

Полный SKILL.md на GitHub

Установить astryx в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Grep
Glob
WebFetch
Find
Search

Вложенные файлы

README.mdreferences/stylex.mdreferences/swizzling.mdreferences/typescript.mdscripts/scaffold-component.shscripts/setup.sh

FAQ

Что делает скилл astryx?

Build fully customizable, agent-ready design systems with Astryx — Meta's production design system now open source. Ships 150+ React components built on StyleX with zero styling lock-in, component swizzling, brand theming, dark mode, and CLI tooling. Use when building component libraries, design systems, UI applications, design tokens, or when teams need consistent accessible components that AI agents can understand and extend. Triggers on: astryx, design system, component library, design tokens, react components, accessible components, astryx design, stylesheets, theme customization, component composition.

Как установить скилл astryx?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл astryx запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить astryx с