# domain-cloud-native

A domain skill that injects cloud-native architecture rules into Rust projects, covering health endpoints, graceful exits, and stateless design.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2900 installs · ★ 1545
- Author: actionbook
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/actionbook/rust-skills/tree/HEAD/skills/domain-cloud-native/SKILL.md
- Updated: 2026-08-23
- HTML: https://affpapa.org/en/nevibecode/skills/domain-cloud-native

## What it does

The skill provides architectural constraints for building cloud-native Rust applications. It guides the coding agent toward 12-factor application standards: reading configuration from environment variables via `config` or `figment`, offloading state to external databases, and producing lean binaries.

The guidelines focus on operational resilience. They specify patterns for Axum and Tokio to handle `SIGTERM` signals properly, drain active connections, and expose distinct `/health` and `/ready` endpoints. Distributed tracing relies on `tracing` and `opentelemetry`, while service-to-service communication points to `tonic`.

Because this skill is marked with `user-invocable: false`, developers do not call it with a slash command. It triggers automatically when your prompt mentions Kubernetes, containers, or gRPC services. Applying these constraints to simple command-line tools will add unnecessary boilerplate.

## Requirements
- Works with: Docker, Kubernetes

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill domain-cloud-native -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/domain-cloud-native/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/domain-cloud-native/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill domain-cloud-native -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/domain-cloud-native/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill domain-cloud-native -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/domain-cloud-native/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install actionbook/rust-skills domain-cloud-native
```

2. **Manually: put the files in place**
- File: `.github/skills/domain-cloud-native/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill domain-cloud-native -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/actionbook/rust-skills --path skills/domain-cloud-native
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/domain-cloud-native/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add actionbook/rust-skills --skill domain-cloud-native -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/actionbook/rust-skills/tree/HEAD/skills/domain-cloud-native/SKILL.md

## When to use it
- implement graceful shutdown using Tokio signal handling in Axum
- expose dedicated liveness and readiness endpoints for container health
- wire distributed tracing across services with OpenTelemetry and tracing
- structure a stateless Rust service storing persistent data in Redis or SQL

## Example prompts
- Add a graceful shutdown handler for SIGTERM to our Axum HTTP server
- Create health and readiness endpoints that verify database connectivity
- Set up OpenTelemetry span export for our tonic microservice

## Similar
- [quarkus-native-and-container](https://affpapa.org/en/nevibecode/skills/quarkus-native-and-container.md) — skill · ★ 40418
- [microservices-architect](https://affpapa.org/en/nevibecode/agents/microservices-architect.md) — subagent · 376 installs
- [devops-engineer](https://affpapa.org/en/nevibecode/skills/devops-engineer.md) — skill · 11200 installs
- [devops-deployment](https://affpapa.org/en/nevibecode/skills/devops-deployment.md) — skill · 1600 installs
- [docker-containerization](https://affpapa.org/en/nevibecode/skills/docker-containerization.md) — skill · 1100 installs
- [devops](https://affpapa.org/en/nevibecode/skills/devops.md) — skill · 987 installs

From the same set: [actionbook/rust-skills](https://affpapa.org/en/nevibecode/by/actionbook/rust-skills.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
