cloud-native
FreeNo executable scriptsNot checkedGeneric Cloud-Native Deployment and Infrastructure as Code patterns for 2025. Provides comprehensive implementation strategies for multi-cloud deployments…
by aiskillstore★ 509 GitHub starsAbout this skill
Cloud-Native Deployment & Infrastructure Patterns
This skill provides comprehensive patterns for implementing cloud-native deployments using modern Infrastructure as Code, GitOps workflows, and progressive delivery strategies. The patterns are designed to be framework-agnostic and applicable across any cloud provider or orchestration platform.
When to Use This Skill
Use this skill when you need to:
- Implement Infrastructure as Code with any provider (Terraform, Pulumi, CDK)
- Build GitOps workflows with Argo CD, Flux, or similar tools
- Create multi-cloud or hybrid deployment strategies
- Implement progressive delivery (canary, blue-green)
- Build internal developer platforms
- Set up policy as code and compliance automation
- Implement zero-trust security architectures
- Create disaster recovery and failover strategies
- Optimize costs across multiple providers
- Build observability into deployments
1. Infrastructure as Code Patterns
Generic IaC Abstraction Layer
# iac/core/abstraction.py
from abc import ABC, abstractmethod
from typing import Dict, List, Any, Optional, Union
from dataclasses import dataclass, field
from enum import Enum
from pathlib import Path
import json
import yaml
import asyncio
from datetime import datetime
class IaCProvider(str, Enum):
"""Supported IaC providers"""
TERRAFORM = "terraform"
PULUMI = "pulumi"
CDK = "cdk"
CROSSPLANE = "crossplane"
class CloudProvider(str, Enum):
"""Cloud providers"""
AWS = "aws"
AZURE = "azure"
GCP = "gcp"
DIGITALOCEAN = "digitalocean"
ON_PREM = "on-prem"
@dataclass
class Resource:
"""Generic resource definition"""
type: str
name: str
properties: Dict[str, Any] = field(default_factory=dict)
dependencies: List[str] = field(default_factory=list)
provider: Optional[CloudProvider] = None
tags: Dict[str, str] = field(default_factory=dict)
@dataclass
class InfrastructureConfig:
"""Infrastructure configuration"""
name: str
environment: str
provider: CloudProvider
region: str
resources: List[Resource] = field(default_factory=list)
variables: Dict[str, Any] = field(default_factory=dict)
outputs: Dict[str, str] = field(default_factory=dict)
class IaCBackend(ABC):
"""Abstract IaC backend interface"""
@abstractmethod
async def initialize(self, config: InfrastructureConfig) -> None:
"""Initialize IaC backend"""
pass
@abstractmethod
async def plan(self, config: InfrastructureConfig) -> Dict[str, Any]:
"""Generate execution plan"""
pass
@abstractmethod
async def apply(self, config: InfrastructureConfig) -> Dict[str, Any]:
"""Apply infrastructure changes"""
pass
@abstractmethod
async def destroy(self, config: InfrastructureConfig) -> Dict[str, Any]:
"""Destroy infrastructure"""
pass
@abstractmethod
async def output(self, config: InfrastructureConfig, key: str) -> Any:
"""Get output value"""
pass
@abstractmethod
async def validate(self, config: InfrastructureConfig) -> List[str]:
"""Validate configuration"""
pass
class TerraformBackend(IaCBackend):
"""Terraform backend implementation"""
def __init__(self, working_dir: Path):
self.working_dir = working_dir
self.state_backend: Optional[str] = None
async def initialize(self, config: InfrastructureConfig) -> None:
"""Initialize Terraform"""
# Generate Terraform files
await self._generate_terraform_files(config)
# Run terraform init
cmd = ["terraform", "init"]
result = await self._run_command(cmd, cwd=self.working_dir)
if result["returncode"] != 0:
raise RuntimeError(f"Terraform init failed: {result['stderr']}")
async def plan(self, config: InfrastructureConfig) -> Dict[str, Any]:
"""Generate Terraform plan"""
cmd = ["terraform", "plan", "-out=tfplan", "-json"]
result = await self._run_command(cmd, cwd=self.working_dir)
return {
"success": result["returncode"] == 0,
"plan_file": self.working_dir / "tfplan",
"output": result["stdout"],
"changes": json.loads(result["stdout"]) if result["stdout"] else {}
}
async def apply(self, config: InfrastructureConfig) -> Dict[str, Any]:
"""Apply Terraform changes"""
cmd = ["terraform", "apply", "-auto-approve", "-json", "tfplan"]
result = await self._run_command(cmd, cwd=self.working_dir)
return {
"success": result["returncode"] == 0,
"output": result["stdout"],
"applied_at": datetime.utcnow().isoformat()
}
async def destroy(self, config: InfrastructureConfig) -> Dict[str, Any]:
"""Destroy Terraform resources"""
cmd = ["terraform", "destroy", "-auto-approve", "-json"]
result = await self._run_command(cm
Install cloud-native in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the cloud-native skill do?
Generic Cloud-Native Deployment and Infrastructure as Code patterns for 2025. Provides comprehensive implementation strategies for multi-cloud deployments, GitOps workflows, progressive delivery, and platform engineering. Framework-agnostic approach supporting any cloud provider, deployment tool, and orchestration platform.
How do I install the cloud-native skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the cloud-native skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic