Token导航 LogoToken导航

Agent Skill · 研究检索

shadcn-ui-%26-blocks(shadcn/ui UI 26 blocks 搜索)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

shadcn-ui-%26-blocks 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 18,700。

总安装 5,962周安装 164GitHub Stars 15下载 2,032核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:shadcn-ui-%26-blocks(shadcn/ui UI 26 blocks 搜索)
来源仓库:https://github.com/masonjames/shadcnblocks-skill
仓库路径:skills/shadcn-ui-%26-blocks
安装命令:
npx skills add https://github.com/masonjames/shadcnblocks-skill --skill 'Shadcn UI & Blocks'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/masonjames/shadcnblocks-skill --skill 'Shadcn UI & Blocks'

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素。涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

支持通过 npx 命令从指定 GitHub 仓库安装使用。

来源仓库内路径:skills/shadcn-ui-%26-blocks

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/masonjames/shadcnblocks-skill --skill 'Shadcn…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

shadcn-ui-%26-blocks 怎么安装?

在终端执行 npx skills add https://github.com/masonjames/shadcnblocks-skill --skill 'Shadcn UI & Block…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

shadcn-ui-%26-blocks 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

shadcn-ui-%26-blocks 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

shadcn-ui-%26-blocks 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

shadcn-ui-%26-blocks 用的人多吗?

公开数据是累计安装 5,962 次,近一周安装 164 次,下载 2,032 次,GitHub 15 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

shadcn-ui-%26-blocks 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
shadcn-ui-%26-blocks

shadcn/ui UI 26 blocks 搜索 · 本页

5,96215接触敏感数据未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Shadcn UI & ShadcnBlocks Integration

This skill enables building polished frontends using shadcn/ui components and premium ShadcnBlocks templates. Its primary capability is intelligently recommending the best block or component for any UI need — not just the right category, but the right *variant* within that category — then handling setup and installation.

When to Use

Activate this skill when:

  • Creating a new frontend, landing page, marketing site, or app UI
  • The project uses or should use React/Next.js with Tailwind CSS
  • Pre-built UI sections (hero, pricing, features, testimonials, etc.) would accelerate development
  • The user needs a specific UI element (form, chart, dialog, navigation, etc.)
  • The user mentions shadcn, shadcn/ui, shadcnblocks, or Tailwind-based UI components

Blocks vs Components

BlocksComponents
WhatFull page sectionsReusable UI elements
SizeHero, pricing, footer, etc.Buttons, inputs, dialogs, etc.
Count1,338 across 71 categories1,189 across 60+ groups
AccessPremium (API key required)Free
Install@shadcnblocks/<name><number>@shadcnblocks/<type>-<style>-<number>

Use blocks to compose full page layouts from pre-built sections. Use components for individual UI elements inside custom code.


Intelligent Block Selection

The 0-2 Question Rule

When recommending blocks, follow this progressive disclosure flow:

  • 0 questions: The user's request is specific enough to match directly (e.g., "add a hero with email capture form" → match on cta_pattern: form_capture)
  • 1 question: The section is clear but the style/layout is ambiguous (e.g., "add a feature section" → ask about layout preference)
  • 2 questions max: Both section and style are unclear (e.g., "add a section to show our product" → ask section type, then style)

Never ask more than 2 questions. If still ambiguous, pick the best 2-3 and explain the tradeoffs.

Decision Flow: Infer → Ask → Shortlist

Step 1 — Infer from the request (always do this first)

Extract as many constraints as possible before asking anything:

  • Section type: hero, feature, pricing, testimonial, cta, faq, navbar, footer, contact, stats
  • Goal keywords: "signup" → convert/capture_leads, "trust" → trust, "compare plans" → compare
  • Layout hints: "grid" → grid_cards, "side by side" → split, "accordion" → accordion interaction
  • Tone hints: "clean" → minimal, "bold" → bold, "professional" → enterprise
  • Media hints: "with screenshots" → screenshot media, "video" → video media
  • Density hints: "simple" → minimal density, "detailed" → rich density

Step 2 — Ask targeted questions (only if needed)

Use AskUserQuestion for structured multiple-choice refinement. Consult references/block-index.md → selection_prompts for the pre-defined questions and options per section.

Sections with pre-defined prompts: hero, feature, pricing, testimonial, cta, faq, navbar, footer, contact, stats.

Example for a feature section request:

AskUserQuestion:
  question: "How do you want to showcase your features?"
  options:
    - "Card grid (3-4 columns with icons)" — Classic feature grid with icon + description per card
    - "Alternating image + text rows" — Deep-dive with large visuals, great for product tours
    - "Bento / asymmetric grid" — Modern editorial layout with mixed-size cards
    - "Simple icon list or checklist" — Compact, scannable benefit list

If AskUserQuestion is unavailable, ask the same question inline with numbered options.

Step 3 — Match tags and return 2-3 best picks

Map the user's answer to tag filters, then match against references/block-index.md entries. Return exactly 2-3 recommendations in this format:

Here are the best matches for your [section type]:

1. **[block-id]** — [1-line "why this one"]
   Layout: [layout] · Tone: [tone] · [key differentiator]

2. **[block-id]** — [1-line "why this one"]
   Layout: [layout] · Tone: [tone] · [key differentiator]

3. **[block-id]** — [1-line "why this one"]
   Layout: [layout] · Tone: [tone] · [key differentiator]

Which one works best? I'll install it and set it up.

After the user picks, provide the install command and compose it into the page.

Tag Dimensions Used for Matching

These are the key dimensions from references/block-index.md used to differentiate blocks:

DimensionWhat it tells youExample values
layoutVisual arrangementcentered, split_right_media, grid_cards, bento, alternating
toneAesthetic feelminimal, modern, bold, enterprise, elegant, playful
goalBusiness purposeawareness, explain, trust, convert, capture_leads, compare
cta_patternAction typesingle_primary, primary_secondary, form_capture, multi_action
mediaVisual contentscreenshot, illustration, video, icons, avatars, logos
interactionDynamic behaviorstatic, accordion, tabs, carousel, toggle, hover
items_countNumber of items displayedfew, moderate, many
content_densityHow much contentminimal, standard, rich
complexityImplementation effortlow, medium, high

When to Use Which Reference

ScenarioUse
Recommending best-fit blocks (default)references/block-index.md — tagged picks with selection prompts
User wants a specific numbered variantreferences/block-catalog.md — full catalog with all variant numbers
Section not in block-index (e.g., blog, gallery)references/block-catalog.md — fall back to category defaults
User wants to browse all optionsDirect to https://shadcnblocks.com/explorer/blocks
Need an individual UI elementreferences/component-catalog.md — free components

Quick Category Reference

For sections not yet in block-index.md, use these defaults:

Content & Blog

NeedCategoryStart With
Blog listingblog (22 variants)blog1
Blog post pageblogpost (7 variants)blogpost1
Changelogchangelog (7 variants)changelog1
Code snippetscode-example (5 variants)code-example1

About & Team

NeedCategoryStart With
About sectionabout (17 variants)about1
Team pageteam (14 variants)team1
Company timelinetimeline (15 variants)timeline1
Job listingscareers (9 variants)careers1

Ecommerce

NeedCategoryStart With
Product cardsproduct-card (10 variants)product-card1
Product listingproduct-list (10 variants)product-list1
Product detailproduct-detail (10 variants)product-detail1
Shopping cartshopping-cart (11 variants)shopping-cart1
Checkoutcheckout (6 variants)checkout1
Order historyorder-history (5 variants)order-history1

App & Dashboard

NeedCategoryStart With
Dashboard chartschart-card (27 variants)chart-card10
Data tablesdata-table (32 variants)data-table1
App sidebarsidebar (21 variants)sidebar1
App shell layoutapplication-shell (14 variants)application-shell1
User profileuser-profile (12 variants)user-profile1

Portfolio

NeedCategoryStart With
Image gallerygallery (48 variants)gallery1
Project listingprojects (25 variants)projects1
Project detailproject (33 variants)project1
Case studiescase-studies (6 variants)case-studies1

Visual & Decorative

NeedCategoryStart With
Background patternsbackground-pattern (40 variants)background-pattern1
Animated shadersshader (10 variants)shader1
Bento grid layoutbento (8 variants)bento1

Navigation & Misc

NeedCategoryStart With
Announcement barbanner (7 variants)banner1
Sale/promo barpromo-banner (7 variants)promo-banner1
Partner logoslogos (13 variants)logos1
Comparisonscompare (10 variants)compare1

Selecting the Right Component

Consult references/component-catalog.md for the full catalog. Key groups:

NeedComponent GroupExample
Form layoutForm (86)form-signin-1
Labeled inputField (38)field-standard-1
Input with addonInput Group (39)input-group-standard-1
Searchable selectCombobox (42)combobox-standard-1
File uploadFile Upload (44)file-upload-standard-1
Date pickerDate Picker (8)date-picker-standard-1
Alert messageAlert (25)alert-error-1
Confirm dialogAlert Dialog (39)alert-dialog-standard-1
Loading skeletonSkeleton (30)skeleton-standard-1
Toast notificationSonner (24)sonner-standard-1
Empty stateEmpty (22)empty-standard-1
Modal dialogDialog (17)dialog-standard-1
Side panelSheet (29) / Drawer (22)sheet-standard-1
AccordionAccordion (21)accordion-standard-1
Data chartChart (70)chart-standard-1
Command paletteCommand (21)command-standard-1
Dropdown menuDropdown Menu (30)dropdown-menu-standard-1
Keyboard shortcutsKBD (39)kbd-standard-1

Core Workflow

1. Ensure Project Foundation

Verify the project has shadcn/ui initialized. If not:

npx shadcn@latest init

This creates components.json in the project root.

2. Configure ShadcnBlocks Registry

Check if components.json already has the @shadcnblocks registry. If not, run:

bash "${CLAUDE_PLUGIN_ROOT}/skills/shadcn-ui/scripts/setup-shadcnblocks.sh" .

This adds the @shadcnblocks registry to components.json and sets SHADCNBLOCKS_API_KEY in .env.

If the script can't run (e.g., jq missing), configure manually:

  1. Add to .env: SHADCNBLOCKS_API_KEY=<key>
  2. Add registry to components.json:
{
  "registries": {
    "@shadcnblocks": {
      "url": "https://shadcnblocks.com/r/{name}",
      "headers": {
        "Authorization": "Bearer ${SHADCNBLOCKS_API_KEY}"
      }
    }
  }
}

3. Select and Install Blocks

Use the intelligent selection flow (above) to recommend the best blocks, then install:

# Blocks (full page sections)
npx shadcn add @shadcnblocks/hero125
npx shadcn add @shadcnblocks/pricing3

# Components (UI elements)
npx shadcn add @shadcnblocks/accordion-standard-1
npx shadcn add @shadcnblocks/file-upload-standard-1

4. Compose the Page

Import and compose blocks in the page layout:

import { Navbar1 } from "@/components/navbar1";
import { Hero125 } from "@/components/hero125";
import { Feature3 } from "@/components/feature3";
import { Footer1 } from "@/components/footer1";

export default function LandingPage() {
  return (
    <>
      <Navbar1 />
      <Hero125 />
      <Feature3 />
      <Footer1 />
    </>
  );
}

Blocks are fully editable source code, not locked dependencies. Customize props and content after installation.

Landing Page Assembly Pattern

For a typical marketing landing page, use the intelligent selection flow for each section. A common assembly:

npx shadcn add @shadcnblocks/navbar1      # Simple nav with CTA
npx shadcn add @shadcnblocks/hero125      # Modern centered hero
npx shadcn add @shadcnblocks/logos1        # Trust logos strip
npx shadcn add @shadcnblocks/feature3     # 3-column feature cards
npx shadcn add @shadcnblocks/stats1       # Metrics bar
npx shadcn add @shadcnblocks/testimonial1 # Social proof grid
npx shadcn add @shadcnblocks/pricing3     # 3-tier pricing cards
npx shadcn add @shadcnblocks/faq1         # Accordion FAQ
npx shadcn add @shadcnblocks/cta1         # Final call to action
npx shadcn add @shadcnblocks/footer1      # Multi-column footer

Each of these was selected for a "modern SaaS" tone. For different tones (enterprise, minimal, bold, playful), the selection flow will recommend different variants.

API Key Management

The ShadcnBlocks API key can be provided in multiple ways (checked in order):

  1. Environment variable (simplest): Set SHADCNBLOCKS_API_KEY in your shell or .env file
  2. 1Password CLI: The helper script uses op read to retrieve the key. Set OP_SHADCNBLOCKS_REF to your 1Password reference path, or it defaults to op://Platform Infra/ShadcnBlocks API Key/credential

Retrieve the key using the helper script:

bash "${CLAUDE_PLUGIN_ROOT}/skills/shadcn-ui/scripts/get-api-key.sh"

Security: Never hardcode the API key in source files. Always use .env with SHADCNBLOCKS_API_KEY and ensure .env is in .gitignore.

Troubleshooting

IssueResolution
Auth error on installVerify SHADCNBLOCKS_API_KEY is set in .env with a valid key
Registry not foundCheck registries key exists in components.json
components.json missingRun npx shadcn@latest init
1Password accessRun op signin; verify vault with op vault list
Block not foundCheck block name at https://shadcnblocks.com

Reference Files

  • references/block-index.md — Tagged picks with selection prompts for intelligent block recommendation (primary source)
  • references/block-catalog.md — Full catalog of 1,338 blocks across 71 categories with variant numbers and install commands
  • references/component-catalog.md — Full catalog of 1,189 components across 60+ groups with install syntax
  • references/setup-guide.md — Detailed step-by-step setup with troubleshooting

Scripts

  • scripts/setup-shadcnblocks.sh — Automated project setup (retrieves key, configures registry)
  • scripts/get-api-key.sh — Retrieve API key (env var or 1Password)

平台分布

Codex

34.96%
按下载量换算710

Claude

30.63%
按下载量换算622

Cursor

18.22%
按下载量换算370

Gemini CLI

9.36%
按下载量换算190

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills