frontend-integration-yaml
它能做什么
这个技能帮助 AI 智能体把对菜单及其页面的简单描述,转换成有效的 FrontendIntegration 文件。适合在 KubeSphere 中设置前端集成、并希望由系统生成 YAML 的人。
适用场景
- ✓当你想为包含自定义资源表格的单个菜单快速生成 FrontendIntegration YAML 时。
- ✓当你需要通过 YAML 为菜单添加 iframe 页面时。
- ✓当你有简单的菜单设置,并希望将其转换为完整的标准格式时。
技能链接
https://github.com/kubesphere/kubesphere/blob/master/skills/frontend-integration-yaml/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我生成一个 FrontendIntegration YAML,包含一个名为 Backups 的菜单,并显示我的 Backup 资源表格。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会询问任何缺少的信息,例如名称、菜单显示名称和资源组,然后填入安全的默认值。它会运行一个生成脚本来生成完整的 YAML,并返回结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Frontend Integration YAML
Generate submit-ready FrontendIntegration YAML from a simplified authoring model with one menu and one or more pages.
When to Use
- generate FrontendIntegration YAML
- create a quick integration YAML from a CRD
- create an iframe based FrontendIntegration YAML
- convert simplified single-menu config into canonical YAML
Do Not Use
- troubleshooting existing FrontendIntegration resources
- managing enable/disable/delete lifecycle
- inspecting JSBundle, Job, controller, or status flows
- editing manifest generation rules
- handling multi-menu authoring models
Required Inputs
Ask the user instead of guessing when any of these are missing:
metadata.namemenu.displayNamemenu.placements[]- at least one page in
pages[] - for
crdTable:group,version,scope,names.plural - for
iframe:keyandiframe.src
Authoring Model
Use the simplified single-menu model as input to the generator:
- top-level
metadata - top-level
specfor optional passthrough fields - top-level
menu - top-level
pages
Do not author canonical spec.menus[] by hand.
Workflow
- Extract the simplified authoring model.
- Fill only safe defaults.
- Keep the model in single-menu form.
- Run
scripts/generate_frontend_integration.py. - Return the generated canonical YAML.
Rules
- Treat the generator script as the source of truth.
- Do not manually reconstruct canonical YAML when the generator is available.
- Always output canonical
kind: FrontendIntegration. - Always expand
menu.placements[]intospec.menus[]. - Always derive
childrenfrompages[]. - If any placement is
workspace, force allcrdTable.scopevalues toNamespaced. - Default
menu.icontoGridDuotonewhen it is omitted. - Do not add runtime-managed metadata unless explicitly requested.
Output
- Return the generated YAML first, unless explanation is requested.
- Prefer a single
yamlcode block. - After the YAML, always output this exact guidance line:
FrontendIntegration YAML has been generated. Reply 'apply' to deploy it directly.
常见问题
智能体需要哪些信息?
它需要名称、菜单显示名称、菜单的放置位置,以及至少一个页面。
它会猜测缺失的值吗?
不会。该技能会向你询问必需的信息,而不是自行猜测。
它能处理多个菜单吗?
不能。该技能适用于包含一个或多个页面的单个菜单。
详情
作者的原始描述
Generate canonical FrontendIntegration YAML from a simplified single-menu authoring model for frontend-forge.
repo: kubesphere/kubesphere
热度
- GitHub 星标
- 17k
- 排名
- #10764
- 许可证
- —
- 更新时间
- 2026/7/14
评论
- …
同一仓库的更多技能
frontend-forge-fe-operations
17k帮你的智能体在 KubeSphere 中管理 FrontendExtension 资源,包括构建、发布和调试。
frontend-forge-fi-operations
17k帮你的智能体在 KubeSphere 中创建、更新、启用、禁用和检查 FrontendIntegration 资源及 frontend-forge 扩展。
kubeeye
17k帮你的智能体安装 KubeEye,设置集群巡检规则和计划,并阅读巡检报告。
kubesphere-cluster-management
17k让你的智能体查看 KubeSphere 集群列表、状态、详情和版本信息,且不做任何更改。