toge-component-builder

Scaffold, migrate, and refactor Toge components in a Vue 3 design system.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/micserr/toge-design-system --skill toge-component-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: toge-component-builder
Source: https://github.com/micserr/toge-design-system/tree/main/skill/toge-component-builder
Command: npx skills add https://github.com/micserr/toge-design-system --skill toge-component-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Toge Component Builder streamlines scaffolding, migration, and refactoring tasks for the v2 Sprout Design System, ensuring consistent structure and exports across primitives, molecules, and patterns.

Core Features & Use Cases

  • Provides the 4-file component pattern blueprint for primitives, molecules, and patterns, including index.ts exports and TypeScript typings.
  • Guides the wiring of lib/toge.ts exports and updates to the playground registry to accelerate adoption.
  • Assists migration from v1 spr- components to the toge pattern with enforced conventions for state, props, and styling.

Quick Start

Follow the 4-file pattern to scaffold new components and run the build and wire workflow to generate and validate files.

Frequently Asked Questions about toge-component-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new Vue 3 component in a design system?

Scaffolding a new Vue 3 component in a design system requires generating a 4-file pattern of .vue, .types.ts, .styles.ts, and .state.ts files alongside index.ts exports. This ensures consistent TypeScript conventions and structural integrity across primitives, molecules, and patterns.

What is the best way to migrate v1 design system components to a new pattern?

Migrating v1 design system components to a new pattern involves enforced conventions for state, props, and styling. This refactoring process updates older spr- components to the toge pattern while maintaining the project's TypeScript folder structure.

How do I wire component exports to a central library file?

Wiring component exports to a central library file requires updating lib/toge.ts to include the new component exports. This ensures the component is properly registered and accessible across the Vue 3 application after scaffolding.

Does this component builder work with TypeScript and Vue 3?

Yes, the component builder works with TypeScript and Vue 3 by enforcing project-specific TypeScript typings and conventions. It targets the creation of .types.ts and .state.ts files to ensure type safety within the Sprout Design System.

When do I need to update the playground registry for my components?

Updating the playground registry is necessary immediately after scaffolding or migrating a component. This guides the wiring of playground registrations to accelerate adoption and validate the new Vue 3 component visually.

Why does my design system component migration require a 4-file pattern?

Design system component migration requires a 4-file pattern to separate concerns into .vue, .types.ts, .styles.ts, and .state.ts files. This structure enforces consistent folder patterns and TypeScript conventions across primitives, molecules, and patterns.