Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问clear审计提醒

setup设置

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

26,664

周安装

1,079

GitHub Stars

14

下载量

8,712
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/assistant-ui/skills --skill setup

简介

在 Next.js 项目中初始化和配置 Assistant-ui 聊天 UI 或从模板创建新应用程序。

  • 支持两种工作流程:init
  • 对于现有的 Next.js 项目并创建
  • 对于新应用程序,有六个入门模板,涵盖 AI SDK、云持久性、Clerk auth、LangGraph 和 MCP 集成
  • CLI 标志启用非交互式设置 ( --yes)、模板选择(-t)、预设配置(--preset),以及组件注册表添加(添加)
  • 参考文档涵盖高级运行时,包括 LangGraph、自定义后端、外部状态管理以及 Vite 和 TanStack Start 等非 Next.js 框架
  • 包括用于添加预构建 UI 元素(如 Markdown 文本和线程列表)的组件注册表

SKILL.md

assistant-ui Setup

CLI Commands

Quick Decision Flow

  • Existing Next.js app (package.json exists): use npx assistant-ui@latest init
  • Existing app in CI/agent/non-interactive shell: use npx assistant-ui@latest init --yes
  • Existing app + force overwrite of conflicts: add --overwrite
  • New app / empty directory: use npx assistant-ui@latest create <name>
  • Need specific starter template: add -t <default|minimal|cloud|cloud-clerk|langgraph|mcp>
  • Need a curated example: use npx assistant-ui@latest create <name> --example <example>
  • Need playground preset config: use npx assistant-ui@latest create <name> --preset <url>

New Project (create)

npx assistant-ui@latest create my-app -t minimal
npx assistant-ui@latest create my-app -t cloud-clerk
npx assistant-ui@latest create my-app --preset "https://www.assistant-ui.com/playground/init?preset=chatgpt"

Templates:

TemplateDescription
defaultDefault template with Vercel AI SDK
minimalBare-bones starting point
cloudCloud-backed persistence starter
cloud-clerkCloud-backed starter with Clerk auth
langgraphLangGraph starter template
mcpMCP starter template

When -t is omitted:

  • Interactive shell (TTY): an interactive template picker is shown.
  • Non-interactive shell (CI/agent): template defaults to default.

If no project directory is provided in a non-interactive shell, create uses my-aui-app.

Existing Next.js Project (init)

npx assistant-ui@latest init --yes

The init command is for existing projects only (requires package.json). If no project is found, it automatically forwards to create. Passing --preset to init also forwards to create (compatibility path).

The --yes flag runs non-interactively (no prompts).

Add Registry Components

npx assistant-ui@latest add markdown-text
npx assistant-ui@latest add thread-list

Registry: https://r.assistant-ui.com/{name}.json


Template Code Policy

When using CLI templates (npx assistant-ui@latest create), never modify generated code unless explicitly requested.


Non-Default Setups

For runtimes other than AI SDK or frameworks other than Next.js, consult the reference files:

SetupRuntime HookReference
AI SDK advanced (tools, cloud, options)useChatRuntimereferences/ai-sdk.md
Styling and UI customization (shadcn pattern)references/styling.md
LangGraph agentsuseLangGraphRuntimereferences/langgraph.md
AG-UI protocoluseAgUiRuntimereferences/ag-ui.md
A2A protocoluseA2ARuntimereferences/a2a.md
Custom streaming APIuseLocalRuntimereferences/custom-backend.md
Existing state (Redux/Zustand)useExternalStoreRuntimereferences/custom-backend.md
Vite / TanStack Startreferences/tanstack.md

Deprecated Packages

NEVER install @assistant-ui/styles or @assistant-ui/react-ui — both are deprecated and deleted.


Troubleshooting

For issues not covered by the reference files, use the docs website:

  1. Fetch the index: https://www.assistant-ui.com/llms.txt — compact table of contents
  2. Fetch specific pages: Append .mdx to the docs URL, e.g. https://www.assistant-ui.com/docs/runtimes/ai-sdk.mdx

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.66%
按下载量换算2,235

Cursor

25.03%
按下载量换算2,181

Codex

18.87%
按下载量换算1,644

Gemini CLI

11.35%
按下载量换算989

Antigravity

7.23%
按下载量换算630

OpenCode

3.3%
按下载量换算287

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/assistant-ui/skills --skill setup;npx skills add assistant-ui/skills --skill "setup" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills