feat: add shadcn/ui skill for AI-assisted component generation

Aperta
#52 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
tailwindcss
Ambito
frontend

Direzione di ricerca

Start by checking the existing component setup and whether components.json is present. Review how the shadcn skill uses shadcn info --json, then add the skill so AI assistants receive the repository's framework, Tailwind, aliases, components, and icon-library context; done means detection and context injection work as described.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Add a shadcn/ui skill to give Claude Code (and other AI assistants) deep contextual knowledge of shadcn/ui components, patterns, and best practices when working in this repo.

What are shadcn skills?

Skills equip AI assistants with project-aware knowledge of shadcn/ui. They work by:

  1. Project detection — activates automatically when components.json exists
  2. Context injection — runs shadcn info --json to gather project config (framework, Tailwind version, aliases, installed components, icon library)
  3. Pattern enforcement — the AI follows shadcn/ui composition rules when generating code

This enables natural language requests like:

  • "Add a login form with email and password fields"
  • "Create a settings page with profile update functionality"
  • "Build a dashboard with a sidebar, stats cards, and a data table"

Installation

pnpm dlx skills add shadcn/ui

Why

This project already uses Tailwind CSS and a component-based UI. Adding the shadcn skill would let AI assistants generate components that are consistent with shadcn/ui patterns, theming (CSS variables, OKLCH colors, dark mode), and the existing design system — reducing manual fixups after AI-generated code.

References

Lingua principale
TypeScript
Stelle
1.6k
Fork
202
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CopilotKit/OpenGenerativeUI

Tutte le issue di CopilotKit/OpenGenerativeUI

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.