Agent skill

Vben

by linaproai in linaproai/linapro

Vben Admin 5.0 前端框架开发技能。用于开发基于 Vue3、Vite、TypeScript 的中后台管理系统。

Apache-2.0Auto-check: notesDevOps & Cloud

Install Vben

skills CLI
$ npx skills add linaproai/linapro --skill vben -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install linaproai/linapro vben --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/linaproai/linapro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/vben .claude/skills/vben && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
vben
GitHub stars
160
Token cost
~1.6k tokens
SKILL.md length
126 words
Files
23 (incl. references)
Skills in repo
13
Repo updated
First seen
Licence
Apache-2.0

At a glance

Vben Admin 5.0 前端框架开发技能。用于开发基于 Vue3、Vite、TypeScript 的中后台管理系统。

  • DevOps & Cloud work in your project
  • SKILL.md covers 项目结构, 常用命令, 核心开发指南 and 环境变量, plus 2 more sections
  • Calls pnpm

What it does

Vben is an agent skill from linaproai/linapro. Vben Admin 5.0 前端框架开发技能。用于开发基于 Vue3、Vite、TypeScript 的中后台管理系统。

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 27 other files, including reference files (for example `references/components/business/alert.md`, `references/components/business/api-component.md` and `references/components/business/drawer.md`).

It sits in DevOps & Cloud. It works with Vue.js, Vite and TypeScript. The repository describes itself as: AI-native full-stack framework engineered for sustainable delivery. The licence is Apache-2.0.

When your agent uses it

  • DevOps & Cloud work in your project

Example prompts

  • “/vben”

Requirements

  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit 75395c8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Vben loads about 1.6k tokens when it runs, and up to ~23k if it reads all its reference files. Until then it costs about 17 tokens; SKILL.md has 126 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~17
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~23k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:238
    # .env.development
  • NoteMentions a .env fileSKILL.md:243
    # .env.production

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from linaproai/linapro at commit 75395c8, republished under its Apache-2.0 licence (© linaproai). 126 words, ~1,633 tokens.

Download SKILL.mdSave it as .claude/skills/vben/SKILL.md (or your agent's skills folder). This skill also uses 22 other files; get the full folder from GitHub.
name
vben
description
Vben Admin 5.0 前端框架开发技能。用于开发基于 Vue3、Vite、TypeScript 的中后台管理系统。
TRIGGER when
编写/修改 Vben Admin 项目代码、配置路由菜单、设置权限控制、主题定制、组件开发、API对接、状态管理、国际化配置。
DO NOT trigger when
编写后端代码、纯前端通用开发(与 Vben 框架无关)。

Vben Admin 开发技能

基于 Vben Admin 5.0 文档的专业开发指导技能,帮助快速开发中后台管理系统。

项目结构

采用 Monorepo 架构,核心目录:

├── apps/                    # 应用目录
│   ├── web-antd/           # Ant Design Vue 应用
│   ├── web-ele/            # Element Plus 应用
│   ├── web-naive/          # Naive UI 应用
│   └── backend-mock/       # Mock 后端服务
├── packages/               # 共享包
│   ├── @core/              # 核心包(UI组件、布局等)
│   ├── effects/            # 副作用包(权限、请求、hooks等)
│   ├── stores/             # 状态管理
│   ├── locales/            # 国际化
│   └── utils/              # 工具函数
└── internal/               # 内部工具配置

常用命令

bash
# 开发
pnpm dev:antd          # 启动 Ant Design 应用
pnpm dev:ele           # 启动 Element Plus 应用
pnpm dev:naive         # 启动 Naive UI 应用

# 构建
pnpm build             # 构建所有应用
pnpm build:antd        # 构建指定应用

# 其他
pnpm lint              # 代码检查
pnpm check:type        # 类型检查
pnpm reinstall         # 重新安装依赖

核心开发指南

路由与菜单

路由配置位于 src/router/routes/modules/ 目录:

ts
import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'mdi:home',
      title: $t('page.home.title'),
      authority: ['admin'],      // 权限控制
      order: 1000,               // 菜单排序
      keepAlive: true,           // 开启缓存
      hideInMenu: false,         // 菜单中隐藏
      hideInTab: false,          // 标签页中隐藏
    },
    name: 'Home',
    path: '/home',
    component: () => import('#/views/home/index.vue'),
  },
];

export default routes;
权限控制

三种模式在 preferences.ts 中配置:

ts
import { defineOverridesPreferences } from '@vben/preferences';

export const overridesPreferences = defineOverridesPreferences({
  app: {
    accessMode: 'frontend',  // 'frontend' | 'backend' | 'mixed'
  },
});

按钮级权限:

vue
<script setup>
import { AccessControl, useAccess } from '@vben/access';
const { hasAccessByCodes, hasAccessByRoles } = useAccess();
</script>

<template>
  <!-- 权限码方式 -->
  <AccessControl :codes="['AC_100100']" type="code">
    <Button>有权限可见</Button>
  </AccessControl>

  <!-- 角色方式 -->
  <Button v-if="hasAccessByRoles(['admin'])">管理员可见</Button>

  <!-- 指令方式 -->
  <Button v-access:code="'AC_100100'">有权限可见</Button>
</template>
偏好设置配置

在应用目录的 preferences.ts 中配置:

ts
import { defineOverridesPreferences } from '@vben/preferences';

export const overridesPreferences = defineOverridesPreferences({
  app: {
    layout: 'sidebar-nav',           // 布局方式
    locale: 'zh-CN',                 // 语言
    dynamicTitle: true,              // 动态标题
    watermark: false,                // 水印
    loginExpiredMode: 'page',        // 登录过期模式
  },
  theme: {
    mode: 'dark',                    // 主题模式
    builtinType: 'default',          // 内置主题
    colorPrimary: 'hsl(212 100% 45%)', // 主题色
  },
  sidebar: {
    collapsed: false,                // 侧边栏折叠
    width: 224,                      // 侧边栏宽度
  },
  tabbar: {
    enable: true,                    // 标签页
    keepAlive: true,                 // 缓存
  },
});
API 请求

请求配置在 src/api/request.ts:

ts
import { requestClient } from '#/api/request';

// GET 请求
export async function getUserInfoApi() {
  return requestClient.get<UserInfo>('/user/info');
}

// POST 请求
export async function saveUserApi(user: UserInfo) {
  return requestClient.post<UserInfo>('/user', user);
}

代理配置在 vite.config.mts:

ts
export default defineConfig(async () => {
  return {
    vite: {
      server: {
        proxy: {
          '/api': {
            target: 'http://localhost:5320/api',
            changeOrigin: true,
            rewrite: (path) => path.replace(/^\/api/, ''),
          },
        },
      },
    },
  };
});
国际化

使用 $t() 函数:

ts
import { $t } from '#/locales';

meta: {
  title: $t('page.home.title'),
}

语言文件在 packages/locales/ 目录。

主题定制

CSS 变量覆盖:

css
:root {
  --primary: 212 100% 45%;
  --sidebar: 0 0% 100%;
  --header: 0 0% 100%;
}

.dark {
  --background: 222.34deg 10.43% 12.27%;
  --sidebar: 222.34deg 10.43% 12.27%;
}
登录接口对接

需要的接口:

ts
// src/api/core/auth.ts
export async function loginApi(data: LoginParams) {
  return requestClient.post<LoginResult>('/auth/login', data);
}

// src/api/core/user.ts
export async function getUserInfoApi() {
  return requestClient.get<UserInfo>('/user/info');
}

// src/api/core/auth.ts (可选)
export async function getAccessCodesApi() {
  return requestClient.get<string[]>('/auth/codes');
}

环境变量

bash
# .env.development
VITE_PORT=5555
VITE_GLOB_API_URL=/api
VITE_NITRO_MOCK=true

# .env.production
VITE_GLOB_API_URL=https://api.example.com
VITE_COMPRESS=gzip
VITE_ROUTER_HISTORY=hash

别名配置

使用 # 开头的路径别名:

ts
// package.json
{
  "imports": {
    "#/*": "./src/*"
  }
}

// 使用
import { useAuthStore } from '#/store';

详细参考文档

需要更多细节时,查阅以下参考文件:

核心功能 (references/core/)
  • 路由菜单: references/core/route.md - 路由配置、Meta属性、多级菜单
  • 权限控制: references/core/access.md - 三种权限模式、按钮级权限
  • 偏好设置: references/core/preferences.md - 完整配置项说明
  • 主题定制: references/core/theme.md - CSS变量、内置主题、自定义主题
  • API请求: references/core/api.md - 请求配置、拦截器、多接口地址
  • 国际化: references/core/locale.md - 语言配置、新增语言包
  • 登录对接: references/core/login.md - 登录接口、Token刷新
  • 图标使用: references/core/icons.md - Iconify图标、SVG图标
业务组件 (references/components/business/)
  • Page页面: references/components/business/page.md - 页面布局容器、标题区、内容区
  • 表单组件: references/components/business/form.md - Vben Form表单配置、校验、联动
  • 表格组件: references/components/business/table.md - Vben Vxe Table表格配置、搜索、远程加载
  • 模态框: references/components/business/modal.md - Vben Modal配置、拖拽、全屏
  • 抽屉: references/components/business/drawer.md - Vben Drawer配置、组件抽离
  • 轻量提示框: references/components/business/alert.md - alert、confirm、prompt调用
  • API组件包装器: references/components/business/api-component.md - 远程数据自动加载
通用组件 (references/components/common/)
  • 数字动画: references/components/common/count-to.md - CountToAnimator数字滚动动画
  • 省略文本: references/components/common/ellipsis-text.md - EllipsisText文本省略展开
功能配置 (references/features/)
  • 常用功能: references/features/features.md - 水印、缓存、动态标题等
构建部署 (references/deployment/)
  • 构建部署: references/deployment/deploy.md - 构建配置、Nginx、Docker
  • 常见问题: references/deployment/faq.md - 依赖安装、打包部署、错误排查

© linaproai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 22 other files (references) in .agents/skills/vben of linaproai/linapro.

  • SKILL.md
  • references/components/business/alert.md
  • references/components/business/api-component.md
  • references/components/business/drawer.md
  • references/components/business/form.md
  • references/components/business/modal.md
  • references/components/business/page.md
  • references/components/business/table.md
  • references/components/common/count-to.md
  • references/components/common/ellipsis-text.md
  • references/core/access.md
  • references/core/api.md
  • references/core/icons.md
  • references/core/locale.md
  • references/core/login.md
  • references/core/preferences.md
  • … and 7 more

Open the folder on GitHubat commit 75395c8

Compare with similar skills

Vben next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Vben compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Vben this skilllinaproai/linapro160—~1.6kAutomated safety check: NotesApache-2.0
Vuetify Skilldlogue/vite-vuetify-ts-starter1811 repos~1.9kAutomated safety check: PassMIT
Avotokyo Workflowsheyq02/simpleicons.dev171—~1.5kAutomated safety check: PassApache-2.0
Wayfinder Developmentslimani-dev/muraqib1281 repos~622Automated safety check: PassMIT
Branch SyncChenyCHENYU/Robot_Admin1k—~883Automated safety check: PassMIT
Devinggo Generatorhuagelong/devinggo122—~3.3kAutomated safety check: PassApache-2.0

Similar skills

  • Vuetify Skilld

    logue/vite-vuetify-ts-starter

    Vue Material Component Framework. An agent skill from logue/vite-vuetify-ts-starter.

    181 GitHub starsUsed in 1 repo~1.9k tokens
    Frontend & DesignAuto-check passed
  • Avotokyo Workflows

    heyq02/simpleicons.dev

    Use avotokyo/workflows reusable GitHub Actions for TypeScript/Vite+ projects.

    171 GitHub stars~1.5k tokensUpdated 18 days ago
    DevOps & CloudAuto-check passed
  • Wayfinder Development

    slimani-dev/muraqib

    A skill your agent uses for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes.

    128 GitHub starsUsed in 1 repo~622 tokens
    Backend & APIsAuto-check passed
  • Branch Sync

    ChenyCHENYU/Robot_Admin

    A skill your agent uses when: upgrading dependencies, adding common features, or when the user explicitly requests branch sync check.

    1k GitHub stars~883 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Devinggo Generator

    huagelong/devinggo

    DevingGo 代码生成器 CLI 工具集。当用户需要生成 CRUD 代码、创建模块、管理 Worker 任务、 导入导出模块、或需要快速搭建后端/前端代码时使用。适用于任何涉及代码生成、模块管理、 数据库表对应的前后端代码生成的场景。

    122 GitHub stars~3.3k tokensUpdated 3 mo ago
    DevOps & CloudAuto-check passed
  • Git Commit

    pddzl/td27-admin

    Generate clear and conventional commit messages from git diffs

    112 GitHub stars~147 tokensUpdated 8 days ago
    DevelopmentAuto-check passed

More from linaproai/linapro

All 13 skills in this repo
  • Lina Perf Audit

    linaproai/linapro

    通过 make db.init/mock 重置数据库、重启服务、安装并启用所有内置插件、准备压测数据,并启动并发子代理; 通常需要几十分钟到数小时,且会消耗大量 Token。不得从其他技能、CI、定时任务、 Git 钩子或模糊的性能请求中触发。

    160 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • 手动触发:为 LinaPro 主仓库及 apps/lina-plugins 子模块完成提交、PR 前 rebase、推送、创建 PR, 主仓 CI 修复回路,以及 PR 合并后恢复原始分支并同步 main。禁止自动触发。

    160 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Lina Community Fix CI

    linaproai/linapro

    排查并修复给定的 LinaPro GitHub Actions 失败问题;修复完成后保留本地改动, 禁止自动提交、推送或创建 PR。

    160 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • 审查 LinaPro 社区 GitHub Issues,并按项目规范和源码实现分类处理. An agent skill from linaproai/linapro.

    160 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Lina Community New Branch

    linaproai/linapro

    手动触发:将主仓库与 apps/lina-plugins 对齐最新 main 后, 按提示在两侧各建独立分支;分支就绪后继续处理提示词中的后续请求。

    160 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Lina Community PR Review

    linaproai/linapro

    审查 LinaPro 社区 GitHub Pull Request,并按项目规范发表评论. An agent skill from linaproai/linapro.

    160 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Vben

What does Vben do?

Vben Admin 5.0 前端框架开发技能。用于开发基于 Vue3、Vite、TypeScript 的中后台管理系统。. Vben is an agent skill from linaproai/linapro.

When should I use Vben?

Vben fits situations like: devOps & Cloud work in your project.

How do I install Vben in Claude Code?

Run `npx skills add linaproai/linapro --skill vben -a claude-code`. Or copy the skill folder (.agents/skills/vben in linaproai/linapro) into .claude/skills/vben in your project. Claude Code loads it when a task matches its description.

How do I install Vben in Codex?

Run `npx skills add linaproai/linapro --skill vben -a codex`. Or copy the skill folder (.agents/skills/vben in linaproai/linapro) into .agents/skills/vben in your project. Codex loads it when a task matches its description.

Can I use Vben in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add linaproai/linapro --skill vben -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vben, .gemini/skills/vben, .github/skills/vben and .opencode/skills/vben in your project.

What does Vben need to run?

Going by SKILL.md and its folder, Vben needs the command-line tools its instructions call (pnpm). Our summary lists: Docker.

Does Vben access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Vben safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Vben use?

Vben is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Vben use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 21k tokens, read only when the agent opens those files.

What are the alternatives to Vben?

Skills that share tags, products or a category with Vben: Vuetify Skilld (logue/vite-vuetify-ts-starter, 181 stars), Avotokyo Workflows (heyq02/simpleicons.dev, 171 stars), Wayfinder Development (slimani-dev/muraqib, 128 stars) and Branch Sync (ChenyCHENYU/Robot_Admin, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Vben?

linaproai (a GitHub organization) maintains it in linaproai/linapro, which has 160 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 7, 2026.

Source: linaproai/linapro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.