dot-ai-port-setup
Set up Port integrations to sync Kubernetes resources and GitHub Actions to Port.io
от vfarcic★ 49 звёзд на GitHub
Установить dot-ai-port-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup Port Integrations
Set up Port integrations to sync Kubernetes resources and GitHub Actions to Port.io.
Prerequisites
Check the following and instruct the user to install/configure if missing:
- kubectl - installed and configured with cluster access
- helm - installed (for checking chart versions)
- gh - GitHub CLI installed and authenticated
- Environment variables set:
PORT_CLIENT_IDPORT_CLIENT_SECRET
General Guidelines
- Always check latest versions of third-party tools (Helm charts, GitHub Actions, etc.) before creating manifests. Use
helm search repoor check the official documentation. - Consult Port MCP tools when in doubt - use them to explore existing blueprints, entities, actions, and integrations.
- Validate each step before moving to the next - verify resources are created, synced, and working as expected.
- User actions vs automated: Some steps require user action (marked with "User action required") - present these as instructions, then STOP and wait for user confirmation before proceeding to the next step.
Step 0: Discover Environment
Before starting, discover what tools are available and gather configuration:
- GitOps Tool: Check for ArgoCD (
argocdnamespace) or Flux (flux-systemnamespace) - ESO: Check for External Secrets Operator CRD and available ClusterSecretStores
- Manifest directory: Ask the user where manifests should be stored (e.g.,
apps/,manifests/,k8s/)
| GitOps Tool | Deployment Method | Self-Service Actions |
|---|---|---|
| ArgoCD | ArgoCD Application manifests in Git | Commit YAML to Git → ArgoCD syncs |
| Flux | Flux HelmRelease/Kustomization in Git | Commit YAML to Git → Flux syncs |
| Neither | Manifests in Git + kubectl apply |
Commit YAML to Git → kubectl apply |
| ESO Status | Secrets Method |
|---|---|
| Installed with ClusterSecretStore | Use ExternalSecret to pull from secret manager |
| Not installed | Create Secret directly with kubectl create secret |
Note: Always store manifests in Git for auditability, regardless of GitOps availability.
GitOps Workflow Rules
IMPORTANT: When ArgoCD or Flux is detected, NEVER run kubectl apply on application manifests.
Instead, follow this workflow:
- Write manifests to Git - Create the YAML files in the manifest directory
- Commit and push - The GitOps tool will detect changes and sync automatically
- Verify sync status - Use
kubectl get applications -n argocd(ArgoCD) orflux get all(Flux)
For GitOps resources (ArgoCD Applications, Flux Kustomizations/HelmReleases):
- Discover the deployment pattern by examining existing resources in the cluster
- Add new manifests to the appropriate watched directory so GitOps syncs them automatically
For Secrets without ESO:
- Use
kubectl create secretdirectly (secrets cannot be stored unencrypted in Git)
Part 1: Kubernetes Exporter
Step 1: Create Port Credentials Secret
Create a Secret named port-credentials in the port-k8s-exporter namespace with keys PORT_CLIENT_ID and PORT_CLIENT_SECRET.
- With ESO: Create an ExternalSecret referencing the available ClusterSecretStore
- Without ESO: Create the Secret directly with
kubectl create secret
Step 2: Deploy the K8s Exporter
Deploy the port-k8s-exporter Helm chart from https://port-labs.github.io/helm-charts.
Key Helm values:
secret.useExistingSecret: trueandsecret.name: port-credentialsoverwriteConfigurationOnRestart: true(forces use of configMap config)stateKeyandextraEnv[].CLUSTER_NAMEset to cluster identifierconfigMap.configwith resource mappings (see Step 4)
Deployment method based on discovery:
- ArgoCD: Create ArgoCD Application manifest
- Flux: Create HelmRepository + HelmRelease manifests
- Neither: Run
helm installthen commit values to Git
Step 3: Create Blueprints in Port
Default blueprints (always created by the exporter):
cluster(Port concept, not a K8s resource)namespace(from namespaces)workload(from deployments, daemonsets, statefulsets)
Discover and recommend:
- Run
kubectl api-resourcesto list all available resources - Exclude resources already covered by defaults (namespaces, deployments, daemonsets, statefulsets)
- Present findings to the user with recommendations
- Let user select which additional resources to track
Create selected blueprints using Port MCP tools. All blueprints should have:
- Relation to
namespaceblueprint creationTimestampproperty
Step 4: Configure Resource Mappings
In the Helm values configMap.config, define mappings for the resources selected in Step 3.
For nested resources (arrays inside a resource spec), use itemsToParse:
- kind: your.api/v1/yourresource
selector:
query: "true"
port:
itemsToParse: .spec.items
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dot-ai-port-setup?
Set up Port integrations to sync Kubernetes resources and GitHub Actions to Port.io
Как установить скилл dot-ai-port-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dot-ai-port-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…