← スキル一覧に戻る
2. Directory Structure (

component-development
by nextblock-cms
The open-source core of NextBlock CMS. A high-performance, developer-first CMS built with Next.js 15, Supabase, and Tailwind. Features a Notion-style block editor, native multi-language support, and perfect Lighthouse scores. The modern alternative to WordPress.
⭐ 3🍴 0📅 2026年1月14日
SKILL.md
name: component-development description: When you are creating or modifying UI components. Use this skill to ensure consistency with the design system and shadcn/ui.
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/components/ui: Base Shadcn/UI components (Button, Input, etc.).src/components: Custom complex components.src/styles/globals.css: Tailwind configuration and global styles.
3. Workflow
Creating a new component
- Shared Component:
- Create in
libs/ui/src/components/<Name>/<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.
スコア
総合スコア
70/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です