Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nextjs-shadcn-builder

БесплатноЗапускает вложенные скриптыНе проверен

Build new Next.js applications or migrate existing frontends (React, Vue, Angular, vanilla JS, etc.) to Next.js + shadcn/ui with systematic analysis and…

ovachieverот ovachiever★ 56 звёзд на GitHub

Об этом скилле

Next.js + shadcn/ui Builder & Migration Tool

Build production-grade Next.js applications or systematically migrate existing frontends to Next.js + shadcn/ui following strict design principles and best practices.

Overview

This skill handles two primary workflows:

  1. Creating New Next.js Applications - Initialize projects with Next.js 15+ (App Router), shadcn/ui, and proper design system setup
  2. Migrating Existing Frontends - Analyze any frontend codebase (React, Vue, Angular, vanilla JS) and systematically convert to Next.js + shadcn/ui

Core Philosophy: 100% adherence to shadcn/ui design principles:

  • CSS variables for all theming (colors, spacing, typography)
  • Standard shadcn/ui components only (no custom UI components)
  • No hardcoded values (colors, spacing, fonts)
  • Consistent design tokens across the application
  • Mobile-first responsive design for all devices (phone, tablet, desktop)
  • WCAG 2.1 Level AA accessibility compliance
  • Best practices from https://ui.shadcn.com

Workflow Decision Tree

User Request
    ├─ Creating New Next.js App
    │   └─ Follow "Creating New Application" workflow (Phase 3 onwards)
    │
    └─ Migrating Existing Codebase
        ├─ Phase 1: Codebase Analysis
        ├─ Phase 2: Migration Planning
        ├─ Phase 3: Next.js + shadcn Setup
        ├─ Phase 4: Systematic Conversion
        └─ Phase 5: Verification & Cleanup

High-Level Workflow for Migration

Phase 1: Codebase Analysis

Automated analysis of existing frontend to understand scope and complexity.

Steps:

  1. Framework and version detection
  2. Component inventory and categorization
  3. Hardcoded value detection (colors, spacing, custom components)
  4. Styling approach analysis (CSS, SCSS, CSS-in-JS, Tailwind, etc.)
  5. State management and routing pattern identification
  6. Generate comprehensive analysis report

Deliverables:

  • Framework analysis report
  • Component inventory (JSON)
  • Hardcoded values report
  • Complexity assessment

Phase 2: Migration Planning

Create systematic conversion plan with prioritized batches.

Steps:

  1. Map existing components to shadcn/ui equivalents
  2. Identify components requiring custom development
  3. Organize conversion into batches (5-10 components per batch)
  4. Assess risk and complexity per batch
  5. Create detailed migration plan

Deliverables:

  • Component mapping table
  • Batched conversion plan
  • Risk assessment
  • Estimated complexity per component

Phase 3: Next.js + shadcn Setup

Initialize Next.js infrastructure alongside or replacing existing codebase.

Steps:

  1. Check/install shadcn MCP server for documentation access
  2. Initialize Next.js 15+ with App Router and TypeScript
  3. Install and configure Tailwind CSS
  4. Run shadcn/ui initialization
  5. Set up CSS variables and design tokens
  6. Configure path aliases (@/)
  7. Install essential shadcn components
  8. Create design system documentation

Deliverables:

  • Configured Next.js project
  • Design token system (CSS variables)
  • Component library setup
  • Path aliases configured

Phase 4: Systematic Conversion

Convert components batch by batch with testing after each batch.

Steps:

  1. Batch 1: Layout & Structure (Header, Footer, Layout wrappers)
  2. Batch 2: Simple UI Components (Buttons, Cards, Badges, Alerts)
  3. Batch 3: Form Components (Inputs, Selects, Checkboxes, Forms)
  4. Batch 4: Complex Components (Tables, Dialogs, Command Menus, Data visualizations)
  5. Batch 5: Styling Standardization (Remove hardcoded values, apply CSS variables)
  6. Batch 6: Pages & Routes (Convert pages, set up Next.js routing)

Per Batch Workflow:

  1. Select 5-10 related components
  2. Use MCP to find appropriate shadcn components
  3. Convert components following shadcn patterns
  4. Replace hardcoded values with CSS variables
  5. Test functionality
  6. Verify visual consistency
  7. Move to next batch

Deliverables:

  • Migrated components (batch by batch)
  • Updated styling with CSS variables
  • Next.js App Router pages
  • Passing tests per batch

Phase 5: Verification & Cleanup

Final testing, optimization, and old code removal.

Steps:

  1. Run full test suite
  2. Visual regression testing
  3. Responsive design testing (mobile, tablet, desktop)
  4. Performance audit
  5. Accessibility audit (WCAG 2.1 Level AA compliance)
  6. Remove old framework code
  7. Documentation updates
  8. Generate completion report

Deliverables:

  • Test results
  • Responsive design verification report
  • Performance metrics
  • Accessibility audit report (WCAG 2.1 AA)
  • Clean codebase
  • Migration summary

Phase 1: Codebase Analysis (Detailed Instructions)

1.1 Framework Detection

Run the automated analysis script:

python ./scripts/analyze-codebase.py /path/to/existing/codebase

This script will:

  • Detect framework (React, Vue, Angular, Svelte, vanilla JS, etc.)
  • Identify framework version
  • Detect build tool (Vite, Webpack, Parcel, etc.)
  • Find package.j
Полный SKILL.md на GitHub

Установить nextjs-shadcn-builder в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdassets/component-templates/complex-form.tsxassets/component-templates/example-feature-card.tsxassets/component-templates/example-user-profile.tsxassets/component-templates/responsive-dashboard.tsxassets/component-templates/responsive-data-table.tsxassets/component-templates/responsive-navigation.tsxassets/theme-example-oklch.cssreferences/accessibility-best-practices.mdreferences/advanced-shadcn-components.mdreferences/react-to-nextjs.mdreferences/responsive-design-patterns.mdreferences/shadcn-component-mapping.mdreferences/styling-migration.mdreferences/vue-to-nextjs.mdscripts/analyze-codebase.pyscripts/detect-hardcoded-values.shscripts/generate-migration-report.pyscripts/init-nextjs-shadcn.sh

FAQ

Что делает скилл nextjs-shadcn-builder?

Build new Next.js applications or migrate existing frontends (React, Vue, Angular, vanilla JS, etc.) to Next.js + shadcn/ui with systematic analysis and conversion. Enforces shadcn design principles - CSS variables for theming, standard UI components, no hardcoded values, consistent typography/colors. Use for creating Next.js apps, migrating frontends, adopting shadcn/ui, or standardizing component libraries. Includes MCP integration for shadcn documentation and automated codebase analysis.

Как установить скилл nextjs-shadcn-builder?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nextjs-shadcn-builder запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить nextjs-shadcn-builder с