Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(vibe-tests): generate fresh AGENTS.md via xds init before runs (#1498)

Cindy Zhangd778f018edf8
diff --git a/internal/vibe-tests/.generated/xds-tailwind-skill.md b/internal/vibe-tests/.generated/xds-tailwind-skill.md
deleted file mode 100644
index 7270a6bec3..0000000000
--- a/internal/vibe-tests/.generated/xds-tailwind-skill.md
+++ /dev/null
@@ -1,398 +0,0 @@
-# XDS + Tailwind Design System
-
-React design system for building internal tools. All components use the `XDS` prefix.
-XDS components handle structure, behavior, and accessibility. Use Tailwind utility classes for layout, spacing, and visual customization.
-
-> This document is auto-generated from source. Do not edit manually.
-
-## Key Concept
-
-All XDS components accept a `className` prop for Tailwind utilities. Use XDS components for structure and behavior, Tailwind for styling.
-
-```tsx
-// XDS components + Tailwind utilities
-import {XDSCard} from '@xds/core/Card';
-import {XDSVStack} from '@xds/core/Stack';
-import {XDSHeading, XDSText} from '@xds/core/Text';
-import {XDSButton} from '@xds/core/Button';
-
-<XDSCard className="max-w-md p-6 shadow-lg">
- <XDSVStack className="gap-4">
- <XDSHeading level={2}>Title</XDSHeading>
- <XDSText className="text-gray-500">Description text</XDSText>
- <XDSButton label="Submit" variant="primary" />
- </XDSVStack>
-</XDSCard>;
-```
-
-## CLI Reference
-
-Run these commands to get detailed docs on any component:
-
-- `npx xds component <Name>` — full docs (props, usage, examples)
-- `npx xds --detail compact component <Name>` — condensed reference
-- `npx xds component --list` — all components by category
-- `npx xds docs tokens` — token reference (spacing, color, radius)
-- `npx xds docs theme` — theme system reference
-
-## Principles
-
-React design system for internal tools. Components use `XDS` prefix.
-
-### Rules
-
-1. Use XDS components for everything they cover
-2. Use Tailwind utility classes for layout, spacing, colors, and responsive design
-3. Semantic tokens, not hardcoded values
-4. CSS variables for colors, not hex
-5. Form inputs are controlled (value + onChange)
-
-### Styling with Tailwind
-
-Use Tailwind utilities for:
-
-- **Spacing**: `p-4`, `mt-2`, `gap-3`, `mx-auto`, `space-y-4`
-- **Layout**: `flex`, `grid`, `max-w-md`, `w-full`, `items-center`, `justify-between`
-- **Colors**: `text-gray-500`, `bg-white`, `border-gray-200`, `bg-blue-50`
-- **Typography**: `text-sm`, `font-semibold`, `text-center`, `truncate`
-- **Responsive**: `sm:grid-cols-2`, `md:flex-row`, `lg:max-w-4xl`
-- **Borders**: `rounded-lg`, `border`, `shadow-md`
-- **States**: `hover:bg-gray-100`, `focus:ring-2`, `disabled:opacity-50`
-
-### Anti-Patterns
-
-❌ Inline `style={{}}` on elements → Use Tailwind classes via `className`
-❌ Hardcoded colors (#fff) → Use Tailwind color classes or var(--color-\*)
-❌ Inventing props → Read component docs first
-❌ Reimplementing components that XDS provides → Check the catalog below
-
-## Component Catalog
-
-Brief summaries of all available components. Run `npx xds component <Name>` for full docs.
-
-### Layout
-
-| Component | Import | Description |
-| ---------------- | ----------------------- | ---------------------------------------------- |
-| XDSAspectRatio | `@xds/core/AspectRatio` | Maintains aspect ratio for content |
-| XDSCenter | `@xds/core/Center` | Centers content horizontally and vertically |
-| XDSGrid | `@xds/core/Grid` | CSS grid layout container |
-| XDSGridSpan | `@xds/core/Grid` | Grid item that spans columns |
-| XDSHStack | `@xds/core/Stack` | Horizontal stack layout |
-| XDSLayout | `@xds/core/Layout` | Page-level layout with header, content, panels |
-| XDSLayoutContent | `@xds/core/Layout` | Main content area of layout |
-| XDSLayoutFooter | `@xds/core/Layout` | Footer area of layout |
-| XDSLayoutHeader | `@xds/core/Layout` | Header area of layout |
-| XDSLayoutPanel | `@xds/core/Layout` | Side panel of layout |
-| XDSStack | `@xds/core/Stack` | Generic stack (horizontal or vertical) |
-| XDSStackItem | `@xds/core/Stack` | Individual item in a stack |
-| XDSVStack | `@xds/core/Stack` | Vertical stack layout |
-
-### Display
-
-| Component | Import | Description |
-| ------------------ | -------------------- | ---------------------------------- |
-| XDSAvatar | `@xds/core/Avatar` | User avatar with image or initials |
-| XDSAvatarStatusDot | `@xds/core/Avatar` | Status indicator on avatar |
-| XDSBadge | `@xds/core/Badge` | Small label/count indicator |
-| XDSBaseTable | `@xds/core/Table` | Low-level table primitive |
-| XDSDivider | `@xds/core/Divider` | Visual separator line |
-| XDSFontWrapper | `@xds/core/Text` | Font family wrapper |
-| XDSHeading | `@xds/core/Text` | Heading text (h1-h6) |
-| XDSIcon | `@xds/core/Icon` | Icon display component |
-| XDSSkeleton | `@xds/core/Skeleton` | Loading placeholder |
-| XDSTable | `@xds/core/Table` | Data table with sorting |
-| XDSTableCell | `@xds/core/Table` | Table cell |
-| XDSTableHeaderCell | `@xds/core/Table` | Table header cell |
-| XDSTableRow | `@xds/core/Table` | Table row |
-| XDSText | `@xds/core/Text` | Body text with type scales |
-
-### Form
-
-| Component | Import | Description |
-| ----------------- | ------------------------- | ------------------------------------ |
-| XDSCheckboxInput | `@xds/core/CheckboxInput` | Checkbox with label |
-| XDSDateInput | `@xds/core/DateInput` | Date picker input |
-| XDSField | `@xds/core/Field` | Form field wrapper with label/status |
-| XDSFieldLabel | `@xds/core/Field` | Field label |
-| XDSFieldStatus | `@xds/core/Field` | Field validation status |
-| XDSNumberInput | `@xds/core/NumberInput` | Numeric input with stepper |
-| XDSRadioList | `@xds/core/RadioList` | Radio button group |
-| XDSRadioListItem | `@xds/core/RadioList` | Individual radio option |
-| XDSSelector | `@xds/core/Selector` | Dropdown select |
-| XDSSelectorItem | `@xds/core/Selector` | Selector option item |
-| XDSSelectorOption | `@xds/core/Selector` | Selector option |
-| XDSSlider | `@xds/core/Slider` | Range slider |
-| XDSSwitch | `@xds/core/Switch` | Toggle switch |
-| XDSTextArea | `@xds/core/TextArea` | Multi-line text input |
-| XDSTextInput | `@xds/core/TextInput` | Single-line text input |
-| XDSTimeInput | `@xds/core/TimeInput` | Time picker input |
-
-### Action
-
-| Component | Import | Description |
-| ------------------- | ------------------------ | ----------------------------------------------- |
-| XDSButton | `@xds/core/Button` | Button with variants (primary, secondary, etc.) |
-| XDSDropdownMenu | `@xds/core/DropdownMenu` | Dropdown menu with items |
-| XDSDropdownMenuItem | `@xds/core/DropdownMenu` | Menu item |
-| XDSLink | `@xds/core/Link` | Navigation link |
-| XDSLinkProvider | `@xds/core/Link` | Link routing provider |
-
-### Navigation
-
-| Component | Import | Description |
-| ----------------- | ------------------- | ---------------------- |
-| XDSTab | `@xds/core/TabList` | Individual tab |
-| XDSTabList | `@xds/core/TabList` | Tab navigation bar |
-| XDSTabMenu | `@xds/core/TabList` | Tab with dropdown menu |
-| XDSTopNav | `@xds/core/TopNav` | Top navigation bar |
-| XDSTopNavItem | `@xds/core/TopNav` | Nav bar item |
-| XDSTopNavMegaMenu | `@xds/core/TopNav` | Mega menu dropdown |
-| XDSTopNavMenu | `@xds/core/TopNav` | Nav bar menu |
-| XDSTopNavTitle | `@xds/core/TopNav` | Nav bar title/logo |
-
-### Overlay
-
-| Component | Import | Description |
-| --------------- | -------------------- | -------------------- |
-| XDSCalendar | `@xds/core/Calendar` | Calendar date picker |
-| XDSDialog | `@xds/core/Dialog` | Modal dialog |
-| XDSDialogHeader | `@xds/core/Dialog` | Dialog header |
-| XDSHoverCard | `@xds/core/Layer` | Card shown on hover |
-| XDSPopover | `@xds/core/Layer` | Popover overlay |
-| XDSTooltip | `@xds/core/Layer` | Tooltip overlay |
-
-### Other
-
-| Component | Import | Description |
-| ------------------- | ----------------------- | ----------------------------------------- |
-| XDSAppShell | `@xds/core/AppShell` | Application shell wrapper |
-| XDSBanner | `@xds/core/Banner` | Banner notification |
-| XDSBaseTypeahead | `@xds/core/Typeahead` | Low-level typeahead primitive |
-| XDSBreadcrumbItem | `@xds/core/Breadcrumbs` | Breadcrumb item |
-| XDSBreadcrumbs | `@xds/core/Breadcrumbs` | Breadcrumb navigation |
-| XDSCard | `@xds/core/Card` | Content card container |
-| XDSCollapsible | `@xds/core/Collapsible` | Collapsible/expandable section |
-| XDSCollapsibleGroup | `@xds/core/Collapsible` | Group of collapsible sections (accordion) |
-| XDSEmptyState | `@xds/core/EmptyState` | Empty state placeholder |
-| XDSFormLayout | `@xds/core/FormLayout` | Form layout helper |
-| XDSKbd | `@xds/core/Kbd` | Keyboard shortcut display |
-| XDSList | `@xds/core/List` | List container |
-| XDSListItem | `@xds/core/List` | List item |
-| XDSMobileNav | `@xds/core/MobileNav` | Mobile navigation drawer |
-| XDSMoreMenu | `@xds/core/MoreMenu` | "..." overflow menu |
-| XDSNavIcon | `@xds/core/NavIcon` | Navigation icon button |
-| XDSPagination | `@xds/core/Pagination` | Page navigation controls |
-| XDSProgressBar | `@xds/core/ProgressBar` | Progress indicator bar |
-| XDSSection | `@xds/core/Section` | Content section with heading |
-| XDSSideNav | `@xds/core/SideNav` | Side navigation panel |
-| XDSSideNavHeader | `@xds/core/SideNav` | Side nav header |
-| XDSSideNavItem | `@xds/core/SideNav` | Side nav item |
-| XDSSideNavSection | `@xds/core/SideNav` | Side nav section group |
-| XDSSpinner | `@xds/core/Spinner` | Loading spinner |
-| XDSStatusDot | `@xds/core/StatusDot` | Status indicator dot |
-| XDSToken | `@xds/core/Token` | Removable tag/token |
-| XDSTokenizer | `@xds/core/Tokenizer` | Multi-token input |
-| XDSTypeahead | `@xds/core/Typeahead` | Searchable dropdown with suggestions |
-| XDSTypeaheadItem | `@xds/core/Typeahead` | Typeahead suggestion item |
-
-## Token Reference
-
-XDS provides CSS custom properties you can reference alongside Tailwind utilities:
-
-### Spacing Tokens
-
-| Token | Value | Usage |
-| ----------------- | ----- | --------------- |
-| var(--spacing-0) | 0px | No spacing |
-| var(--spacing-1) | 4px | Tight spacing |
-| var(--spacing-2) | 8px | Compact spacing |
-| var(--spacing-3) | 12px | Default small |
-| var(--spacing-4) | 16px | Default medium |
-| var(--spacing-6) | 24px | Loose |
-| var(--spacing-8) | 32px | Extra loose |
-| var(--spacing-12) | 48px | Maximum spacing |
-
-### Color Tokens
-
-| Token | Usage |
-| ------------------------------- | -------------------- |
-| var(--color-accent) | Primary action color |
-| var(--color-background-surface) | Background surface |
-| var(--color-background-body) | Secondary background |
-| var(--color-success) | Success states |
-| var(--color-error) | Error states |
-| var(--color-warning) | Warning states |
-| var(--color-text-primary) | Main text |
-| var(--color-text-secondary) | Secondary text |
-| var(--color-text-accent) | Link text |
-
-### Radius Tokens
-
-| Token | Value | Usage |
-| ----------------------- | ------ | --------------- |
-| var(--radius-full) | 9999px | Pills, avatars |
-| var(--radius-container) | 12px | Cards, modals |
-| var(--radius-element) | 8px | Buttons, inputs |
-| var(--radius-inner) | 4px | Small elements |
-
-### Size Tokens
-
-| Token | Value | Usage |
-| ---------------------- | ----- | -------------------- |
-| var(--size-element-sm) | 28px | Compact controls |
-| var(--size-element-md) | 32px | Default control size |
-| var(--size-element-lg) | 36px | Larger controls |
-
-### Using Tokens with Tailwind
-
-You can reference XDS tokens in Tailwind arbitrary values:
-
-```tsx
-<div className="p-[var(--spacing-4)] bg-[var(--color-background-surface)] rounded-[var(--radius-container)]">
- Content
-</div>
-```
-
-Or simply use Tailwind's built-in scale which maps closely:
-
-- `p-4` ≈ var(--spacing-4) (16px)
-- `rounded-xl` ≈ var(--radius-container) (12px)
-- `rounded-lg` ≈ var(--radius-element) (8px)
-
-## Theme System
-
-XDS uses a theme provider for consistent styling:
-
-```tsx
-import {XDSTheme, defaultTheme} from '@xds/core';
-
-<XDSTheme theme={defaultTheme}>
- <App />
-</XDSTheme>;
-```
-
-### Custom Themes
-
-Create themes by overriding CSS custom properties:
-
-```tsx
-const myTheme = {
- ...defaultTheme,
- '--color-accent': '#7B61FF',
- '--color-background-surface': '#1A1A2E',
-};
-
-<XDSTheme theme={myTheme}>
- <App />
-</XDSTheme>;
-```
-
-### Nested Themes
-
-Wrap sections in different themes:
-
-```tsx
-<XDSTheme theme={lightTheme}>
- <main className="flex">
- <XDSTheme theme={darkTheme}>
- <aside className="w-64">Dark sidebar</aside>
- </XDSTheme>
- <div className="flex-1">Light content</div>
- </main>
-</XDSTheme>
-```
-
-## Common Patterns
-
-### Page Layout
-
-```tsx
-<XDSTheme theme={defaultTheme}>
- <XDSLayout>
- <XDSLayoutHeader>
- <XDSTopNav>
- <XDSTopNavTitle>My App</XDSTopNavTitle>
- </XDSTopNav>
- </XDSLayoutHeader>
- <XDSLayoutPanel className="w-64">
- <XDSSideNav>
- <XDSSideNavItem label="Dashboard" />
- <XDSSideNavItem label="Settings" />
- </XDSSideNav>
- </XDSLayoutPanel>
- <XDSLayoutContent className="p-6">
- <XDSVStack className="gap-6 max-w-4xl mx-auto">
- <XDSHeading level={1}>Dashboard</XDSHeading>
- <XDSText>Welcome to the app.</XDSText>
- </XDSVStack>
- </XDSLayoutContent>
- </XDSLayout>
-</XDSTheme>
-```
-
-### Form with Validation
-
-```tsx
-<XDSCard className="max-w-md p-6">
- <XDSVStack className="gap-4">
- <XDSHeading level={2}>Sign Up</XDSHeading>
- <XDSTextInput
- label="Email"
- value={email}
- onChange={setEmail}
- placeholder="[email protected]"
- />
- <XDSTextInput
- label="Password"
- type="password"
- value={password}
- onChange={setPassword}
- />
- <XDSButton
- label="Create Account"
- variant="primary"
- onClick={handleSubmit}
- className="w-full"
- />
- </XDSVStack>
-</XDSCard>
-```
-
-### Responsive Grid
-
-```tsx
-<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
- {items.map(item => (
- <XDSCard key={item.id} className="p-4">
- <XDSVStack className="gap-2">
- <XDSHeading level={3}>{item.title}</XDSHeading>
- <XDSText className="text-sm text-gray-500">{item.description}</XDSText>
- <XDSButton label="View" variant="secondary" />
- </XDSVStack>
- </XDSCard>
- ))}
-</div>
-```
-
-### Dialog with Form
-
-```tsx
-<XDSDialog isOpen={isOpen} onClose={() => setIsOpen(false)}>
- <XDSDialogHeader title="Edit Profile" />
- <div className="p-4">
- <XDSVStack className="gap-4">
- <XDSTextInput label="Name" value={name} onChange={setName} />
- <XDSTextArea label="Bio" value={bio} onChange={setBio} />
- <XDSHStack className="gap-2 justify-end">
- <XDSButton
- label="Cancel"
- variant="secondary"
- onClick={() => setIsOpen(false)}
- />
- <XDSButton label="Save" variant="primary" onClick={handleSave} />
- </XDSHStack>
- </XDSVStack>
- </div>
-</XDSDialog>
-```
diff --git a/internal/vibe-tests/.gitignore b/internal/vibe-tests/.gitignore
index 12c79a20a2..c8f9b2e951 100644
--- a/internal/vibe-tests/.gitignore
+++ b/internal/vibe-tests/.gitignore
@@ -12,7 +12,6 @@ AGENTS.html.md
# Generated skill doc (from CLI)
.generated/*
# Exception: XDS + Tailwind skill doc is committed (not auto-generated)
-!.generated/xds-tailwind-skill.md
# Test results (generated)
results/
diff --git a/internal/vibe-tests/AGENTS.xds-tailwind.md b/internal/vibe-tests/AGENTS.xds-tailwind.md
deleted file mode 100644
index 65374968c1..0000000000
--- a/internal/vibe-tests/AGENTS.xds-tailwind.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# AGENTS.md
-
-Project-specific guidance for AI coding agents.
-
-<!-- XDS-TAILWIND:START -->
-
-[XDS + Tailwind v0.0.1]|IMPORTANT: Prefer retrieval-led reasoning. Run CLI to read docs before generating code.
-|npx xds --detail compact component <Name> Docs (props, usage)
-|npx xds component --list All components by category
-|npx xds docs tokens Token reference (spacing, color, radius)
-|npx xds docs theme Theme system: XDSTheme, custom themes, overrides, nesting
-|RULE: Use XDS components for structure, behavior, and accessibility.
-|RULE: Use Tailwind utility classes for layout, spacing, colors, and visual customization.
-|RULE: All XDS components accept a `className` prop for Tailwind utilities.
-|RULE: Do NOT use StyleX, stylex.create, or the xstyle prop. Use className with Tailwind instead.
-|RULE: Import components from @xds/core/<ComponentDir> (e.g., @xds/core/Button, @xds/core/Text)
-|PATTERN: <XDSCard className="max-w-md p-6"><XDSVStack className="gap-4">...</XDSVStack></XDSCard>
-|PATTERN: Use Tailwind responsive prefixes: sm:, md:, lg: for responsive layouts
-|PATTERN: Use Tailwind arbitrary values for XDS tokens: className="p-[var(--spacing-4)]"
-
-<!-- XDS-TAILWIND:END -->
-
-## Skill Doc
-
-Read `.generated/xds-tailwind-skill.md` for the full component catalog, token reference, and usage patterns.
-
-## Quick Start
-
-```tsx
-import {XDSCard} from '@xds/core/Card';
-import {XDSVStack} from '@xds/core/Stack';
-import {XDSHeading, XDSText} from '@xds/core/Text';
-import {XDSButton} from '@xds/core/Button';
-
-export default function MyComponent() {
- return (
- <XDSCard className="max-w-md p-6">
- <XDSVStack className="gap-4">
- <XDSHeading level={2}>Title</XDSHeading>
- <XDSText className="text-gray-500">Description</XDSText>
- <XDSButton label="Submit" variant="primary" />
- </XDSVStack>
- </XDSCard>
- );
-}
-```
diff --git a/internal/vibe-tests/app/postcss.config.js b/internal/vibe-tests/app/postcss.config.js
deleted file mode 100644
index a34a3d560d..0000000000
--- a/internal/vibe-tests/app/postcss.config.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default {
- plugins: {
- '@tailwindcss/postcss': {},
- },
-};
diff --git a/internal/vibe-tests/app/tailwind.css b/internal/vibe-tests/app/tailwind.css
deleted file mode 100644
index f1d8c73cdc..0000000000
--- a/internal/vibe-tests/app/tailwind.css
+++ /dev/null
@@ -1 +0,0 @@
-@import "tailwindcss";
diff --git a/internal/vibe-tests/package.json b/internal/vibe-tests/package.json
index 90d7e14809..229dbaf296 100644
--- a/internal/vibe-tests/package.json
+++ b/internal/vibe-tests/package.json
@@ -9,7 +9,6 @@
},
"scripts": {
"harness": "tsx src/cli.ts",
- "generate:skill-doc": "bash scripts/generate-skill-doc.sh",
"interactive": "tsx src/interactive.ts",
"interactive:sample": "tsx src/interactive.ts --sample 5",
"run-interactive": "tsx src/run-interactive.ts",
diff --git a/internal/vibe-tests/scripts/generate-skill-doc.sh b/internal/vibe-tests/scripts/generate-skill-doc.sh
deleted file mode 100644
index 9203d204cb..0000000000
--- a/internal/vibe-tests/scripts/generate-skill-doc.sh
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/usr/bin/env bash
-# @file Generate XDS skill doc from CLI for vibe tests
-# @position internal/vibe-tests/scripts/generate-skill-doc.sh
-#
-# Generates a skill doc by combining CLI outputs:
-# - init --features agents framing (AGENTS.md index)
-# - component list --detail brief (component catalog)
-# - docs principles (design rules)
-# - docs tokens (token reference)
-# - docs theme (theme system)
-#
-# Output: .generated/xds-skill.md
-
-set -euo pipefail
-
-SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-VIBE_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
-REPO_ROOT="$(cd "$VIBE_DIR/../.." && pwd)"
-CLI="$REPO_ROOT/packages/cli/bin/xds.mjs"
-OUT_DIR="$VIBE_DIR/.generated"
-OUT_FILE="$OUT_DIR/xds-skill.md"
-
-# No CLI rebuild needed — the CLI uses raw .mjs files and discovers
-# components by scanning packages/core/src/ directly via readdirSync.
-
-mkdir -p "$OUT_DIR"
-
-echo "Generating XDS skill doc from CLI..." >&2
-
-cat > "$OUT_FILE" <<'HEADER'
-# XDS Design System
-
-React design system for building internal tools. All components use the `XDS` prefix.
-
-> This document is auto-generated from source. Do not edit manually.
-> Regenerate with: `yarn generate:skill-doc`
-
-## CLI Reference
-
-Run these commands to get detailed docs on any component:
-- `npx xds component <Name>` — full docs (props, usage, examples)
-- `npx xds --detail compact component <Name>` — condensed reference
-- `npx xds component --list` — all components by category
-- `npx xds docs principles` — design rules and anti-patterns
-- `npx xds docs tokens` — token reference (spacing, color, radius)
-- `npx xds docs theme` — theme system reference
-
-HEADER
-
-# Principles
-echo "## Principles" >> "$OUT_FILE"
-echo "" >> "$OUT_FILE"
-node "$CLI" docs principles 2>/dev/null | tail -n +3 >> "$OUT_FILE"
-echo "" >> "$OUT_FILE"
-
-# Component catalog
-echo "## Component Catalog" >> "$OUT_FILE"
-echo "" >> "$OUT_FILE"
-echo "Brief summaries of all available components. Run \`npx xds component <Name>\` for full docs." >> "$OUT_FILE"
-echo "" >> "$OUT_FILE"
-node "$CLI" --detail brief component --list 2>/dev/null >> "$OUT_FILE"
-echo "" >> "$OUT_FILE"
-
-# Tokens
-echo "## Token Reference" >> "$OUT_FILE"
-echo "" >> "$OUT_FILE"
-node "$CLI" docs tokens 2>/dev/null | tail -n +3 >> "$OUT_FILE"
-echo "" >> "$OUT_FILE"
-
-# Theme
-echo "## Theme System" >> "$OUT_FILE"
-echo "" >> "$OUT_FILE"
-node "$CLI" docs theme 2>/dev/null | tail -n +3 >> "$OUT_FILE"
-
-SIZE=$(wc -c < "$OUT_FILE")
-LINES=$(wc -l < "$OUT_FILE")
-echo "Generated $OUT_FILE ($SIZE bytes, $LINES lines)" >&2
diff --git a/internal/vibe-tests/src/build-previews.ts b/internal/vibe-tests/src/build-previews.ts
index 163f42a97e..59615c139c 100644
--- a/internal/vibe-tests/src/build-previews.ts
+++ b/internal/vibe-tests/src/build-previews.ts
@@ -142,19 +142,12 @@ function createEntryFile(
const entryPath = path.join(tmpDir, 'entry.tsx');
// For XDS and XDS+Tailwind targets, wrap in theme provider and import reset
- if (target === 'xds' || target === 'xds-tailwind') {
- const tailwindImport =
- target === 'xds-tailwind'
- ? `import '${path
- .resolve(VIBE_DIR, 'app/tailwind.css')
- .replace(/\\/g, '/')}';`
- : '';
+ if (target === 'xds') {
fs.writeFileSync(
entryPath,
`import React from 'react';
import {createRoot} from 'react-dom/client';
import '@xds/core/reset.css';
-${tailwindImport}
import {XDSTheme} from '@xds/core/theme';
import {defaultTheme} from '@xds/theme/default';
import Component from '${componentPath.replace(/\\/g, '/')}';
@@ -287,7 +280,7 @@ function createViteConfig(tmpDir: string, target: string): string {
// type casts). We use a pre-transform plugin to strip TypeScript type
// assertions before StyleX processes the file.
const plugins =
- target === 'xds' || target === 'xds-tailwind'
+ target === 'xds'
? `
{
name: 'stylex-inline-vars',
@@ -359,7 +352,7 @@ function createViteConfig(tmpDir: string, target: string): string {
viteSingleFile(),`;
const imports =
- target === 'xds' || target === 'xds-tailwind'
+ target === 'xds'
? `import stylex from '@stylexjs/unplugin';
import react from '@vitejs/plugin-react';
import {viteSingleFile} from 'vite-plugin-singlefile';`
@@ -383,7 +376,7 @@ import {viteSingleFile} from 'vite-plugin-singlefile';`;
},`;
const aliases =
- target === 'xds' || target === 'xds-tailwind'
+ target === 'xds'
? xdsAliases
: target === 'baseline'
? `
@@ -397,14 +390,7 @@ import {viteSingleFile} from 'vite-plugin-singlefile';`;
},`
: '';
- // XDS+Tailwind needs PostCSS with Tailwind for utility class resolution
- const cssConfig =
- target === 'xds-tailwind'
- ? `
- css: {
- postcss: '${path.resolve(VIBE_DIR, 'app').replace(/\\/g, '/')}',
- },`
- : '';
+ const cssConfig = '';
fs.writeFileSync(
configPath,
@@ -740,7 +726,7 @@ async function main() {
console.log(` 📄 ${promptId} (${target})...`);
// Auto-fix missing XDS imports before building
- if (target === 'xds' || target === 'xds-tailwind') {
+ if (target === 'xds') {
const autoImported = fixMissingXDSImports(componentPath);
if (autoImported.length > 0) {
console.log(` ⚡ Auto-imported: ${autoImported.join(', ')}`);
@@ -755,7 +741,7 @@ async function main() {
const ok = buildPreview(componentPath, target, promptId, previewPath);
if (ok) {
// Post-build validation: ensure no unresolved XDS references
- if (target === 'xds' || target === 'xds-tailwind') {
+ if (target === 'xds') {
const unresolved = validatePreviewHtml(previewPath);
if (unresolved.length > 0) {
console.error(
diff --git a/internal/vibe-tests/src/fix-imports.ts b/internal/vibe-tests/src/fix-imports.ts
index bbe6c824a9..831d81f2e1 100644
--- a/internal/vibe-tests/src/fix-imports.ts
+++ b/internal/vibe-tests/src/fix-imports.ts
@@ -15,10 +15,7 @@ import * as fs from 'node:fs';
import * as path from 'node:path';
import {getResultsDir, readJson} from './utils.js';
-function fixMissingXDSImports(
- filePath: string,
- dryRun: boolean,
-): string[] {
+function fixMissingXDSImports(filePath: string, dryRun: boolean): string[] {
const code = fs.readFileSync(filePath, 'utf-8');
// Find all XDS component references used in JSX
@@ -82,9 +79,7 @@ function main() {
const {iterations, dryRun} = parseArgs();
const resultsDir = getResultsDir();
- console.log(
- `\n🔧 Fix Missing XDS Imports${dryRun ? ' (dry run)' : ''}`,
- );
+ console.log(`\n🔧 Fix Missing XDS Imports${dryRun ? ' (dry run)' : ''}`);
console.log('='.repeat(40));
let totalFixed = 0;
@@ -103,7 +98,7 @@ function main() {
const target = iterManifest.config?.target ?? 'xds';
// Only XDS targets need import fixing
- if (target !== 'xds' && target !== 'xds-tailwind') {
+ if (target !== 'xds') {
console.log(` ⏭ ${iterationId} is ${target}, skipping`);
continue;
}
diff --git a/internal/vibe-tests/src/interactive.ts b/internal/vibe-tests/src/interactive.ts
index 39f99775bf..4d92433914 100644
--- a/internal/vibe-tests/src/interactive.ts
+++ b/internal/vibe-tests/src/interactive.ts
@@ -722,47 +722,6 @@ You are writing React components using ONLY:
console.log('✓ Generated AGENTS.html.md');
}
-/**
- * Install AGENTS.xds-tailwind.md and .generated/xds-tailwind-skill.md for XDS + Tailwind target
- *
- * This target uses XDS components with Tailwind utility classes instead of StyleX.
- * The AGENTS.xds-tailwind.md and skill doc are committed to the repo, so this
- * function just verifies they exist.
- */
-function installXdsTailwindDocs(): void {
- const vibeTestsDir = path.join(__dirname, '..');
- const agentsMdPath = path.join(vibeTestsDir, 'AGENTS.xds-tailwind.md');
- const skillDocPath = path.join(
- vibeTestsDir,
- '.generated',
- 'xds-tailwind-skill.md',
- );
-
- if (!fs.existsSync(agentsMdPath)) {
- console.error(
- '⚠ AGENTS.xds-tailwind.md not found. Run generate-skill-doc.sh first.',
- );
- return;
- }
-
- if (!fs.existsSync(skillDocPath)) {
- // Try generating via the skill doc script
- try {
- const generatedDir = path.join(vibeTestsDir, '.generated');
- ensureDir(generatedDir);
- console.log(
- '⚠ xds-tailwind-skill.md not found in .generated/. Ensure it is generated.',
- );
- } catch (_error) {
- console.warn(
- '⚠ Failed to find xds-tailwind-skill.md, continuing without it',
- );
- }
- }
-
- console.log('✓ Using AGENTS.xds-tailwind.md (XDS + Tailwind target)');
-}
-
/**
* Install AGENTS.md for agent documentation
*/
@@ -780,15 +739,15 @@ function installAgentsDocs(): void {
}
}
- // Run xds agent-docs via CLI
+ // Generate fresh AGENTS.md from xds init CLI
try {
- execSync('npx xds agent-docs', {
+ execSync('npx xds init --features agents --agent-docs-path AGENTS.md', {
cwd: vibeTestsDir,
stdio: 'pipe',
});
- console.log('✓ Generated AGENTS.md');
+ console.log('✓ Generated AGENTS.md from CLI (xds init)');
} catch (_error) {
- console.warn('⚠ Failed to generate AGENTS.md, continuing without it');
+ console.warn('⚠ Failed to generate AGENTS.md via xds init');
}
}
@@ -797,7 +756,7 @@ interface InteractiveConfig {
holdout?: boolean;
persona: 'naive' | 'experienced' | 'adversarial';
degradation?: boolean; // Enable degradation curve testing
- target: 'xds' | 'baseline' | 'html' | 'xds-tailwind'; // Target design system
+ target: 'xds' | 'baseline' | 'html'; // Target design system
}
interface AgentTask {
@@ -988,9 +947,7 @@ function generateSubagentPrompt(
? 'AGENTS.baseline.md'
: config.target === 'html'
? 'AGENTS.html.md'
- : config.target === 'xds-tailwind'
- ? 'AGENTS.xds-tailwind.md'
- : 'AGENTS.md';
+ : 'AGENTS.md';
// Persona-specific framing to simulate different user types
const personaFraming: Record<string, Record<string, string>> = {
@@ -1009,11 +966,6 @@ function generateSubagentPrompt(
experienced: `Use only plain HTML elements and inline CSS. `,
adversarial: `I know React component libraries exist but I want raw HTML/CSS. `,
},
- 'xds-tailwind': {
- naive: '', // No special framing - just the natural request
- experienced: `Use XDS components from @xds/core with Tailwind utility classes. `,
- adversarial: `I'm used to plain Tailwind but need to use your design system components. `,
- },
};
const framing = personaFraming[config.target]?.[config.persona] || '';
@@ -1108,7 +1060,7 @@ async function main() {
const targetIndex = args.indexOf('--target');
const target =
targetIndex !== -1
- ? (args[targetIndex + 1] as 'xds' | 'baseline' | 'html' | 'xds-tailwind')
+ ? (args[targetIndex + 1] as 'xds' | 'baseline' | 'html')
: 'xds';
const promptsIndex = args.indexOf('--prompts');
const promptIds =
@@ -1136,8 +1088,6 @@ async function main() {
installBaselineDocs();
} else if (target === 'html') {
installHtmlDocs();
- } else if (target === 'xds-tailwind') {
- installXdsTailwindDocs();
}
// Load test set
@@ -1192,7 +1142,7 @@ async function main() {
console.log(`Persona: ${persona}`);
if (skillDocOverride) console.log(`Skill doc: ${skillDocOverride}`);
console.log(
- `Mode: ${target === 'xds' ? 'AGENTS.md' : target === 'baseline' ? 'AGENTS.baseline.md' : target === 'xds-tailwind' ? 'AGENTS.xds-tailwind.md' : 'AGENTS.html.md'} (retrieval-led)`,
+ `Mode: ${target === 'xds' ? 'AGENTS.md' : target === 'baseline' ? 'AGENTS.baseline.md' : 'AGENTS.html.md'} (retrieval-led)`,
);
console.log(
`Protocol: ${degradation ? 'Degradation (10-turn curve)' : 'One-shot'}`,