跳到正文
Skillpedia
部署与云(DevOps)17k · #10764

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/kubesphere/kubesphere/blob/master/skills/frontend-integration-yaml/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.name
  • menu.displayName
  • menu.placements[]
  • at least one page in pages[]
  • for crdTable: group, version, scope, names.plural
  • for iframe: key and iframe.src

Authoring Model

Use the simplified single-menu model as input to the generator:

  • top-level metadata
  • top-level spec for optional passthrough fields
  • top-level menu
  • top-level pages

Do not author canonical spec.menus[] by hand.

Workflow

  1. Extract the simplified authoring model.
  2. Fill only safe defaults.
  3. Keep the model in single-menu form.
  4. Run scripts/generate_frontend_integration.py.
  5. 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[] into spec.menus[].
  • Always derive children from pages[].
  • If any placement is workspace, force all crdTable.scope values to Namespaced.
  • Default menu.icon to GridDuotone when 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 yaml code 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能