astryx-agent-design-system
Skill2 starsChanged 33 days agoApache-2.0View on GitHub
Implements Meta Astryx agent-ready design system architecture, StyleX/CSS cascade theming, accessible React 19 component tokens, and component swizzling for autonomous AI agents. Use when scaffolding design systems, swizzling UI components, applying cascade-based theme tokens, or building agent-native user interfaces.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- everything-gemini-maintainerSkill
- adversarial-fuzz-generatorSkill
- agency-boardroomSkill
- agency-design-systemSkill
- agency-growth-engineSkill
- agency-sprint-runnerSkill
- agent-evalsSkill
- agent-ui-micro-componentsSkill
- ai-first-engineeringSkill
- alloydb-omni-vectorSkill
- apache-kafka-streamsSkill
- api-craftsmanSkill
- architecture-designerSkill
- argon-3d-game-engineSkill
- argon-3d-scene-architectSkill
- argon-procedural-asset-generatorSkill
- argon-visual-critique-loopSkill
- argo-workflowsSkill
- autonomous-incident-healerSkill
- axum-web-serviceSkill
- bigquery-vector-searchSkill
- browser-qa-testerSkill
- chromadb-vector-storeSkill
- cilium-ebpf-networkingSkill
- clickhouse-analyticsSkill
- cloud-deploy-canarySkill
- cloudflare-r2-object-storageSkill
- cloudflare-workersSkill
- cloud-run-agentsSkill
- context-cachingSkill
- context-distillation-compressorSkill
- context-warmerSkill
- continuous-learningSkill
- cost-oracle-finopsSkill
- cross-repo-swarm-syncSkill
- cve-remediation-orchestratorSkill
- database-architectSkill
- dataproc-spark-analyticsSkill
- dbt-transformationSkill
- debezium-cdcSkill
- devops-pipelineSkill
- distributed-rate-limitingSkill
- docker-compose-orchestratorSkill
- duckdb-local-olapSkill
- dynamic-thinking-allocationSkill
- ebpf-microvm-sandboxSkill
- ebpf-sandbox-enforcerSkill
- elephant-goldfish-modelSkill
- envoy-ai-gatewaySkill
- ephemeral-swarm-orchestratorSkill
- fastapi-productionSkill
- fullstack-nextjsSkill
- game-audio-synthesizerSkill
- game-studioSkill
- gemini-function-callingSkill
- gemini-groundingSkill
- gemini-live-audio-transcriberSkill
- gemini-live-multimodalSkill
- gemini-live-screen-visionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 66
When building features, determine if the UI requires standard presentation or dynamic feedback states (e.g.
- Distinctive: line 71
Use the built-in Everything Gemini Astryx runner:
- Very specific: line 87
When implementing Astryx components, enforce native React 19 patterns (e.g.
- Very specific: line 144
Always Provide Fallback States: Never render empty white screens while waiting for network responses or LLM completions.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill 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
Meta Astryx Agent-Ready Design System Architecture
The astryx-agent-design-system skill provides a comprehensive implementation framework for Meta Astryx (meta/astryx)—Meta's open-source, agent-ready design system powering 13,000+ internal production applications. It equips autonomous agents with native awareness of accessible component tokens, cascade-based dynamic theming, and component ejection ("swizzling").
Why Astryx for Autonomous AI Agents?
Traditional UI component libraries assume human visual inspection and complex bundler configurations. In contrast, Astryx is built agent-first:
- Agent-Ready Documentation & Schemas: Components are structured with deterministic props, explicit
AGENTS.mdcontracts, and Model Context Protocol (MCP) support. - Compile-Time StyleX with Cascade Theming: StyleX compiles to atomic CSS rules, while runtime theme overrides operate purely through CSS custom properties in the cascade—updating every descendant dynamically at paint-time without re-rendering the React virtual DOM tree.
- Consumer Flexibility: The underlying StyleX engine is abstracted for consumers; agents can override styles using standard
className, Tailwind utilities, or CSS modules without forcing consumers into StyleX. - Component Swizzling ("Eject"): Agents can scaffold pre-built components or eject full, unminified, accessible source code directly into project workspaces for granular customization.
Core Component Catalog
Astryx organizes agent-ready UI modules into functional categories:
| Category | Components | Key Agent Invariants |
| Feedback & Loading | ProgressBar, Spinner, Skeleton, Toast, InlineBanner | Determinate/indeterminate states, aria-busy, zero CLS |
| Navigation & Steppers | Stepper, Breadcrumb, Tabs, Pagination | Step index boundaries, keyboard traversal (ArrowLeft/Right) |
| Data Display | MetricCard, DataTable, Badge, Avatar, Timeline | High contrast ratios ($\ge 4.5:1$), responsive overflow |
| Overlay & Modals | Dialog, Sheet, Drawer, Tooltip, Popover | Focus trapping, Escape key dismissal, aria-modal="true" |
| Forms & Controls | Button, InputField, Select, Toggle, Slider | 6-state exhaustion (default, hover, active, focus, disabled, error) |
Cascade-Based Token Contracts
Themes are defined as a token contract mapped to CSS custom properties:
:root {
/* Astryx Brand Tokens */
--astryx-color-primary: #00e5ff;
--astryx-color-primary-hover: #00b4d8;
--astryx-color-primary-active: #0077b6;
--astryx-color-bg-canvas: #07090e;
--astryx-color-bg-surface: #10141f;
--astryx-color-bg-overlay: #1a2234;
--astryx-color-border: rgba(66, 133, 244, 0.2);
--astryx-color-border-glow: rgba(0, 229, 255, 0.4);
/* Feedback Semantics */
--astryx-color-success: #00e676;
--astryx-color-warning: #ffab00;
--astryx-color-danger: #ff1744;
--astryx-color-info: #2979ff;
/* Typography & Spacing */
--astryx-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
--astryx-font-mono: 'JetBrains Mono', monospace;
--astryx-radius-sm: 4px;
--astryx-radius-md: 8px;
--astryx-radius-lg: 16px;
--astryx-radius-full: 9999px;
--astryx-transition-base: 150ms cubic-bezier(0.16, 1, 0.3, 1);
}Step-by-Step Agent Implementation Procedure
1. Identify Component Requirements
When building features, determine if the UI requires standard presentation or dynamic feedback states (e.g. data upload, LLM generation, multi-stage checkout):
- For long-running asynchronous tasks: Mandate
ProgressBarorSpinner. - For initial data loads: Mandate
Skeletonto eliminate Cumulative Layout Shift (CLS).
2. Scaffold or Swizzle via CLI
Use the built-in Everything Gemini Astryx runner:
# List all available Astryx agent-ready components
everything-gemini astryx list
# Preview component definition in JSON or terminal format
everything-gemini astryx preview progress-bar
# Swizzle (eject) unminified component source code into src/components/ui/
everything-gemini astryx swizzle progress-bar --output ./src/components/ui
# Check Astryx design system status
everything-gemini astryx status --json3. Implement Accessible React 19 Component
When implementing Astryx components, enforce native React 19 patterns (e.g. Action state hooks, ref as prop, zero legacy lifecycles):
import React from 'react';
export interface ProgressBarProps {
value?: number; // 0 to 100, undefined for indeterminate
max?: number;
label?: string;
variant?: 'primary' | 'success' | 'danger' | 'info';
className?: string;
}
export const ProgressBar: React.FC<ProgressBarProps> = ({
value,
max = 100,
label = 'Loading progress',
variant = 'primary',
className = '',
}) => {
const isIndeterminate = value === undefined || value === null;
const percentage = isIndeterminate ? 0 : Math.min(100, Math.max(0, (value / max) * 100));
return (
<div
role="progressbar"
aria-label={label}
aria-valuenow={isIndeterminate ? undefined : Math.round(percentage)}
aria-valuemin={0}
aria-valuemax={max}
aria-busy={isIndeterminate || percentage < 100}
className={`astryx-progress-track ${className}`}
style={{
position: 'relative',
width: '100%',
height: '8px',
backgroundColor: 'var(--astryx-color-bg-overlay)',
borderRadius: 'var(--astryx-radius-full)',
overflow: 'hidden',
}}
>
<div
className={`astryx-progress-fill astryx-variant-${variant} ${isIndeterminate ? 'astryx-indeterminate' : ''}`}
style={{
height: '100%',
width: isIndeterminate ? '35%' : `${percentage}%`,
backgroundColor: `var(--astryx-color-${variant})`,
borderRadius: 'var(--astryx-radius-full)',
transition: isIndeterminate ? 'none' : 'width var(--astryx-transition-base)',
}}
/>
</div>
);
};Best Practices & Invariants
- Always Provide Fallback States: Never render empty white screens while waiting for network responses or LLM completions; always provide
SkeletonorSpinner. - Enforce WCAG 2.1 AA/AAA Contrast: Text and interactive borders must meet a minimum $4.5:1$ contrast ratio against background surfaces.
- Support Swizzling: Allow developers to eject components rather than locking them into rigid black-box npm packages.
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.

