BKUI 快速入门
ResearchBKUI 快速入门 is an Agent Skill for research published in the TencentBlueKing/bk-bcs repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
蓝鲸前端知识库入口指南,包含规范、索引和工作流程
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/TencentBlueKing/bk-bcs/blob/HEAD/bcs-services/bcs-project-manager/.cursor/skills/bkui-quick-start/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/bkui-快速入门, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
BKUI 快速入门
蓝鲸前端知识库入口指南。
强制规范
- 组件库: bkui-vue (前缀
bk-) - 语法: Vue 3
<script setup lang="ts"> - 样式: MagicBox 原子类 (mt10, mb20)
- 布局: 必须使用
bk-navigation
常见错误 (必须避免)
| 组件 | 错误写法 | 正确写法 |
|---|---|---|
| bk-navigation | :default-open-keys | default-open |
| bk-menu | :default-open-keys | :opened-keys |
| bk-dialog | v-model | v-model:isShow |
高优先级组件
bk-navigation- 布局组件,易出错bk-menu- 与 navigation 配合bk-table- 列表页核心组件bk-form- 表单验证bk-dialog- v-model:isShow
工作流程
- 分析需求 → 确定需要哪些资源
- 布局组件 →
get_component_api({ componentName: 'navigation' }) - 模板代码 →
get_skill({ skillId: 'bkui-builder' })
触发条件
遇到 bk- 前缀组件、bkui-vue、蓝鲸前端、设计稿还原时使用。
按需加载资源
skill://bkui-quick-start/references/skills-index.md- 完整 Skills 索引skill://bkui-quick-start/references/components-list.md- 组件完整列表
📦 可用资源
skill://bkui-quick-start/references/components-list.mdskill://bkui-quick-start/references/skills-index.md
根据 SKILL.md 中的 IF-THEN 规则判断是否需要加载