Frontend Design Extractor for Openclaw

An automated tool for extracting and documenting UI/UX design systems from frontend codebases while stripping away business logic.

xsir0
v1.0.1
Jan 28, 2026
2
3.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install frontend-design-extractor

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install frontend-design-extractor using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Frontend Design Extractor?

The Frontend Design Extractor is a specialized utility within the Openclaw Skills ecosystem designed to reverse-engineer comprehensive design systems from existing frontend repositories. It focuses exclusively on UI/UX elements—such as design tokens, global styles, and component patterns—while intentionally ignoring domain-specific business logic. This makes it an essential asset for developers looking to document legacy systems, migrate to new frameworks, or establish a clean design foundation for greenfield projects.

By automating the discovery of UI sources, this skill allows teams to create a single source of truth for their design language. Whether you are working with React, Vue, Angular, or Vite, the tool adapts to the target stack to generate a standardized specification that can be used for refactoring or as a starter kit for new development. Utilizing Openclaw Skills like this ensures that design consistency is maintained throughout the software development lifecycle.

Frontend Design Extractor Use Cases

  • Extracting design tokens and component catalogs from legacy React, Vue, or Angular projects.
  • Generating a reusable UI/UX specification for migrating a project to a new frontend framework.
  • Documenting existing UI patterns and accessibility gaps to plan incremental refactors.
  • Creating a greenfield UI starter kit based on proven design foundations and layout shells.
  • Standardizing design systems across multiple repositories by identifying shared interaction patterns.

How Frontend Design Extractor Works

  1. Initialize the process by choosing between a greenfield setup or a refactor mode for an existing repository.
  2. Execute the scan script to identify UI sources, theme providers, and component wrappers without assuming a fixed directory layout.
  3. Document foundational design tokens including colors, typography, spacing, radius, and motion behaviors.
  4. Catalog individual UI components, capturing their variants, states, interactions, and accessibility attributes.
  5. Map page templates and layout rules to define how components are composed into functional views.
  6. Package all findings into a structured directory (defaulting to ui-ux-spec) that serves as the official design system documentation.

Frontend Design Extractor Setup

To begin using this tool among your Openclaw Skills, follow these steps:

  1. Ensure you have the skill files available in your agent's environment.
  2. To scan an existing codebase for UI sources, run the following command in your terminal:
./scripts/scan_ui_sources.sh <repo_root> [out_file]
  1. To scaffold the standard documentation directory structure, use the skeleton generator:
./scripts/generate_output_skeleton.sh [out_root]
  1. Confirm the output folder (default ./ui-ux-spec) is created and ready for data population.

Frontend Design Extractor Data Schema & Taxonomy

The skill organizes extracted data into a dedicated directory with a standardized taxonomy to ensure clarity and reusability:

Folder Description
01_Foundation Design tokens (colors, type, spacing, shadows) and global styles.
02_Components Detailed catalog of UI components with variants, states, and slots.
03_Patterns Reusable interaction patterns, loading strategies, and layout rules.
04_Pages Skeleton templates and module ordering for page-level views.
05_A11y Accessibility documentation, focus-visible rules, and compliance gaps.
06_Assets References to icons, images, brand assets, and i18n sources.
07_Engineering_Constraints Framework-specific implementation notes, naming conventions, and CSS architecture.

Frontend Design Extractor Advanced Features

  • Automated UI source discovery via flexible glob patterns and keyword scanning that ignores build artifacts.
  • Framework-agnostic analysis capable of processing React, Vue, Angular, Next.js, and Vite stacks.
  • Phased refactor planning that enables low-risk, incremental UI updates without impacting underlying business logic.
  • Support for multi-agent workflows through structured prompt templates for component-level or global refactors.
  • Integration with Storybook or existing documentation sites to enrich the extracted component catalog.
  • Detailed accessibility gap identification to ensure extracted components meet modern inclusive design standards.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*