kagent
БесплатноБез исполняемых скриптовНе проверенKubernetes-native AI agent framework for building, deploying, and managing AI agents on Kubernetes. This skill should be used when deploying AI agents as…
от mjunaidca★ 27 звёзд на GitHubОб этом скилле
Kagent Skill
Overview
Kagent is a Kubernetes-native framework for building, deploying, and managing AI agents. It uses Custom Resource Definitions (CRDs) to define agents as Kubernetes resources, enabling declarative AI agent management with full K8s integration.
Key Concepts
What Kagent Provides
- Kubernetes-Native Agents: Define AI agents as CRDs
- Cluster Analysis: AI-powered health checks and optimization
- Extensibility: Custom tools and integrations
- Observability: Full visibility into agent operations
Architecture
┌─────────────────────────────────────────────────────┐
│ Kubernetes Cluster │
│ ┌─────────────────┐ ┌─────────────────────────┐ │
│ │ Kagent │ │ Custom Resources │ │
│ │ Controller │───▶│ - Agent │ │
│ │ │ │ - Tool │ │
│ │ │ │ - Model │ │
│ └─────────────────┘ └─────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ AI Agent Pods │ │
│ │ - Execute kubectl commands │ │
│ │ - Analyze resources │ │
│ │ - Report findings │ │
│ └─────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────┘
Installation
Prerequisites
- Kubernetes cluster (Minikube, kind, or cloud)
- kubectl configured
- Go 1.21+ (for building from source)
Install from Bundle
# Install CRDs and controller
kubectl apply -f https://raw.githubusercontent.com/kagent-dev/kagent/main/dist/install.yaml
Build from Source
# Clone repository
git clone https://github.com/kagent-dev/kagent.git
cd kagent/go
# Install CRDs
make install
# Deploy controller
make deploy
Build Installer Bundle
# Generate consolidated install.yaml
make build-installer
Usage
Basic Kubernetes Operations
Kagent agents can execute standard kubectl commands:
# Resource listing
kubectl get pods -n namespace
kubectl get deployments -n namespace
kubectl get services -n namespace
# Detailed listing
kubectl get pods -n namespace -o wide
kubectl get nodes -o wide
Resource Inspection
# Describe resources
kubectl describe pod podname -n namespace
kubectl describe deployment deployname -n namespace
kubectl describe service servicename -n namespace
# Get full YAML
kubectl get configmap configname -n namespace -o yaml
kubectl get secret secretname -n namespace -o yaml
Health and Status Queries
# Component health
kubectl get componentstatuses
kubectl get nodes -o wide
# Resource status
kubectl get deployments -n namespace -o wide
kubectl get pods -n namespace -o wide
Advanced Operations
# Node management
kubectl drain <node>
kubectl cordon/uncordon <node>
# Port forwarding
kubectl port-forward svc/my-service 8080:80
# Authorization checks
kubectl auth can-i create pods
# Debugging
kubectl debug pod/my-pod --image=busybox
Diagnostic Tools
Kagent agents have access to:
| Tool | Purpose |
|---|---|
crictl |
Container runtime interface |
kubelet logs |
Node-level logs |
journalctl |
System logs |
tcpdump |
Network diagnostics |
netstat |
Connection status |
Use Cases for TaskFlow
1. Cluster Health Analysis
Use kagent to analyze overall cluster health before deployment:
kagent "analyze the cluster health and report any issues"
kagent "check if there are sufficient resources for 5 new pods"
2. Resource Optimization
kagent "identify pods without resource limits"
kagent "find over-provisioned deployments"
kagent "recommend resource adjustments based on actual usage"
3. Security Audit
kagent "find pods running as root"
kagent "identify services exposed without ingress"
kagent "check for secrets mounted as environment variables"
4. Troubleshooting
kagent "why are pods in namespace X failing?"
kagent "analyze network connectivity between services"
kagent "find the root cause of OOMKilled pods"
Custom Resource Definitions
Agent CRD Example
apiVersion: kagent.dev/v1alpha1
kind: Agent
metadata:
name: cluster-analyzer
namespace: kagent-system
spec:
model:
provider: openai
name: gpt-4
tools:
- kubectl
- helm
systemPrompt: |
You are a Kubernetes cluster analyzer.
Focus on identifying resource issues and optimization opportunities.
Tool CRD Example
apiVersion: kagent.dev/v1alpha1
kind: Tool
metadata:
name: kubectl-tool
spec:
type: kubectl
permissions:
- get
- list
- describe
namespaces:
- default
- production
Integration wit
Установить kagent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл kagent?
Kubernetes-native AI agent framework for building, deploying, and managing AI agents on Kubernetes. This skill should be used when deploying AI agents as Kubernetes resources, analyzing cluster health with AI, and automating complex K8s operations. Use this skill for Phase IV advanced AIOps and agent-based cluster management.
Как установить скилл kagent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл kagent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub