用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vfarcic/dot-ai-controller --skill dot-ai-port-destroy命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | dot-ai-port-destroy |
| description | Remove all Port integrations, Kubernetes resources, and local files created by /port-setup |
| user-invocable | true |
Remove all Port integrations, Kubernetes resources, and local files created by /port-setup.
Check the following and instruct the user to install/configure if missing:
PORT_CLIENT_IDPORT_CLIENT_SECRETBefore destroying, discover what exists and how it was deployed:
argocd namespace) or Flux (flux-system namespace)apps/port-*.yaml).github/workflows/port-*.yaml) and repository secretsIMPORTANT: When ArgoCD or Flux is detected, deletions must go through Git first.
This order ensures the exporter stops syncing before you delete resources in Port.
Critical: Delete the K8s exporter FIRST to stop new entities from being synced to Port.
Check deployment method and delete accordingly:
With ArgoCD/Flux (GitOps):
rm <manifest-dir>/port-k8s-exporter.yaml
git add -A && git commit -m "Remove port-k8s-exporter" && git push
kubectl get ns port-k8s-exporter should return not foundkubectl delete ns port-k8s-exporterWith Helm directly (non-GitOps):
helm uninstall port-k8s-exporter -n port-k8s-exporter
kubectl delete secret port-credentials -n port-k8s-exporter
kubectl delete externalsecret port-credentials -n port-k8s-exporter # if using ESO
kubectl delete namespace port-k8s-exporter
Delete all self-service actions created for CRDs. Do this BEFORE deleting blueprints since actions reference blueprints.
mcp__port-vscode-eu__list_actions to find actions with identifiers matching patterns:
create_*, update_*, delete_*mcp__port-vscode-eu__delete_actionDelete the blueprints created during setup from the Data Model page.
Steps:
mcp__port-vscode-eu__list_blueprints to discover which blueprints exist/port-setup (exclude system blueprints starting with _ and the defaults: cluster, namespace, workload)STOP and wait for user confirmation before proceeding.
Look for Port-related workflows and delete them:
rm .github/workflows/port-*.yaml
gh secret delete PORT_CLIENT_ID
gh secret delete PORT_CLIENT_SECRET
gh secret delete KUBE_CONFIG # if created
Commit and push the deletions:
git add -A && git commit -m "Remove Port self-service workflows" && git push
If user wants to remove GitHub integration:
After cleanup, verify:
kubectl get ns port-k8s-exporter returns not found