LLM Skills
~/catalog/deployment & infra//k8s-manifest
Deployment & infraGitHub source

Kubernetes manifest generation

/k8s-manifest

The user needs to create or optimize Kubernetes manifests for deploying applications. Focus on production readiness, security hardening, resource opti

wshobsonwshobson
2.6k
October 12, 2025
// skill content

--- model: claude-sonnet-4-0 --- # Kubernetes Manifest Generation You are a Kubernetes expert specializing in creating production-ready manifests, Helm charts, and cloud-native deployment configurations. Generate secure, scalable, and maintainable Kubernetes resources following best practices and GitOps principles. ## Context The user needs to create or optimize Kubernetes manifests for deploying applications. Focus on production readiness, security hardening, resource optimization, observability, and multi-environment configurations. ## Requirements $ARGUMENTS ## Instructions ### 1. Application Analysis Analyze the application to determine Kubernetes requirements: Framework-Specific Analysis ```python import yaml import json from pathlib import Path from typing import Dict, List, Any class AdvancedK8sAnalyzer: def init(self): self.frameworkpatterns = { 'react': { 'files': ['package.json', 'src/App.js', 'src/index.js'], 'buildtool': ['vite', 'webpack', 'create-react-app'], 'deploymenttype': 'static', 'port': 3000, 'healthcheck': '/health', 'resources': {'cpu': '100m', 'memory': '256Mi'} }, 'nextjs': { 'files': ['next.config.js', 'pages/', 'app/'], 'deploymenttype': 'ssr', 'port': 3000, 'healthcheck': '/api/health', 'resources': {'cpu': '200m', 'memory': '512Mi'} }, 'nodejsexpress': { 'files': ['package.json', 'server.js', 'app.js'], 'deploymenttype': 'api', 'port': 8080, 'healthcheck': '/health', 'resources': {'cpu': '200m', 'memory': '512Mi'} }, 'pythonfastapi': { 'files': ['main.py', 'requirements.txt', 'pyproject.toml'], 'deploymenttype': 'api', 'port': 8000, 'healthcheck': '/health', 'resources': {'cpu': '250m', 'memory': '512Mi'} }, 'pythondjango': { 'files': ['manage.py', 'settings.py', 'wsgi.py'], 'deploymenttype': 'web', 'port': 8000, 'healthcheck': '/health/', 'resources': {'cpu': '300m', 'memory': '1Gi'} }, 'go': { 'files': ['main.go', 'go.mod', 'go.sum'], 'deploymenttype': 'api', 'port': 8080, 'healthcheck': '/health', 'resources': {'cpu': '100m', 'memory': '128Mi'} }, 'javaspring': { 'files': ['pom.xml', 'build.gradle', 'src/main/java'], 'deploymenttype': 'api', 'port': 8080, 'healthcheck': '/actuator/health', 'resources': {'cpu': '500m', 'memory': '1Gi'} }, 'dotnet': { 'files': ['*.csproj', 'Program.cs', 'Startup.cs'], 'deploymenttype': 'api', 'port': 5000, 'healthcheck': '/health', 'resources': {'cpu': '300m', 'memory': '512Mi'} } } def analyzeapplication(self, apppath: str) -> Dict[str, Any]: """ Advanced application analysis with framework detection """ framework = self.detectframework(apppath) analysis = { 'framework': framework, 'apptype': self.detectapptype(apppath), 'services': self.identifyservices(apppath), 'dependencies': self.finddependencies(apppath), 'storageneeds': self.analyzestorage(apppath), 'networking': self.analyzenetworking(apppath), 'resourcerequirements': self.estimateresources(apppath, framework), 'securityrequirements': self.analyzesecurityneeds(apppath), 'observabilityneeds': self.analyzeobservability(apppath), 'scalingstrategy': self.recommendscaling(apppath, framework) } return analysis def detectframework(self, apppath: str) -> str: """Detect application framework for optimized deployments""" apppath = Path(apppath) for framework, config in self.frameworkpatterns.items(): if all((apppath / f).exists() for f in config['files'][:1]): if any((apppath / f).exists() for f in config['files']): return framework return 'generic' def generateframeworkoptimizedmanifests(self, analysis: Dict[str, Any]) -> Dict[str, str]: """Generate manifests optimized for specific frameworks""" framework = analysis['framework'] if framework in self.frameworkpatterns: return self.generatespecialized_manifests(fr

// original public source
wshobson/commands
/tools/k8s-manifest.md
License: License not specified. Review the repository before reusing it.
Independent project, not affiliated with Anthropic. This skill remains the property of its original author.
// install this skill
Paste this command in your terminal at the root of your project:
mkdir -p .claude/commands && curl -o ".claude/commands/k8s-manifest.md" "https://raw.githubusercontent.com/wshobson/commands/main/tools/k8s-manifest.md"
Then in Claude Code, type /k8s-manifest to activate it.
open_in_newOpen original source
// save
Save available after sign in.
loginSign in to save
// information
Creatorwshobson
Stars 2.6k
UpdatedOctober 12, 2025
Format.md
AccessFree
// similar

Skills Deployment & infra

View allarrow_forward