← スキル一覧に戻る

registry-component-patterns
by TheOrcDev
registry-component-patternsは、コンテンツ作成と管理を支援するスキルです。高品質なコンテンツ生成と最適化により、SEO対応と利用者満足度の向上を実現します。
⭐ 1,530🍴 94📅 2026年1月22日
ユースケース
📝
ドキュメント生成
コードからドキュメントを自動生成。
✍️
コンテンツ作成支援
ブログ記事やマーケティングコンテンツの作成を支援。
🎨
UIコンポーネント生成
デザインからUIコンポーネントを生成。
SKILL.md
name: registry-component-patterns description: Register components in registry.json for shadcn/ui add command. Apply when adding new 8-bit components to the component library.
Registry Component Patterns
Register 8-bit components in registry.json for discovery via shadcn add @8bitcn/[component-name].
Component Entry Pattern
{
"name": "button",
"type": "registry:component",
"title": "8-bit Button",
"description": "A simple 8-bit button component",
"registryDependencies": ["button"],
"files": [
{
"path": "components/ui/8bit/button.tsx",
"type": "registry:component",
"target": "components/ui/8bit/button.tsx"
},
{
"path": "components/ui/8bit/styles/retro.css",
"type": "registry:component",
"target": "components/ui/8bit/styles/retro.css"
}
]
}
Block Entry Pattern
For pre-built layouts like game UIs:
{
"name": "chapter-intro",
"type": "registry:block",
"title": "8-bit Chapter Intro",
"description": "A cinematic chapter/level intro with pixel art background.",
"registryDependencies": ["card"],
"categories": ["gaming"],
"files": [
{
"path": "components/ui/8bit/blocks/chapter-intro.tsx",
"type": "registry:block",
"target": "components/ui/8bit/blocks/chapter-intro.tsx"
},
{
"path": "components/ui/8bit/styles/retro.css",
"type": "registry:component",
"target": "components/ui/8bit/styles/retro.css"
},
{
"path": "components/ui/8bit/card.tsx",
"type": "registry:component",
"target": "components/ui/8bit/card.tsx"
}
]
}
Required retro.css
Always include retro.css in registry entries:
"files": [
{
"path": "components/ui/8bit/new-component.tsx",
"type": "registry:component",
"target": "components/ui/8bit/new-component.tsx"
},
{
"path": "components/ui/8bit/styles/retro.css",
"type": "registry:component",
"target": "components/ui/8bit/styles/retro.css"
}
]
Categories
Use gaming-specific categories:
"categories": ["gaming"]
Available categories: gaming, layout, form, data-display, feedback, navigation, overlay.
Registry Dependencies
List base shadcn dependencies:
"registryDependencies": ["button", "dialog"]
For blocks with multiple components:
"registryDependencies": ["card", "button", "progress"]
Key Principles
- Type - Use
registry:componentfor single components,registry:blockfor layouts - retro.css required - Always include in files array
- Target path - Use same path for source and target
- Categories - Use
gamingfor retro-themed components - Dependencies - List base shadcn/ui components (not 8-bit versions)
- Description - Clear, concise description for CLI output
Adding a New Component
- Create component in
components/ui/8bit/component.tsx - Update
registry.jsonwith entry (copy existing component as template) - Include
retro.cssdependency - Test with:
pnpm dlx shadcn@latest add @8bitcn/component
スコア
総合スコア
95/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
✓人気
GitHub Stars 1000以上
+15
✓最近の活動
1ヶ月以内に更新
+10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です
