agentleFS
PMDevSolutionsPMDevSolutions/Aurelius/CLAUDE.md

Aurelius

CLAUDE.md8 starsChanged 5 months agoMITView on GitHub

This is a Claude Code-integrated multi-framework app development framework providing specialized agents, skills, scripts, and design-to-code conversion pipelines. Supports React, Vue 3, Svelte/SvelteKit, and React Native (Expo) output targets. The framework is designed for: - Multi-framework app development (React/Next.js/Vite/Remix, Vue 3, SvelteKit, React Native/Expo) - Figma-to-code, Canva-to-code, Screenshot/URL-to-code, and Conversation-to-code (generated Figma designs) conversion with Tailwind CSS - Comprehensive testing (Vitest, React Testing Library, Playwright, Storybook) - Full product lifecycle support (engineering, design, testing, marketing, operations)

  • Installs packages
  • Commits and pushes

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Canva AI Connector: - Search, export, and interact with Canva designs

    line 426
  2. Distinctive:

    Use discriminated unions for complex prop patterns

    line 468
  3. Very specific:

    Use cn() utility for conditional classes (clsx + tailwind-merge)

    line 481

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

This is a Claude Code-integrated multi-framework app development framework providing specialized agents, skills, scripts, and design-to-code conversion pipelines. Supports React, Vue 3, Svelte/SvelteKit, and React Native (Expo) output targets.

The framework is designed for:

  • Multi-framework app development (React/Next.js/Vite/Remix, Vue 3, SvelteKit, React Native/Expo)
  • Figma-to-code, Canva-to-code, Screenshot/URL-to-code, and Conversation-to-code (generated Figma designs) conversion with Tailwind CSS
  • Comprehensive testing (Vitest, React Testing Library, Playwright, Storybook)
  • Full product lifecycle support (engineering, design, testing, marketing, operations)

Project Structure

project-root/
├── .claude/              # Claude Code configuration
│   ├── agents/           # 56 specialized agents
│   ├── skills/           # 24 React-specific skills
│   ├── commands/         # Custom slash commands
│   ├── hooks/            # Hook scripts (automated hooks configured in settings.json)
│   └── pipeline.config.json  # Pipeline thresholds, iteration limits, app types
├── scripts/              # Development automation scripts
├── packages/             # TypeScript pipeline packages (pnpm workspace)
│   ├── pipeline/         # Design-to-code core: InDesign IDML parser + IR (@aurelius/pipeline)
│   └── gui/              # Desktop GUI (Electron + React, @aurelius/gui) — see docs/GUI.md
├── renderers/            # Pluggable framework renderer manifests (renderer.json + schema)
├── templates/            # Starter configs (ESLint, Tailwind, Vitest, Chrome ext, PWA, etc.)
├── docs/                 # Documentation
│   ├── figma-to-react/   # Figma conversion pipeline docs
│   ├── canva-to-react/   # Canva conversion pipeline docs
│   ├── screenshot-to-app/ # Screenshot/URL conversion pipeline docs
│   ├── conversation-to-app/ # Conversation pipeline docs (generated Figma designs)
│   ├── indesign-to-react/ # InDesign IDML conversion pipeline docs
│   ├── multi-framework/  # Multi-framework output target docs
│   └── react-development/# React development standards
└── CLAUDE.md             # This file

Development Scripts

# Lint and format code
./scripts/lint-and-format.sh

# Run tests with coverage
./scripts/run-tests.sh

# Run mutation tests (Stryker)
./scripts/run-mutation-tests.sh                    # Run with default threshold
./scripts/run-mutation-tests.sh --threshold 80     # Override threshold
./scripts/run-mutation-tests.sh --json             # JSON output

# TypeScript type checking
./scripts/check-types.sh

# Bundle size analysis
./scripts/check-bundle-size.sh

# Accessibility linting
./scripts/check-accessibility.sh

# Verify design token usage (no hardcoded values)
./scripts/verify-tokens.sh

# Verify every component has a test file
./scripts/verify-test-coverage.sh

# Pixel-level visual diff with sub-pixel, typography, and layout analysis
node scripts/visual-diff.js <actual.png> <expected.png> [--threshold 0.02] [--json]
node scripts/visual-diff.js --batch <actual-dir> <expected-dir> [--output-dir diffs/]

# Initialize a new React project
./scripts/setup-project.sh my-app --next  # or --vite

# Cross-browser testing (Playwright, ad-hoc capture only)
./scripts/cross-browser-test.sh chromium http://localhost:3000
./scripts/cross-browser-test.sh firefox http://localhost:3000
./scripts/cross-browser-test.sh webkit http://localhost:3000

# Cross-browser baselines: pinned-container capture, provenance-verified compare (RFC 0002)
./scripts/cross-browser-baseline.sh capture http://localhost:3000 [--local] [--dry-run]
./scripts/cross-browser-baseline.sh compare http://localhost:3000 [--json] [--blocking]
./scripts/cross-browser-baseline.sh verify [--json]

# Route large baseline sets through Git LFS (visualBaselines.storage = "lfs")
./scripts/setup-baseline-lfs.sh [--dry-run] [--force]

# Setup Playwright browsers (one-time)
./scripts/setup-playwright.sh

# Dark mode visual verification
./scripts/check-dark-mode.sh http://localhost:3000

# Storybook story + MDX generation (AST-based)
./scripts/generate-stories.sh                      # Generate stories + MDX for all components
./scripts/generate-stories.sh --force              # Overwrite existing stories
./scripts/generate-stories.sh --dry-run            # Report without writing
./scripts/generate-stories.sh --no-mdx             # Skip MDX documentation
./scripts/generate-stories.sh --json               # JSON output

# Token drift detection
./scripts/sync-tokens.sh [--dry-run] [--json]

# Component documentation generation
./scripts/generate-component-docs.sh

# Dead code detection (unused exports, files, dependencies)
./scripts/check-dead-code.sh [--json]

# Security audit (dependency vulnerabilities + anti-patterns)
./scripts/check-security.sh [--json] [--level critical] [--no-fail]

# Generate typed API client from OpenAPI spec
./scripts/generate-api-client.sh --spec <path-or-url> [--output dir] [--client]

# Responsive screenshots at all breakpoints
./scripts/check-responsive.sh [url] [output-dir]

# Cross-browser CSS audit
./scripts/audit-cross-browser-css.sh [--json]

# Capture baseline screenshots for visual regression
./scripts/capture-baselines.sh [url] [--routes /,/about]

# Run visual regression tests against baselines
./scripts/regression-test.sh [url] [--update-baselines] [--json]

# Validate pipeline.config.json against its JSON Schema
./scripts/validate-pipeline-config.sh                # Validate live config
./scripts/validate-pipeline-config.sh --json         # Machine-readable output
node scripts/validate-pipeline-config.js --config <path> --schema <path>

# Export generated components as a publishable design-system workspace
./scripts/export-design-system.sh [--scope @org] [--output dir] [--framework <react|vue|svelte|react-native>] [--dry-run] [--json]

# Re-import: reconstruct design-tokens.lock.json from an export (inverse of export; round-trip / consumer)
./scripts/import-design-tokens.sh [--from dir|tokens.json] [--out path|-] [--verify lockfile] [--force] [--json]

# Renderer registry: list / resolve / detect framework renderers (see docs/multi-framework/renderers.md)
node scripts/renderer-registry.js (list | resolve <name> | detect [dir]) [--json]
node scripts/validate-renderer.js --dir <renderer-dir>     # or --all [--renderers-root <dir>]

# Author / validate / install / test custom agents as versioned plugins
node scripts/create-agent-plugin.js <name> [--description ...] [--model ...] [--tools ...] [--with-hooks]
node scripts/validate-agent-plugin.js --dir <plugin-dir>   # or --all [--plugins-root <dir>]
node scripts/agent-registry.js (list | resolve <name> | install <name> | uninstall <name>)
node scripts/test-agent-plugin.js --dir <plugin-dir>       # or --all [--plugins-root <dir>]

# Incremental build with caching and profiling
./scripts/incremental-build.sh [phase|all] [--force] [--parallel]

# Pipeline cache management
node scripts/pipeline-cache.js status               # Show cache status
node scripts/pipeline-cache.js check <phase>        # Check cache validity
node scripts/pipeline-cache.js invalidate <phase>   # Invalidate cache

# Stage profiling and performance analysis
node scripts/stage-profiler.js report               # Generate performance report
node scripts/stage-profiler.js analyze              # Analyze slow stages
node scripts/stage-profiler.js history              # View build history

# Build performance dashboard
node scripts/metrics-dashboard.js generate          # Generate HTML dashboard
node scripts/metrics-dashboard.js summary           # Show metrics summary
node scripts/metrics-dashboard.js trends            # Show performance trends

# Desktop GUI (experimental) — docs/GUI.md
pnpm gui:dev                                        # Launch in development
pnpm gui:test                                       # Headless core tests
pnpm gui:package                                    # Build an installer (packages/gui/dist/)

Development Commands

Package Management (always use pnpm)

pnpm install              # Install dependencies
pnpm add <package>        # Add a dependency
pnpm add -D <package>     # Add a dev dependency
pnpm update               # Update dependencies

Development Server

# Next.js
pnpm dev                  # Start dev server (port 3000)
pnpm build                # Production build
pnpm start                # Start production server

# Vite
pnpm dev                  # Start dev server (port 5173)
pnpm build                # Production build
pnpm preview              # Preview production build

Testing

pnpm vitest               # Run tests in watch mode
pnpm vitest run           # Run tests once
pnpm vitest run --coverage # Run with coverage report
pnpm storybook            # Start Storybook dev server
pnpm build-storybook      # Build Storybook static site

Code Quality

pnpm eslint .             # Run ESLint
pnpm eslint . --fix       # Auto-fix ESLint issues
pnpm prettier --check .   # Check formatting
pnpm prettier --write .   # Fix formatting
pnpm tsc --noEmit         # Type check without emitting

Claude Code Architecture & Configuration

Installed Plugins (5 Total)

  • episodic-memory - Conversation search and memory
  • commit-commands - Git workflow automation
  • superpowers - Advanced development workflows
  • ai-taskmaster - Task management (local)

Note: GitHub integration via gh CLI

Full documentation: .claude/PLUGINS-REFERENCE.md


Custom Agents (56 Total)

56 specialized agents covering the full product lifecycle:

CategoryCountKey Agents
Engineering12frontend-developer, backend-architect, rapid-prototyper, test-writer-fixer, error-boundary-architect, migration-specialist, i18n-engineer, animation-optimizer, bundle-analyzer
Design5ui-designer, ux-researcher, brand-guardian
Design-to-Code9figma-react-converter, canva-react-converter, astro-converter, asset-cataloger, vue-converter, svelte-converter, react-native-converter, conversation-designer, indesign-to-react
Testing & QA7visual-qa-agent, accessibility-auditor, api-tester, performance-benchmarker
Product3sprint-prioritizer, feedback-synthesizer, trend-researcher
Marketing7content-creator, growth-hacker, app-store-optimizer
Project Management3studio-producer, project-shipper, experiment-tracker
Operations5analytics-reporter, infrastructure-maintainer, legal-compliance-checker
Documentation1docusaurus-expert
Meta2agent-expert, command-expert
Bonus2joker, studio-coach

Agents are invoked automatically based on task context.

Full catalog: .claude/CUSTOM-AGENTS-GUIDE.md


Skills (24 Total)

SkillPurposeTriggers
figma-to-react-workflowFigma-to-React pipeline (v3: enforced TDD, pixel-diff, E2E)"convert Figma", "Figma to React"
figma-intakeStructured interview → build-spec.json (with appType)Phase 1 of /build-from-figma
design-token-lockExtract + lock Figma values → lockfilePhase 2 of /build-from-figma
tdd-from-figmaWrite tests FIRST, app-type-aware (Chrome ext, PWA)Phase 3 of /build-from-figma
e2e-test-generatorGenerate Playwright E2E from build-spec (new)Phase 6 of /build-from-figma
storybook-story-generationAuto-generate Storybook stories + MDX from components (AST-based, non-blocking)Phase 4.5 of /build-from-figma, "generate stories"
react-component-developmentComponent patterns and best practices"create component", "custom hook"
react-testing-workflowsVitest, RTL, Playwright, Storybook"write tests", "test coverage"
react-performance-optimizationProfiling, bundle analysis, Web Vitals"performance", "bundle size"
react-accessibilityWCAG patterns for React"accessibility", "a11y", "ARIA"
visual-qa-verificationAutomated pixel-diff visual QA (v3: pixelmatch loop)"verify", "visual QA", "compare to Figma"
canva-intakeCanva design discovery → build-spec.json (with appType)Phase 1 of /build-from-canva
canva-token-inferenceAI-powered token extraction from Canva/screenshot sourcesPhase 2 of /build-from-canva and /build-from-screenshot
screenshot-intakeURL/screenshot discovery → build-spec.json (with outputTarget)"build from screenshot", "clone this site"
conversation-intakeConversational interview → build-spec.json + design-brief.json (no design file)Phase C0 of /build-from-conversation
design-brief-to-figmaGenerates a real Figma file from design-brief.json via HTML-mockup capturePhase C1 of /build-from-conversation
state-managementState architecture: Zustand, TanStack Query, URL state"state management", "zustand", "data fetching"
form-handlingReact Hook Form + Zod: typed forms, field arrays, wizards"form", "validation", "react hook form"
auth-flowsAuth.js, Clerk, Supabase Auth, RBAC, protected routes"auth", "login", "session", "OAuth"
animation-motionFramer Motion, CSS transitions, reduced-motion a11y"animation", "framer motion", "transition"
seo-metadataNext.js Metadata API, JSON-LD, OG images, sitemaps"SEO", "metadata", "open graph"
parallel-orchestrationConcurrent phase runner for pipeline parallelizationInvoked by pipeline commands after Phase 3
export-design-systemExports components + tokens as a publishable pnpm workspace (Vite lib mode for web, tsc for RN)Invoked by /export-design-system

Full catalog: .claude/skills/README.md


Figma-to-React Pipeline

Single command: /build-from-figma <Figma URL>

Autonomous 9-phase pipeline that converts a Figma design into a working, tested React app:

/build-from-figma https://figma.com/file/abc123

  [0] TOKEN SYNC    → sync-tokens.sh → drift check (conditional, if lockfile exists)
  [1] INTAKE        → figma-intake skill → build-spec.json (with appType)
  [2] TOKEN LOCK    → design-token-lock skill → design-tokens.lock.json
  [3] TDD (HARD GATE) → tdd-from-figma skill → failing tests (Red)
  ─── PARALLEL ORCHESTRATION (phases 4-9, max 3 concurrent) ───
  [4] BUILD         → figma-to-react-workflow → components pass tests (Green)
      ├─ [4.5] STORYBOOK   → generate-stories.sh (non-blocking)
      ├─ [5]   VISUAL DIFF  → pixelmatch loop → max 5 iterations
      │   └─ [6] E2E TESTS  → e2e-test-generator skill
      ├─ [5.5] DARK MODE   → check-dark-mode.sh (non-blocking)
      ├─ [7]   CROSS-BROWSER → cross-browser-baseline.sh compare (non-blocking)
      ├─ [7.5] REGRESSION  → regression-test.sh (non-blocking)
      ├─ [8]   QUALITY GATE → [coverage|types|build|tokens|lighthouse] in parallel
      └─ [8.5] RESPONSIVE  → check-responsive.sh (non-blocking)
  [9] REPORT        → build-report.md (after quality-gate + e2e complete)

Key artifacts:

  • design-tokens.lock.json — Single source of truth for all design values
  • build-spec.json — Machine-readable build plan with appType, outputTarget ("react" | "vue" | "svelte" | "react-native"), and E2E flows
  • pipeline.config.json — Thresholds, iteration limits, app-type definitions
  • verify-tokens.sh — Catches hardcoded values and token drift
  • verify-test-coverage.sh — Ensures every component has tests
  • visual-diff.js — Pixel-level screenshot comparison with region analysis
  • .claude/visual-qa/baselines/manifest.json — Cross-browser baseline provenance (engine, Playwright version, pinned image, sha256, host — RFC 0002)
  • sync-tokens.sh — Detects token drift between lockfile and source
  • check-dark-mode.sh — Dark mode screenshot capture and visual comparison
  • generate-stories.sh — AST-based Storybook story + MDX generation with prop controls, variants, and action args
  • generate-component-docs.sh — Generates MDX component documentation

Features:

  • Enforced TDD — tests must exist before components, hard gate blocks build phase
  • Pixel-perfect visual diff — pixelmatch-based comparison (not manual), up to 5 iterations
  • App-type awareness — Chrome extensions, PWAs, React Native, and web apps get tailored E2E strategies
  • Chrome extension E2E — Playwright persistent context with --load-extension
  • Design token extraction with lockfile enforcement
  • Cross-browser verification (Firefox, WebKit) — committed per-engine baselines diffed at the 0.03 cross-engine threshold, with pinned-container capture and per-baseline provenance (RFC 0002; backends: commit | ci-artifact | service)
  • Quality gate: 80%+ coverage, TypeScript, Lighthouse audit
  • Resumable: TodoWrite tracks progress across interrupted sessions
  • Dark mode verification — automated dark theme screenshot comparison (non-blocking)
  • Storybook generation — auto-generated stories with responsive viewports
  • Token sync — detects drift between Figma lockfile and source code
  • Component docs — auto-generated MDX documentation with props, tokens, and links
  • Automated hooks — pre-commit token guard, coverage warnings, dark mode reminders, Lighthouse CI, bundle size guard, mutation testing
  • Responsive verification — automated screenshots at 5 breakpoints (320-1920px)
  • Error monitoring — Sentry integration configured via pipeline.config.json
  • Deploy previews — Vercel auto-deploy with visual QA on PRs
  • Parallel orchestration — concurrent phase execution with dependency graph, resource tagging, and configurable concurrency pool

Documentation: docs/figma-to-react/README.md


Canva-to-React Pipeline

Single command: /build-from-canva <Canva URL>

Same 12-phase pipeline as Figma with Canva-specific phases 1, 2, and 4:

  • Phase 1: canva-intake (vision-based discovery via Canva AI Connector MCP)
  • Phase 2: canva-token-inference (AI extraction with confidence scoring + user confirmation)
  • Phase 4: canva-react-converter agent (builds components from screenshots)
  • Phases 3, 5-9: shared (identical to Figma pipeline)

Documentation: docs/canva-to-react/README.md


Screenshot/URL-to-App Pipeline

Single command: /build-from-screenshot <URL or image paths>

Same 12-phase pipeline as Figma/Canva with screenshot-specific Phase 1:

  • Phase 1: screenshot-intake (captures URL or reads provided images, vision-based discovery)
  • Phase 2: canva-token-inference (shared, accepts screenshot source)
  • Phase 4: framework-specific converter agent dispatched by outputTarget (vue-converter, svelte-converter, react-native-converter, or figma-react-converter)
  • Phases 3, 5-9: shared (identical to Figma/Canva pipeline)

Supports all output targets: React, Vue 3, Svelte/SvelteKit, React Native (Expo).

Documentation: docs/screenshot-to-app/README.md


Conversation-to-App Pipeline

Single command: /build-from-conversation [optional description]

"Talk to build" — no pre-existing design file required. Two new phases generate a real Figma design from a structured conversation, then hand off to the unchanged /build-from-figma pipeline:

  • Phase C0: conversation-intake (max-7-question interview + conversation-designer agent → build-spec.json with "source": "conversation" + design-brief.json)
  • Phase C1: design-brief-to-figma (per-page HTML mockups → new Figma file via create_new_file + generate_figma_design capture → node IDs mapped into the build spec)
  • Handoff: /build-from-figma <generated URL> runs phases 0-9 as usual; figma-intake fast-paths on the conversation-sourced build spec (no second interview), and design-token-lock falls back to computed styles (generated files carry no Figma variables)

Key artifacts:

  • design-brief.json — Style direction, color/typography/layout decisions, and natural-language component descriptions
  • .claude/design-mockups/*.html — Per-page mockups captured into Figma (kept for cheap re-capture)
  • pipeline.config.json → conversation — Interview cap, mockup server, capture polling, review gate, retry policy

Documentation: docs/conversation-to-app/README.md


Multi-Framework Output

The outputTarget field in build-spec.json controls which framework the pipeline generates code for:

TargetValueConverter AgentTest LibraryTemplate
React"react"figma-react-converter / canva-react-converterVitest + RTLtemplates/nextjs/ or templates/vite/
Vue 3"vue"vue-converterVitest + @vue/test-utilstemplates/vue/
Svelte"svelte"svelte-converterVitest + @testing-library/sveltetemplates/sveltekit/
React Native"react-native"react-native-converterJest + @testing-library/react-nativetemplates/expo/

Framework auto-detection: if outputTarget is not specified, the pipeline detects the framework from package.json dependencies and config files (e.g., next.config.*, svelte.config.*, app.json).

Documentation: docs/multi-framework/README.md


MCP Server Integration

  • Figma Desktop MCP - Local Figma integration (port 3845)
  • Figma Remote MCP - Fallback remote access
  • Playwright MCP - Cross-browser testing (Chromium, Firefox, WebKit)
  • Chrome DevTools MCP - Screenshots, Lighthouse audits, DOM inspection
  • Canva AI Connector - Search, export, and interact with Canva designs
  • Sentry - Error monitoring (configured via pipeline.config.json, setup by error-boundary-architect agent)

Parallel Orchestration

Pipeline phases 4-9 run concurrently via the parallel-orchestration skill:

  • Dependency graph defined in pipeline.config.json → orchestration.phases
  • Concurrency pool with configurable maxConcurrent (default: 3)
  • Resource tagging prevents write conflicts between phases
  • Streaming results report each phase as it completes
  • Batch summary with wall time, speedup factor, and execution timeline
  • Fallback to sequential execution when orchestration.enabled is false

Quality gate subtasks (coverage, typecheck, build, token-verify, lighthouse) also run in parallel.


Automated Hooks (8 Total)

Each hook is a standalone script under .claude/hooks/, registered in .claude/settings.json as a PostToolUse hook on the Bash matcher. Hooks receive $TOOL_INPUT and $TOOL_OUTPUT as positional args, follow a defensive skeleton (set -u, trap 'exit 0' ERR, always exit 0), and are testable in isolation. See docs/guides/hooks.md for the full guide.

ScriptTriggerAction
post-build-qa.shpnpm build succeedsReminds to run quality gate (vitest, tsc, verify-tokens)
pre-commit-token-guard.shgit commit detectedRuns verify-tokens.sh, warns if violations found
dark-mode-reminder.shvisual-diff.js passesSuggests running check-dark-mode.sh
coverage-check.shvitest with coverage outputReminds to check threshold from pipeline config
lighthouse-ci.shpnpm build succeedsSuggests Lighthouse audit with threshold targets from config
bundle-size-guard.shgit commit detectedWarns if build output exceeds maxSizeKb from config
mutation-test-reminder.shvitest all tests passSuggests running Stryker for test quality validation
regression-reminder.shpnpm build succeedsSuggests running ./scripts/regression-test.sh if baselines exist

React Development Standards

TypeScript

  • Strict mode enabled
  • No any types - use proper interfaces and generics
  • Export prop interfaces alongside components
  • Use discriminated unions for complex prop patterns

Component Patterns

  • Functional components only (no class components)
  • Custom hooks for reusable logic
  • Composition over inheritance
  • Props interface for every component
  • children and className passthrough where appropriate

Tailwind CSS

  • Utility-first styling
  • Design tokens via Tailwind config (not hardcoded values)
  • Responsive with mobile-first breakpoints (sm, md, lg, xl, 2xl)
  • Use cn() utility for conditional classes (clsx + tailwind-merge)

Testing Strategy

  • Unit tests (Vitest): Pure functions, custom hooks, utilities
  • Component tests (RTL): User interactions, rendering, accessibility
  • Visual tests (Storybook): Component states, responsive variants
  • E2E tests (Playwright): Critical user flows, cross-browser

Accessibility

  • WCAG 2.1 AA minimum
  • Semantic HTML (landmarks, headings hierarchy)
  • ARIA attributes on interactive elements
  • Keyboard navigation support
  • Color contrast 4.5:1 minimum

Code Quality

  • ESLint with React, TypeScript, and jsx-a11y plugins
  • Prettier for formatting
  • 2-space indentation (JS/TS/CSS/JSON)

Development Workflow with Claude Code

1. Feature Development

# Start feature branch
git checkout -b feature/hero-component

# Develop with Claude Code
# - frontend-developer agent for React work
# - test-writer-fixer agent for tests
# - ui-designer agent for design decisions

# Commit with structure
/commit

2. Code Quality

./scripts/lint-and-format.sh
./scripts/check-types.sh
./scripts/run-tests.sh
./scripts/check-accessibility.sh

3. Figma-to-React Conversion

User: "Convert this Figma design to React components"
      [Provide Figma URL]

Claude: [Uses figma-react-converter agent]
        → Extracts design tokens
        → Generates Tailwind config + React components
        → Runs visual QA verification

4. Using Custom Agents

User: "Help me optimize app performance"
Claude: [Uses performance-benchmarker agent]

User: "Build a hero component"
Claude: [Uses frontend-developer agent]

User: "Write tests for my auth hook"
Claude: [Uses test-writer-fixer agent]

Quick Command Reference

Design-to-Code Pipelines:

/build-from-figma <URL>       # Full autonomous Figma pipeline
/build-from-canva <URL>       # Full autonomous Canva pipeline
/build-from-screenshot <URL or paths>  # Full autonomous screenshot pipeline
/build-from-conversation [description] # Conversational pipeline: interview → generated Figma → build
/export-design-system [flags] # Export components + tokens as publishable pnpm workspace
aurelius pipeline indesign <input> [--target ...] [--styling ...] [--output ...] # InDesign IDML/PDF → React

Quality Verification:

/verify-all                   # Run every local quality check, human-readable summary
/ci                           # Same checks, JSON output, non-zero exit on failure

Git Workflows (via commit-commands):

/commit                       # Structured commit
/commit-push-pr              # Commit + push + PR
/clean_gone                   # Clean merged branches

GitHub CLI:

gh pr create                  # Create pull request
gh pr list                    # List pull requests
gh issue create               # Create issue

Code Quality:

./scripts/lint-and-format.sh        # ESLint + Prettier
./scripts/run-tests.sh              # Vitest + coverage
./scripts/run-mutation-tests.sh     # Mutation testing (Stryker)
./scripts/check-types.sh            # TypeScript check
./scripts/check-bundle-size.sh      # Bundle analysis
./scripts/check-accessibility.sh    # a11y linting
./scripts/verify-tokens.sh          # Design token enforcement
./scripts/sync-tokens.sh              # Token drift detection
./scripts/check-dark-mode.sh          # Dark mode verification
./scripts/generate-stories.sh         # Storybook story + MDX generation
./scripts/generate-component-docs.sh  # Component documentation
./scripts/check-dead-code.sh            # Dead code detection (knip)
./scripts/check-security.sh             # Security audit
./scripts/generate-api-client.sh        # OpenAPI → typed client
./scripts/check-responsive.sh           # Responsive screenshots
./scripts/audit-cross-browser-css.sh   # Cross-browser CSS audit
./scripts/capture-baselines.sh          # Capture regression baselines
./scripts/regression-test.sh            # Visual regression testing
./scripts/cross-browser-baseline.sh     # Cross-browser baseline capture/compare (RFC 0002)
./scripts/setup-baseline-lfs.sh         # Git LFS opt-in for large baseline sets
./scripts/export-design-system.sh       # Export components + tokens as pnpm workspace
./scripts/import-design-tokens.sh       # Reconstruct lockfile from an export (round-trip / consumer)
./scripts/validate-pipeline-config.sh   # Validate pipeline.config.json against schema
./scripts/check-doc-counts.sh           # Flag drift between documented agent/skill counts and disk
./scripts/verify-all.sh                 # Run all quality checks with summary
./scripts/verify-all.sh --ci            # CI mode: JSON output, exit 1 on any failure

Renderers (pluggable framework renderers — see docs/multi-framework/renderers.md):

node scripts/renderer-registry.js (list | resolve <name> | detect [dir]) [--json]
node scripts/validate-renderer.js --dir <renderer-dir>   # or --all

Agent Plugins (custom agents as versioned plugins — see docs/guides/agent-plugins.md):

node scripts/create-agent-plugin.js <name> [--description ...] [--model ...] [--tools ...] [--with-hooks]
node scripts/validate-agent-plugin.js --dir <plugin-dir>   # or --all
node scripts/agent-registry.js (list | resolve <name> | install <name> | uninstall <name>)
node scripts/test-agent-plugin.js --dir <plugin-dir>       # or --all

Build Performance & Caching:

./scripts/incremental-build.sh          # Incremental build with caching
./scripts/incremental-build.sh --parallel # Parallel execution
./scripts/incremental-build.sh --force  # Force rebuild (ignore cache)
node scripts/pipeline-cache.js status   # Cache status
node scripts/stage-profiler.js report   # Performance report
node scripts/stage-profiler.js analyze  # Slow stage analysis
node scripts/metrics-dashboard.js generate # HTML dashboard
node scripts/metrics-dashboard.js summary  # Quick metrics summary

Last Updated: 2026-07-01 Architecture: 56 agents, 24 skills, 4 plugins + gh CLI, Figma + Canva + Playwright MCP, 56 scripts, 8 hooks, 5 renderers (nextjs, vite, astro, sveltekit, expo)

Keeping counts in sync: When adding or removing agents, skills, scripts, or hooks, update all count references across the project. Search for the old count number in *.md files to find all references: CLAUDE.md, README.md, CONTRIBUTING.md, docs/onboarding/, docs/react-development/, and .claude/AGENT-NAMING-GUIDE.md. The agent and skill counts are enforced automatically by scripts/check-doc-counts.sh (run in CI and on pre-commit), which recounts .claude/agents/ and .claude/skills/ and fails on any documented count that disagrees.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.