component-development
БесплатноБез исполняемых скриптовНе проверенWhen you are creating or modifying UI components. Use this skill to ensure consistency with the design system and shadcn/ui.
от nextblock-cms★ 20 звёзд на GitHubОб этом скилле
Component Development
1. Core Principles
- Library First: Shared components live in
libs/ui. - Strict Separation:
libs/uiCANNOT depend onapps/nextblock. It must remain publishable as a standalone package. - Tech Stack: React, Tailwind CSS, Radix UI, Lucide React.
2. Directory Structure (libs/ui)
src/lib/: All UI components — both base Shadcn/UI components (Button, Input, etc.) and custom complex components live here as flat files.src/styles/globals.css: Tailwind configuration and global styles.src/styles/: Additional CSS files (theme, typography, animations, base, components).
3. Workflow
Creating a new component
- Shared Component:
- Create in
libs/ui/src/lib/<Name>.tsx. - Export from
libs/ui/src/index.ts. - Use
nx lint uito verify.
- Create in
- App-Specific Component:
- Create in
apps/nextblock/components/. - Only do this if the component is tightly coupled to Next.js features (like cookies, headers, or specific app logic).
- Create in
Styling
- Use
classNamewith Tailwind utility classes. - Use
cn()utility from@nextblock-cms/utilsfor conditional class merging. - Do not use CSS modules or styled-components unless absolutely necessary.
4. Best Practices
- Client Components: Add
'use client'at the top if using hooks (useState,useEffect) or event listeners. - Accessibility: Use Radix UI primitives where possible to ensure a11y compliance.
Установить component-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл component-development?
When you are creating or modifying UI components. Use this skill to ensure consistency with the design system and shadcn/ui.
Как установить скилл component-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл component-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic