frontend-forge-fe-operations
它能做什么
这个技能帮助 AI 智能体通过 kubectl 处理 KubeSphere 集群中的前端扩展。适合创建、重建、发布或排查前端扩展包的集群管理员。
适用场景
- ✓当你需要创建或更新前端扩展并生成其安装包时。
- ✓当前端扩展卡在打包或发布阶段(Packaging),并且你想找出原因时。
- ✓当你需要发布、取消发布或删除扩展,并检查其状态时。
技能链接
https://github.com/kubesphere/kubesphere/blob/master/skills/frontend-forge-fe-operations/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的前端扩展一直卡在 Packaging 状态。请帮我检查它的状态,并找出原因。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用 kubectl 在目标集群中读取扩展的状态、条件、任务和产物。然后它会按生命周期步骤进行重建、发布或取消发布,并检查结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Frontend Forge FE Operations
When to use
Use this skill for operational work around FrontendExtension resources:
- Create or update an FE manifest
- Trigger or inspect package generation
- Force a rebuild with the rebuild-token annotation
- Download the generated package artifact
- Publish, unpublish, or delete an extension
- Inspect FE status, conditions, labels, Jobs, artifact ConfigMaps, and publish targets
- Debug FE package phases such as
Packaging,Ready, andFailed, plus publish/unpublish phases such asPending,Running,Succeeded, andFailed
If the task is about FrontendIntegration runtime JSBundle creation, use the FI operations skill instead. FE package/publish does not create a runtime JSBundle in the current cluster.
Quick Entry
- Create or update FE -> read
references/lifecycle.md - Rebuild package -> read
references/lifecycle.md - Publish, unpublish, delete-with-unpublish, list through API, or download -> read
references/api.md - Inspect package Job, artifact ConfigMap, publish Job, labels, or conditions -> read
references/inspection.md - Debug stuck or failed state -> read
references/inspection.md, then check controller logs
Preconditions
- The current Kubernetes context is pointed at the target cluster.
- The FE CRD exists:
frontendextensions.frontend-forge.kubesphere.io. - The FE controller is installed, usually as the
extension-controllercomponent. - The FE API is installed when using download, publish, unpublish, or delete-with-unpublish HTTP operations.
- The build service configured by
BUILD_SERVICE_BASE_URLis reachable from package Jobs. - Publish target data exists when publishing, normally
ConfigMap/ksbuilder-publish-configinextension-frontend-forge.
Source of truth
Prefer live cluster state for operations and repo docs for expected behavior:
kubectl get fe <name> -o yamlkubectl get jobs -n <work-namespace> -l frontend-forge.kubesphere.io/fe-name=<name>spec/frontend-extension-design.mdspec/crds.mdspec/k8s-resources.mdconfig/samples/frontendextension-inspecttask.yamlcrates/api/src/fe.rscrates/frontend-extension-controllercrates/frontend-forge-extension-api
Resource Model
FrontendExtension- cluster-scoped
- short name:
fe - source object for package, artifact, download, publish, and unpublish state
- Package Job
- namespaced
- default namespace:
extension-frontend-forge - typical name:
fe-<fe-name>-package-<artifact-key-12>-a<attempt>
- Artifact ConfigMap
- namespaced
- default namespace:
extension-frontend-forge - referenced by
status.artifact.storage.ref - contains
binaryData["package.tgz"],data["artifact.json"], anddata["files.json"]
- Publish or unpublish Job
- namespaced
- default namespace:
extension-frontend-forge - typical names:
fe-<fe-name>-publish-<request-id-hash-short>fe-<fe-name>-unpublish-<request-id-hash-short>
- Publish target
ConfigMaporSecret- default chart target is usually
ConfigMap/ksbuilder-publish-configin the release namespace
Default names and namespaces can change through Helm values and controller environment variables. Use FE status, Job labels, and controller deployment env vars before assuming defaults.
Common Commands
Inspect FE:
kubectl get fe <name> -o yaml
kubectl get fe <name> -o jsonpath='{.status}{"\n"}'
kubectl get fe <name> -o jsonpath='{.status.phase}{" "}{.status.publish.phase}{" "}{.status.unpublish.phase}{"\n"}'
kubectl get fe -l frontend-forge.kubesphere.io/package-state=ready
kubectl get fe -l frontend-forge.kubesphere.io/publish-state=published
Create or update:
kubectl apply -f <file.yaml>
kubectl apply -f config/samples/frontendextension-inspecttask.yaml
Find package Job and logs:
kubectl get fe <name> -o jsonpath='{.status.packageJob.namespace}{" "}{.status.packageJob.name}{"\n"}'
kubectl -n <job-namespace> get job <job-name> -o yaml
kubectl -n <job-namespace> logs job/<job-name>
Find artifact ConfigMap:
kubectl get fe <name> -o jsonpath='{.status.artifact.storage.ref.namespace}{" "}{.status.artifact.storage.ref.name}{" "}{.status.artifact.storage.key}{"\n"}'
kubectl -n <artifact-namespace> get cm <artifact-configmap-name> -o yaml
Force a rebuild:
kubectl annotate fe <name> frontend-forge.kubesphere.io/rebuild-token="$(date +%s)" --overwrite
Inspect publish or unpublish J
常见问题
智能体在哪个集群上工作?
它使用你的 kubectl 上下文所指向的集群,因此你应先确认该上下文。
这个技能会创建运行时包吗?
不会。该技能说明,打包和发布不会在当前集群中创建运行时包。
它能处理其他类型的扩展吗?
不能。对于 FrontendIntegration 资源,该技能会指引你使用单独的集成技能。
详情
作者的原始描述
Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, download packages, publish, unpublish, delete, and debug package/publish controller behavior. Use this skill whenever the user mentions FE operations, FrontendExtension lifecycle, extension package/download/publish/unpublish, artifact ConfigMaps, package Jobs, publisher Jobs, publish target ConfigMaps or Secrets, rebuild-token, package-state/publish-state labels, or troubleshooting FE status in a Kubernetes cluster.
repo: kubesphere/kubesphere
热度
- GitHub 星标
- 17k
- 排名
- #10762
- 许可证
- —
- 更新时间
- 2026/7/14
评论
- …
同一仓库的更多技能
frontend-forge-fi-operations
17k帮你的智能体在 KubeSphere 中创建、更新、启用、禁用和检查 FrontendIntegration 资源及 frontend-forge 扩展。
frontend-integration-yaml
17k帮你的智能体为一个菜单及其一个或多个页面,创建可直接提交的 FrontendIntegration YAML。
kubeeye
17k帮你的智能体安装 KubeEye,设置集群巡检规则和计划,并阅读巡检报告。
kubesphere-cluster-management
17k让你的智能体查看 KubeSphere 集群列表、状态、详情和版本信息,且不做任何更改。