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

frontend-forge-fi-operations

它能做什么

这个技能帮助 AI 智能体通过 kubectl 操作 FrontendIntegration 资源和 frontend-forge 扩展。适合管理 KubeSphere 前端集成的集群管理员。

适用场景

  • ✓当你已有完整的 FrontendIntegration YAML 文件,需要将其创建到集群中时。
  • ✓当某个集成的构建输出或状态需要检查和修复时。
  • ✓当需要安装、启用、禁用或卸载 frontend-forge 扩展时。

技能链接

https://github.com/kubesphere/kubesphere/blob/master/skills/frontend-forge-fi-operations/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“我已经有一个新的 FrontendIntegration 的 YAML。请帮我在集群中创建它,并检查构建是否完成。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先检查 frontend-forge 扩展是否已安装并启用。然后它使用 kubectl 应用该集成的 YAML,监视其构建任务,并读取状态和输出。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Frontend Forge FI Operations

Operate FrontendIntegration resources and the frontend-forge extension with kubectl.

When to Use

  • Create a FrontendIntegration from complete FrontendIntegration YAML
  • Update, enable, disable, or delete an existing FI
  • Inspect FI status, build jobs, JSBundle, ConfigMap, manifest, or source-spec annotations
  • Troubleshoot FI reconciliation or build output
  • Create, enable, disable, uninstall, or inspect the frontend-forge extension

Do Not Use

  • Generate new FrontendIntegration YAML from natural language
  • Manage extensions other than frontend-forge
  • Assume FI operations are valid before checking extension state
  • Use patch as the creation path for a new FI when the user already has YAML

Preconditions

  • kubectl must be configured for the target cluster.
  • frontend-forge extension installation and enabled state are prerequisites for all FI functionality.
  • frontend-forge-controller exists only after the frontend-forge extension is installed.
  • FrontendIntegration is cluster-scoped. Do not add -n when operating on FI resources.

Read First

Preflight

Always run these checks before any FI create, update, enable, disable, delete, inspect, or troubleshoot flow:

kubectl get extension frontend-forge
kubectl get installplan frontend-forge -o yaml

Only continue to FI operations when:

  • the frontend-forge extension exists
  • the frontend-forge InstallPlan exists
  • spec.enabled=true on the InstallPlan

If the extension is missing or disabled, switch to the extension management workflow first.

FI Operations

Create FI From YAML

Only create FI from complete FrontendIntegration YAML content or a YAML file path.

  1. Run the preflight checks.
  2. If the user provides YAML content, write it to a temporary file.
  3. Apply the YAML with kubectl apply -f.
  4. Inspect the result.

See references/lifecycle.md for the exact create and post-apply inspection commands.

Update Existing FI

  • Prefer editing YAML and re-applying it.
  • Use patch only for targeted lifecycle changes when the user explicitly wants patch semantics.

See references/lifecycle.md for the exact update, enable, disable, and delete commands.

Disable FI

Disable an existing FI by patching spec.enabled=false.

See references/lifecycle.md for the exact disable command and post-check flow.

Enable FI

Enable an existing FI by patching spec.enabled=true.

See references/lifecycle.md for the exact enable command and post-check flow.

Delete FI

Delete the FI resource only after the preflight checks pass.

See references/lifecycle.md for the exact delete command.

Extension Management

Use fixed resource names for frontend-forge:

  • extension: frontend-forge
  • InstallPlan: frontend-forge

Create Extension

Ask the user for the frontend-forge extension version. If it is not provided, resolve the latest version first.

See references/extension-management.md for the exact version lookup command and InstallPlan YAML.

Disable Extension

Patch installplan/frontend-forge so spec.enabled=false.

Enable Extension

Patch installplan/frontend-forge so spec.enabled=true.

Uninstall Extension

Delete installplan/frontend-forge.

Inspect Extension State

Inspect extension/frontend-forge and installplan/frontend-forge.

See references/extension-management.md for the exact create, enable, disable, uninstall, and inspect commands.

Rules

  • Treat extension readiness as the first gate for all FI operations.
  • Create new FI resources only from FrontendIntegration YAML.
  • Prefer kubectl apply -f for FI creation.
  • Keep FI troubleshooting available after the preflight checks pass.
  • Keep command details in references; keep SKILL.md focused on routing and decision logic.
  • Use extension and installplan resources as the source of truth for extension state.
  • Treat `frontend-forge-cont
常见问题

智能体能从零编写 YAML 吗?

不能。该技能用于应用你已经有的完整 YAML。另有一个技能可以帮助生成 YAML。

为什么要先检查扩展?

该技能说明,所有集成功能都依赖于已安装并启用的 frontend-forge 扩展。

它会管理其他扩展吗?

不会。它只管理 frontend-forge 扩展。

详情

作者的原始描述

Operate FrontendIntegration resources and the frontend-forge extension. Use when Codex needs to create a FrontendIntegration from FrontendIntegration YAML, update or patch FI lifecycle state, inspect or troubleshoot FI build output, or create, enable, disable, uninstall, and inspect the frontend-forge extension through its InstallPlan and extension resources.

repo: kubesphere/kubesphere

热度

GitHub 星标
17k
排名
#10763
许可证
—
更新时间
2026/7/14

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能