Agent Skillskokonut-labs/kokonutui › install-kokonutui-component

install-kokonutui-component

GitHub

指导通过 shadcn CLI 或 MCP 服务器发现、安装和读取 KokonutUI React 组件,支持自动解析依赖并编辑源码。

public/.well-known/agent-skills/install-component/SKILL.md kokonut-labs/kokonutui

Trigger Scenarios

用户需要集成特定 UI 组件 用户希望使用 shadcn 管理前端组件库

Install

npx skills add kokonut-labs/kokonutui --skill install-kokonutui-component -g -y
More Options

Non-standard path

npx skills add https://github.com/kokonut-labs/kokonutui/tree/main/public/.well-known/agent-skills/install-component -g -y

Use without installing

npx skills use kokonut-labs/kokonutui@install-kokonutui-component

指定 Agent (Claude Code)

npx skills add kokonut-labs/kokonutui --skill install-kokonutui-component -a claude-code -g -y

安装 repo 全部 skill

npx skills add kokonut-labs/kokonutui --all -g -y

预览 repo 内 skill

npx skills add kokonut-labs/kokonutui --list

SKILL.md

Frontmatter
{
    "name": "install-kokonutui-component",
    "description": "Find and install a KokonutUI React component into a project using the shadcn CLI, and read its source and documentation."
}

Installing a KokonutUI component

KokonutUI is a collection of 100+ open-source React components built with Next.js, React, Tailwind CSS v4, and Motion. Components are not published as an npm package — each one is copied into the target project as source code via the shadcn CLI, so it can be edited freely afterwards.

Discovering what exists

  • https://kokonutui.com/r/registry.json — machine-readable index of every installable component, including its dependencies and file list.
  • https://kokonutui.com/llms.txt — documentation index with one line per component and a link to its Markdown source.
  • https://kokonutui.com/r/{name}.json — the full registry entry for a single component, with the complete source of every file it ships.

To search the docs, request any docs page with Accept: text/markdown (or append .md to the URL) to get clean Markdown instead of HTML. For example, https://kokonutui.com/docs/cards/card-flip.md.

Installing

If a shadcn MCP server is available, use it to browse and install components directly — it works with the @kokonutui registry out of the box. Setup: https://kokonutui.com/docs/mcp.

Otherwise, use the shadcn CLI with the @kokonutui namespace:

npx shadcn@latest add @kokonutui/card-flip

Replace card-flip with any name from registry.json. The CLI resolves the component's registryDependencies (shadcn/ui primitives such as button or textarea) and its npm dependencies (such as motion or lucide-react) automatically.

Prerequisites in the target project

  • Tailwind CSS v4 configured.
  • shadcn/ui initialised (npx shadcn@latest init), so components.json and the cn utility in lib/utils.ts exist.
  • React 19 or later for components that use modern React features.

After installing

The component lands in components/kokonutui/{name}.tsx by default. It is plain source code — edit it directly rather than wrapping it. Check the component's docs page for props and usage examples.

Licence

MIT. The components may be used, modified, and shipped in commercial work.

Version History

  • 83eec6d Current 2026-08-29 00:37

    新增 shadcn MCP 服务器文档与生成式注册表索引,替代手动维护的 registry.json。

  • 6544875 2026-08-20 13:01

Same Skill Collection

.agents/skills/building-components/SKILL.md
.agents/skills/frontend-design/SKILL.md
.agents/skills/next-best-practices/SKILL.md
.agents/skills/next-cache-components/SKILL.md
.agents/skills/next-upgrade/SKILL.md
.agents/skills/vercel-composition-patterns/SKILL.md
.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/vercel-react-native-skills/SKILL.md
.agents/skills/web-design-guidelines/SKILL.md

Metadata

Files
0
Version
83eec6d
Hash
0808375a
Indexed
2026-08-20 13:01

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 09:26
浙ICP备14020137号-1 $Carte des visiteurs$