Agent Skills
› opskat/opskat
› k8s
k8s
GitHub通过执行 kubectl 命令管理 Kubernetes 资源,支持自动使用存储的 kubeconfig、默认上下文/命名空间及 SSH 跳板机隧道功能。
Trigger Scenarios
需要查看或操作 K8s 集群资源
执行 kubectl 相关运维指令
Install
npx skills add opskat/opskat --skill k8s -g -y
SKILL.md
Frontmatter
{
"name": "k8s",
"description": "Run kubectl commands against a Kubernetes asset via exec. Covers command syntax and the stored kubeconfig \/ jump-host behavior."
}
Kubernetes assets
Command syntax
Pass the kubectl command as command, with or without the leading kubectl:
get pods -Adescribe pod api-0 -n prodlogs deploy/api --tail 100kubectl get nodes -o wide
Notes
- The asset's stored kubeconfig is used automatically. Do not pass
--kubeconfig. - The asset's default context and namespace are applied when the command does not specify them.
- If the asset has an SSH jump host configured, kubectl runs on that host; otherwise it runs locally.
- The
scopeparameter is not used by Kubernetes assets.
Asset config (for put_asset)
| field | type | required | notes |
|---|---|---|---|
kubeconfig |
string | yes | Full kubeconfig YAML content; stored encrypted |
namespace |
string | no | Default namespace; must not contain whitespace or start with - |
context |
string | no | Kubeconfig context to use; same character restrictions as namespace |
ssh_asset_id |
number | no | SSH asset to tunnel through; 0 detaches |
Version History
- aeb4bc3 Current 2026-07-24 16:28


