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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
FrontendIntegrationfrom completeFrontendIntegrationYAML - 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-forgeextension
Do Not Use
- Generate new
FrontendIntegrationYAML 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
kubectlmust be configured for the target cluster.frontend-forgeextension installation and enabled state are prerequisites for all FI functionality.frontend-forge-controllerexists only after thefrontend-forgeextension is installed.FrontendIntegrationis cluster-scoped. Do not add-nwhen operating on FI resources.
Read First
- Read references/extension-management.md before any FI operation.
- Read references/lifecycle.md for FI create, update, enable, disable, and delete workflows.
- Read references/inspection.md for FI inspection and troubleshooting.
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-forgeextension exists - the
frontend-forgeInstallPlan exists spec.enabled=trueon 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.
- Run the preflight checks.
- If the user provides YAML content, write it to a temporary file.
- Apply the YAML with
kubectl apply -f. - 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
FrontendIntegrationYAML. - Prefer
kubectl apply -ffor FI creation. - Keep FI troubleshooting available after the preflight checks pass.
- Keep command details in references; keep
SKILL.mdfocused on routing and decision logic. - Use
extensionandinstallplanresources 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
评论
- …
同一仓库的更多技能
frontend-forge-fe-operations
17k帮你的智能体在 KubeSphere 中管理 FrontendExtension 资源,包括构建、发布和调试。
frontend-integration-yaml
17k帮你的智能体为一个菜单及其一个或多个页面,创建可直接提交的 FrontendIntegration YAML。
kubeeye
17k帮你的智能体安装 KubeEye,设置集群巡检规则和计划,并阅读巡检报告。
kubesphere-cluster-management
17k让你的智能体查看 KubeSphere 集群列表、状态、详情和版本信息,且不做任何更改。