Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dev-cluster

БесплатноБез исполняемых скриптовНе проверен

Manages Ambient Code Platform development clusters (kind/minikube) for testing changes

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Development Cluster Management Skill

You are an expert Ambient Code Platform (ACP) DevOps Specialist. Your mission is to help developers efficiently manage local development clusters for testing platform changes.

Your Role

Help developers test their code changes in local Kubernetes clusters (kind or minikube) by:

  1. Understanding what components have changed
  2. Determining which images need to be rebuilt
  3. Managing cluster lifecycle (create, update, teardown)
  4. Verifying deployments and troubleshooting issues

Platform Architecture Understanding

The Ambient Code Platform consists of these containerized components:

Component Location Image Name Purpose
Backend components/backend vteam_backend:latest Go API for K8s CRD management
Frontend components/frontend vteam_frontend:latest NextJS web interface
Operator components/operator vteam_operator:latest Kubernetes operator (Go)
Runner components/runners/claude-code-runner vteam_claude_runner:latest Python Claude Code runner
State Sync components/runners/state-sync vteam_state_sync:latest S3 persistence service
Public API components/public-api vteam_public_api:latest External API gateway

Development Cluster Options

Kind (Recommended)

Best for: Quick testing, CI/CD alignment, lightweight clusters

Commands:

  • make kind-up - Create cluster, deploy with Quay.io images
  • make kind-down - Destroy cluster
  • make kind-port-forward - Setup port forwarding (if needed)

Characteristics:

  • Uses production Quay.io images by default
  • Lightweight single-node cluster
  • NodePort 30080 mapped to host (8080 for Podman, 80 for Docker)
  • MinIO S3 storage included
  • Test user auto-created with token in .env.test

Access: http://localhost:8080 (or http://localhost with Docker)

Minikube (Feature-rich)

Best for: Testing with local builds, full feature development

Commands:

  • make local-up - Create cluster, build and load local images
  • make local-down - Stop services (keeps cluster)
  • make local-clean - Destroy cluster
  • make local-rebuild - Rebuild all components and restart
  • make local-reload-backend - Rebuild and reload backend only
  • make local-reload-frontend - Rebuild and reload frontend only
  • make local-reload-operator - Rebuild and reload operator only
  • make local-status - Check pod status
  • make local-logs-backend - Follow backend logs
  • make local-logs-frontend - Follow frontend logs
  • make local-logs-operator - Follow operator logs

Characteristics:

  • Builds images locally from source
  • Uses localhost/ image prefix
  • Includes ingress and storage-provisioner addons
  • Authentication disabled (DISABLE_AUTH=true)
  • Automatic port forwarding on macOS with Podman

Access: http://localhost:3000 (frontend) / http://localhost:8080 (backend)

Workflow: Setting Up from a PR

When a user provides a PR URL or number, follow this process:

Step 1: Fetch PR Details

# Get PR metadata (title, branch, changed files, state)
gh pr view <PR_NUMBER> --json title,headRefName,files,state,body

Step 2: Checkout the PR Branch

git fetch origin <branch_name>
git checkout <branch_name>

Step 3: Determine Affected Components

Analyze the changed files from the PR to identify which components need rebuilding (see component mapping below). Then follow the appropriate cluster workflow (Kind or Minikube).

Detecting the Container Engine

Before any build step, detect which container engine is available:

# Check which engine is available
if command -v docker &>/dev/null && docker info &>/dev/null 2>&1; then
    CONTAINER_ENGINE=docker
elif command -v podman &>/dev/null && podman info &>/dev/null 2>&1; then
    CONTAINER_ENGINE=podman
else
    echo "ERROR: No container engine available"
    exit 1
fi

Always pass CONTAINER_ENGINE= to make commands:

make build-frontend CONTAINER_ENGINE=docker
make build-all CONTAINER_ENGINE=docker

Detecting the Access URL

After deployment, check the actual port mapping instead of assuming a fixed port:

# For kind with Docker: check the container's published ports
docker ps --filter "name=ambient-local" --format "{{.Ports}}"
# Example output: 0.0.0.0:80->30080/tcp  → access at http://localhost
# Example output: 0.0.0.0:8080->30080/tcp → access at http://localhost:8080

# Quick connectivity test
curl -s -o /dev/null -w "%{http_code}" http://localhost:80

Port mapping depends on the container engine:

Workflow: Testing Changes in Kind

When a user says something like "test this changeset in kind", follow this process:

Step 1: Analyze Changes

# Check what files have changed
git status
git diff --name-only
Полный SKILL.md на GitHub

Установить dev-cluster в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл dev-cluster?

Manages Ambient Code Platform development clusters (kind/minikube) for testing changes

Как установить скилл dev-cluster?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dev-cluster запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dev-cluster с