Ncp Admin Frontend

Follows Vben Admin patterns when developing Ncp.Admin frontend (Vue 3 + Vite + TypeScript + Ant Design Vue). Use when adding or modifying views, API modules, routes, locales, or components in src/frontend/apps/admin-antd.

49 stars 12 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add zhouda1fu/Ncp.Admin --skill ncp-admin-frontend
Manual install
git clone --depth 1 https://github.com/zhouda1fu/Ncp.Admin.git /tmp/Ncp.Admin
mkdir -p ~/.claude/skills
cp -r /tmp/Ncp.Admin/.cursor/skills/ncp-admin-frontend ~/.claude/skills/ncp-admin-frontend

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Ncp.Admin 前端开发规范(详细)

路径与常用约定摘要见 **`.cursor/rules/frontend-vben.mdc`**。下文为易错点、**权限/菜单检查清单**、表单抽屉与路由高亮的完整说明(以本技能为准)。

---

## API 层

- `namespace` 定义类型;`requestClient` 发请求;函数命名:`getXxxList`、`getXxx`、`createXxx`、`updateXxx`、`deleteXxx`;文件末尾集中 `export { ... }`。

---

## 表单抽屉(Drawer)

**带表单的抽屉必须与主题一致**,统一使用 **useVbenDrawer + useVbenForm**,不要使用 Ant Design Vue 的 `Drawer` 组件 + 手写表单项。

- **抽屉壳**:`useVbenDrawer`(来自 `@vben/common-ui`),提供标题、关闭、底部取消/确定、提交中 lock 等,与其它抽屉样式一致。
- **表单内容**:`useVbenForm` + 在 `data.ts` 中定义的 **表单 schema**(与主表单一样用 `VbenFormSchema`、`z` 校验、`formItemClass` 等),保证标签、间距、栅格与主题表单一致。
- **流程**:打开时 `drawerApi.setData({ ... }).open()`,在 `onOpenChange(isOpen)` 里根据 `drawerApi.getData()` 给 `formApi.setValues(...)`;确定时在 `onConfirm` 里 `formApi.validate()` → `formApi.getValues()` → 调接口或写本地状态,成功后 `drawerApi.close()`,提交中用 `drawerApi.lock(true/false)`。
- **参考**:`src/views/contract/form-page.vue` 中的新增/编辑发票抽屉、`src/views/customer/modules/contact-drawer.vue`、`src/views/leave/balances/modules/form.vue`。

---

## 视图层易错点

### data.ts

- **useSchema()**:`VbenFormSchema[]`,`z` 校验,`$t()` 文案;表单项 `componentProps` 建议加 `class: 'w-full'`。
- **useGridFormSchema()**:列表顶部搜索表单;**每个表单项 `componentProps` 必须包含 `class: 'w-full'`**,否则搜索栏多列或操作列后出现空白列。
- **useColumns(onActionClick)**:操作列用 `CellOperation`。**必须有一列不设 `width`**(如备注列或占位列 `field: '_flex', title: ''`)作为弹性列,否则操作列右侧多出空白(参考 `views/system/dept/data.ts`);操作列建议 `width: 200`,`attrs` 提供 `nameField`/`nameTitle`。

### list.vue / form.vue
Read the full skill on GitHub

Details

Skill name
ncp-admin-frontend
Path
.cursor/skills/ncp-admin-frontend/SKILL.md
Repo updated
23 June 2026

FAQ

What does the Ncp Admin Frontend skill do?

Follows Vben Admin patterns when developing Ncp.Admin frontend (Vue 3 + Vite + TypeScript + Ant Design Vue). Use when adding or modifying views, API modules, routes, locales, or components in src/frontend/apps/admin-antd.

How do I install the Ncp Admin Frontend skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add zhouda1fu/Ncp.Admin --skill ncp-admin-frontend. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Ncp Admin Frontend popular?

It lives in zhouda1fu/Ncp.Admin, which has 49 GitHub stars and 12 forks.

Related skills

Cleanddd Coach

49

zhouda1fu/Ncp.Admin

交互式 CleanDDD 教练技能,循序讲解并与用户互动练习 CleanDDD 核心原则与方法;包含微课、测验与检查清单,可承接到需求分析/建模/代码实现技能

Other12

Cleanddd Dotnet Coding

49

zhouda1fu/Ncp.Admin

在 CleanDDD 项目中落地已建模的需求(聚合/命令/查询/API 端点(Endpoints)/事件/仓储/配置/测试)的编码指南;用于编写或修改业务功能、端点与数据访问时

Software Development12

Cleanddd Dotnet Init

49

zhouda1fu/Ncp.Admin

初始化 CleanDDD dotnet 项目(netcorepal-web 模板);在创建新项目或为客户演示快速拉起解决方案时使用,可直接调用 dotnet new 或包装脚本

Other12

Ncp Admin Grill Me

49

zhouda1fu/Ncp.Admin

面向 Ncp.Admin 的交互式需求拷问与任务定界技能。用于用户需求含糊、跨前后端/权限/接口/数据迁移/测试边界不清、或实现前需要先把范围和验收条件问透的场景;先持续追问并产出清晰任务卡,再决定转入 cleanddd-requirements-analysis、cleanddd-dotnet-coding 或 ncp-admin-frontend。

Frontend & Design12

Motion Design Critique

43

LobzyJay/motion-design-with-claude-and-codex

Use this skill when something has gone wrong, looks wrong, or needs a second opinion. Triggers on: "something looks off", "this doesn't look right", "why is this happening", "script error", "render artifact", "the timing feels wrong", "animation looks robotic", "AE error", "bpy error", "Blender crashed", "nothing is moving", "wrong position", "wrong keyframe", "expression error", "the material looks fake", "shadows are wrong", "why does this look cheap", "critique this", "review this", "what's wrong with". Also triggers when the user is stuck and doesn't know why. Works with or without MCP att

Frontend & Design

行业研究

43

SenLi0235/claude-code-industry-research

输出结构化、带引用、有计算过程的行业研究报告。 当用户说"研究/调研/分析 XX 行业"、"做一份行研"、"行业报告"、"赛道分析"时触发。 默认硬科技模式(完整技术分析 + Semantic Scholar 学术检索),消费/周期/普通制造业自动切换基础技术分析。 纯行业层面分析,不涉及具体公司估值/投资建议。 信息来源 = 用户本地资料 + 三通道体系(WebSearch + Wind + S2);所有关键数据必须可溯源或可验算,严禁杜撰。 支持输出 Markdown 报告 + HTML 网页报告(依赖 frontend-design 技能)。

Frontend & Design

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.