frontend-forge-fe-operโฆ
Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, downloadโฆ
Use when managing credentials in KubeSphere DevOps, including repository credentials, kubeconfig, and API tokens
Claude Code
$ npx -y skills add kubesphere/kubesphere --skill kubesphere-devops-credentials --agent claude-code
Codex
$ npx skills add kubesphere/kubesphere --skill kubesphere-devops-credentials -a codex -y
Cursor
$ npx skills add kubesphere/kubesphere --skill kubesphere-devops-credentials -a cursor -y
Gemini CLI
$ npx skills add kubesphere/kubesphere --skill kubesphere-devops-credentials -a gemini-cli -y
GitHub Copilot
$ npx skills add kubesphere/kubesphere --skill kubesphere-devops-credentials -a github-copilot -y
OpenCode
$ npx skills add kubesphere/kubesphere --skill kubesphere-devops-credentials -a opencode -y
Windsurf
$ npx skills add kubesphere/kubesphere --skill kubesphere-devops-credentials -a windsurf -y
name: kubesphere-devops-credentials description: Use when managing credentials in KubeSphere DevOps, including repository credentials, kubeconfig, and API tokens
Credentials in KubeSphere DevOps are Kubernetes Secrets with specific labels and annotations. They are synced to Jenkins for use in pipelines. Supported types include SSH keys, username/password, and secret tokens.
| Type | Use Case | Secret Key | |------|----------|------------| | **SSH** | Git repositories | `username`, `privatekey` | | **Basic** | Username/password | `username`, `password` | | **Secret** | API tokens, secrets | `secret` | | **Kubeconfig** | Kubernetes clusters | `kubeconfig` (v1.1.x only) | | **SSH Username/Pass** | Git with user/pass | `username`, `password` | | **String** | Generic text/tokens | `secret` |
Credentials are stored as Kubernetes Secrets with DevOps labels:
apiVersion: v1
kind: Secret
metadata:
name: my-credential
namespace: project-xxx # DevOps project namespace
labels:
devops.kubesphere.io/credential: "true"
annotations:
credential.devops.kubesphere.io/syncstatus: successful
credential.devops.kubesphere.io/type: ssh|basic-auth|secret-text
stringData:
username: git-user
privatekey: |
-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----
type: credential.devops.kubesphere.io/ssh # CRITICAL: Must use credential.devops.kubesphere.io/* type, NOT Opaque!**โ ๏ธ CRITICAL: Secret Type Must Be `credential.devops.kubesphere.io/*`**
The `type` field must be one of:
**Using `type: Opaque` will result in:**
**Controller Logic:** The credential controller only watches secrets with types starting with `credential.devops.kubesphere.io/` (see `devopscredential_controller.go` line 102). Secrets with `type: Opaque` are completely ignored.
| Operation | Method | Endpoint | |-----------|--------|----------| | List Credentials | GET | `/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials` | | Create Credential | POST | `/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials` | | Get Credential | GET | `/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials/{credential}` | | Update Credential | PUT | `/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials/{credential}` | | Delete Credential | DELETE | `/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials/{credential}` | | Get Usage | GET | `/kapis/devops.kubesphere.io/v1alpha2/namespaces/{devops}/credentials/{credential}/usage` |
curl "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
-H "Authorization: Bearer $TOKEN"curl -X POST "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"apiVersion": "v1",
"kind": "Secret",
"metadata": {
"name": "github-ssh-key",
"annotations": {
"credential.devops.kubesphere.io/type": "ssh"
}
},
"stringData": {
"username": "git",
"privatekey": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----"
},
"type": "credential.devops.kubesphere.io/ssh-auth"
}'curl -X POST "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"apiVersion": "v1",
"kind": "Secret",
"metadata": {
"name": "docker-registry",
"annotations": {
"credential.devops.kubesphere.io/type": "basic-auth"
}
},
"stringData": {
"username": "docker-user",
"password": "docker-password"
},
"type": "credential.devops.kubesphere.io/basic-auth"
}'**Best Practice:** Use `basic-auth` type for Git access tokens:
# For GitHub/GitLab access tokens
curl -X POST "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"apiVersion": "v1",
"kind": "Secret",
"metadata": {
"name": "github-token",
"annotations": {
"credential.devops.kubesphere.io/type": "basic-auth"
}
},
"stringData": {
"username": "git", # Can be any value for token auth
"password": "ghp_xxxxxxxxxx" # Your GitHub/GitLab access token
},
"type": "credential.devops.kubesphere.io/basic-auth"
}'**Why basic-auth for tokens?**
**Supported Git Providers:**
curl -X POST "https://kubesphere-api/kapis/devops.kub
The container platform tailored for Kubernetes multi-cloud, datacenter, and edge management โ ๐ฅ โ๏ธ
Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, downloadโฆ
Operate FrontendIntegration resources and the frontend-forge extension. Use when Codex needs to create a FrontendIntegration fromโฆ
Generate canonical FrontendIntegration YAML from a simplified single-menu authoring model for frontend-forge.
Use when deploying KubeEye for cluster inspection, creating InspectRule/InspectPlan resources, or retrieving inspection results.โฆ
KubeSphere cluster query Skill (read-only). Use when user requests to view cluster list, cluster status, cluster details, orโฆ
KubeSphere central controller Skill. Routes to specific Skills based on user requests: multi-cluster managementโฆ
Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,โฆ
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC โ oneโฆ
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
Use when writing, reviewing, or debugging Terraform/OpenTofu modules, tests, CI, scans, or state ops - diagnoses failure modeโฆ