Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    nextblock-cms

    component-development

    nextblock-cms/component-development
    Design
    3

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    When you are creating or modifying UI components. Use this skill to ensure consistency with the design system and shadcn/ui.

    SKILL.md

    Component Development

    1. Core Principles

    • Library First: Shared components live in libs/ui.
    • Strict Separation: libs/ui CANNOT depend on apps/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

    1. Shared Component:
      • Create in libs/ui/src/lib/<Name>.tsx.
      • Export from libs/ui/src/index.ts.
      • Use nx lint ui to verify.
    2. 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).

    Styling

    • Use className with Tailwind utility classes.
    • Use cn() utility from @nextblock-cms/utils for 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.
    Recommended Servers
    Svelte
    Svelte
    Astro Docs
    Astro Docs
    Webflow
    Webflow
    Repository
    nextblock-cms/nextblock
    Files