agentsclimarketplace

Cloud native

Skill iceflower/agent-skills/cloud-native

Agent Skills 오픈 표준 기반 AI 코딩 에이전트용 스킬 컬렉션 (Java, Kotlin, Spring, NestJS, K8s, Terraform, GraphQL, gRPC, OpenTelemetry, a11y, i18n 등 60개)

Install
npx -y skills add iceflower/agent-skills --skill cloud-native

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Cloud native application design principles based on the Twelve-Factor App methodology and CNCF patterns including codebase management, dependency isolation, config externalization, backing services, build-release-run separation, stateless processes, port binding, concurrency via process model, disposability, dev/prod parity, log streaming, and admin processes. Extends to 15-Factor with API-first design, telemetry, and security. Covers AWS/GCP/Azure Well-Architected frameworks. Use when designing cloud native applications, reviewing application architecture for cloud readiness, or applying twelve-factor principles to existing applications.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

17.0 KB, as published. Nobody here has run it

Cloud Native / Twelve-Factor App Rules

1. Twelve-Factor App Principles

The Twelve-Factor App methodology defines a set of principles for building modern, portable, and scalable applications. Each factor addresses a specific aspect of application design and deployment.

Factor Overview

#FactorCore Rule
1CodebaseOne codebase tracked in VCS, many deploys
2DependenciesExplicitly declare and isolate dependencies
3ConfigStore config in the environment
4Backing ServicesTreat backing services as attached resources
5Build/Release/RunStrictly separate build and run stages
6ProcessesExecute the app as one or more stateless processes
7Port BindingExport services via port binding
8ConcurrencyScale out via the process model
9DisposabilityMaximize robustness with fast startup and shutdown
10Dev/Prod ParityKeep development, staging, and production similar
11LogsTreat logs as event streams
12Admin ProcessesRun admin/management tasks as one-off processes

For detailed explanations, modern interpretations, and implementation examples of each factor, see references/twelve-factor-details.md.


Factor 1: Codebase

  • One application = one codebase in version control
  • Multiple deploys (staging, production, developer environments) come from the same codebase
  • Shared code must be extracted into libraries included via dependency management
  • Never maintain separate codebases for the same application across environments

Factor 2: Dependencies

  • Explicitly declare all dependencies using a manifest (e.g., package.json, build.gradle, requirements.txt, go.mod)
  • Use dependency isolation tools (e.g., virtual environments, containers) to prevent implicit system-wide dependencies
  • Never rely on system-level packages being pre-installed
  • Pin dependency versions for reproducible builds

Factor 3: Config

  • Store all environment-specific configuration in environment variables
  • Configuration includes: database URLs, credentials, per-deploy values, feature flags
  • Configuration does NOT include: internal application wiring, routing, or compile-time constants
  • Never commit credentials or environment-specific config to the codebase
  • The codebase should be open-sourceable at any time without exposing secrets

Factor 4: Backing Services

  • Treat all backing services (databases, message queues, caches, SMTP, object storage) as attached resources
  • Access via URL or locator stored in config -- no code change needed to swap a service
  • A deploy should be able to switch from a local database to a managed cloud database by changing config alone
  • No distinction between local and third-party services in the application code

Factor 5: Build, Release, Run

  • Build: Convert code into an executable artifact (compile, bundle assets, resolve dependencies)
  • Release: Combine the build artifact with environment config
  • Run: Launch the release in the execution environment
  • Every release must have a unique identifier (timestamp, version number, commit hash)
  • Builds must not depend on runtime config; runtime must not depend on build tools
  • Never modify code at runtime -- changes go through the build pipeline

Factor 6: Processes

  • Application processes are stateless and share-nothing
  • Any data that must persist is stored in a backing service (database, object storage)
  • Never assume in-memory state (sessions, caches) survives across requests or process restarts
  • Sticky sessions are a violation -- use a distributed session store if session state is needed

Factor 7: Port Binding

  • The application is self-contained and exports services by binding to a port
  • The application does not rely on runtime injection of a web server (e.g., deploying a WAR into Tomcat)
  • One application can become a backing service for another via its URL

Factor 8: Concurrency

  • Scale by running multiple processes, not by growing a single process (scale out, not up)
  • Assign different process types for different workloads (web, worker, scheduler)
  • Processes should never daemonize or manage their own PID files -- delegate to the platform

Factor 9: Disposability

  • Processes start quickly (seconds, not minutes)
  • Processes shut down gracefully on SIGTERM
  • Workers use reentrant, idempotent job designs so interrupted work can be safely retried
  • Handle crash recovery without data corruption

Factor 10: Dev/Prod Parity

  • Minimize gaps between development and production:
GapTraditional AppTwelve-Factor App
TimeWeeks between deploysHours between deploys
PersonnelDevs write, ops deploySame team writes and deploys
ToolsDifferent stacks per envSame backing services in all envs
  • Use the same type and version of backing services in all environments
  • Avoid "lightweight" substitutes in development (e.g., SQLite in dev, PostgreSQL in prod)

Factor 11: Logs

  • Treat logs as unbuffered event streams written to stdout
  • Never manage log files, rotation, or routing within the application
  • The execution environment captures, aggregates, routes, and archives log streams
  • Use structured logging (JSON) for machine-parseable output

Factor 12: Admin Processes

  • Run one-off tasks (database migrations, console REPL, data fixes) as processes in the same environment
  • Admin code ships with the application code to prevent version drift
  • Admin processes use the same config and dependency isolation as the application
  • Prefer idempotent admin tasks that can be safely re-run

2. Beyond Twelve-Factor: 15-Factor Principles

Modern cloud native applications extend the original twelve factors with three additional principles.

Factor 13: API First

  • Design APIs before writing implementation code
  • APIs are the primary interface contract between services
  • Use machine-readable API specifications (OpenAPI, AsyncAPI, gRPC proto files)
  • API versioning strategy must be decided and documented upfront
  • Internal and external APIs follow the same contract-first process

Factor 14: Telemetry

  • Every service must emit three pillars of observability:
PillarPurposeExamples
MetricsQuantitative health indicatorsRequest rate, error rate, latency
LogsDiscrete event recordsStructured JSON to stdout
TracesDistributed request flowOpenTelemetry spans
  • Health check endpoints are mandatory (/health, /ready)
  • Application performance monitoring (APM) must be built in, not bolted on
  • Correlation IDs must propagate across all service boundaries

Factor 15: Security

  • Authentication and authorization are infrastructure concerns, not afterthoughts
  • Apply zero-trust networking: verify every request regardless of source
  • Encrypt data in transit (TLS) and at rest
  • Manage secrets via secret management services, never in environment variables as plaintext files
  • Dependencies must be regularly scanned for known vulnerabilities
  • Apply principle of least privilege to all service accounts and IAM roles

3. Cloud Native Design Principles

CNCF Cloud Native Characteristics

CharacteristicDescription
Container-PackagedApplications are packaged as lightweight containers
Dynamically ManagedOrchestrated by a central scheduler (e.g., Kubernetes)
Microservices-OrientedComposed of loosely coupled, independently deployable services
Automation-CentricCI/CD, infrastructure as code, auto-scaling
ObservableBuilt-in metrics, logging, tracing
ResilientDesigned to handle failure gracefully

Cloud Native Design Rules

  • Design for failure: assume any component can fail at any time
  • Prefer horizontal scaling over vertical scaling
  • Use service meshes for cross-cutting concerns (mTLS, retries, circuit breaking)
  • Externalize state to managed services; compute layer must be stateless
  • Automate everything: deployment, scaling, recovery, security patching
  • Use declarative configuration over imperative scripts
  • Treat infrastructure as cattle, not pets -- replace, never repair

Resilience Patterns

PatternPurposeWhen to Apply
Circuit BreakerPrevent cascading failuresRemote service calls
Retry + BackoffHandle transient failuresNetwork calls, external APIs
BulkheadIsolate failures to a subset of resourcesThread pools, connection pools
TimeoutPrevent indefinite blockingAll remote calls
FallbackProvide degraded functionality when a service is downNon-critical feature dependencies
Health CheckDetect unhealthy instances for replacementEvery service, every container

Container Design Rules

  • One process per container (single concern)
  • Build immutable images -- never patch running containers
  • Use multi-stage builds to minimize image size and attack surface
  • Include health check instructions in the container definition
  • Run as non-root user
  • Do not store data inside the container filesystem

4. Well-Architected Framework Alignment

Cloud providers define Well-Architected frameworks that complement twelve-factor principles. The core pillars are consistent across providers.

PillarAWSGCPAzure
Operational ExcellenceAutomate operations, IaCAutomate operationsDevOps practices
SecurityDefense in depth, IAMBeyondCorp, IAMZero Trust, RBAC
ReliabilityAuto-recovery, multi-AZRegional redundancyAvailability Zones, DR
Performance EfficiencyRight-sizing, cachingRight-sizing, CDNAutoscale, CDN
Cost OptimizationRight-sizing, reservedCommitted use, preemptibleReserved, spot instances
SustainabilityResource efficiencyCarbon-aware schedulingCarbon optimization

For detailed comparisons and pillar-specific guidance, see references/well-architected-frameworks.md.


5. Anti-Patterns

Configuration Anti-Patterns

  • Hardcoded config: Database URLs, API keys, or feature flags embedded in source code
  • Config files per environment: Maintaining config.prod.json, config.dev.json in the codebase instead of using environment variables
  • Secrets in environment variables as files committed to VCS: .env files checked into version control

Statefulness Anti-Patterns

  • Local disk state: Writing user uploads, session data, or temp files to local disk and expecting persistence
  • In-memory session state: Storing sessions in process memory without a distributed store
  • Sticky sessions: Routing users to specific instances, preventing horizontal scaling

Deployment Anti-Patterns

  • Snowflake servers: Manually configured servers that cannot be reproduced
  • Mutable deployments: Patching running instances instead of deploying new releases
  • Missing build/release separation: Building artifacts on production servers
  • No rollback capability: Releases that cannot be reverted to a previous version

Observability Anti-Patterns

  • Log files on disk: Writing logs to local files instead of stdout
  • No structured logging: Freeform log messages that cannot be parsed or queried
  • Missing health checks: Services without liveness or readiness probes
  • No distributed tracing: Inability to follow a request across service boundaries

Dependency Anti-Patterns

  • Implicit dependencies: Relying on system packages or globally installed tools
  • Unpinned versions: Using latest tags or version ranges that can break builds
  • Vendoring without lockfiles: Copying dependencies without tracking exact versions

6. Implementation Checklist

Use this checklist when reviewing an application for cloud native readiness.

Essential (Must Have)

  • Single codebase in version control with CI/CD pipeline
  • All dependencies declared in a manifest with pinned versions
  • Configuration stored in environment variables or external config service
  • Backing services accessed via config-driven connection strings
  • Stateless processes with external state storage
  • Structured logging to stdout
  • Health check endpoints (/health, /ready)
  • Graceful shutdown on SIGTERM
  • Container image with non-root user
  • Secrets managed via secret manager (not in code or config files)

Recommended (Should Have)

  • API-first design with machine-readable specification
  • Distributed tracing with correlation ID propagation
  • Circuit breakers on all external service calls
  • Dev/prod parity for backing services
  • Immutable releases with unique identifiers
  • Horizontal scaling via process model
  • Automated rollback capability

7. Related Skills

Related SkillWhen to Reference
microservices skillService decomposition, communication patterns, saga, CQRS
clean-architectureLayered architecture, ports and adapters, dependency inversion
dockerfile skillContainer image best practices, multi-stage builds
k8s-workflow skillKubernetes deployment, health checks, resource management
helm-workflow skillHelm chart design for cloud native applications
terraform-workflowInfrastructure as code for cloud resource provisioning
gitops-argocd skillGitOps-based continuous deployment
observability skillMetrics, alerting, dashboards, SLI/SLO
logging skillStructured logging, log aggregation, log levels
secrets-managementSecret storage, rotation, access control
security skillOWASP Top 10, secure coding, vulnerability scanning
api-design skillAPI-first design, versioning, contract testing
system-designCAP theorem, consistency patterns, distributed consensus
ci-cd skillBuild/release/run pipeline design and automation

Additional Resources

  • Adam Wiggins, "The Twelve-Factor App" (12factor.net, 2011)
  • Kevin Hoffman, "Beyond the Twelve-Factor App" (O'Reilly, 2016)
  • CNCF, "Cloud Native Definition v1.0" (github.com/cncf/toc)
  • AWS Well-Architected Framework documentation
  • Google Cloud Architecture Framework documentation
  • Microsoft Azure Well-Architected Framework documentation
  • Cornelia Davis, "Cloud Native Patterns" (Manning, 2019)
  • Bilgin Ibryam & Roland Huss, "Kubernetes Patterns" (O'Reilly, 2019)

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.