zhanghandong avatar

Domain Cloud Native

This is your cloud-native constraints checklist for Rust services running in Kubernetes. It keeps you honest about stateless design (no static mut, external state only), graceful SIGTERM handling for zero-downtime deploys, and distributed tracing with OpenTelemetry. The trace-down approach is solid: it maps domain rules like "need health checks" down to specific patterns in other skills like m06-error-handling and domain-web. Heavy on tonic for gRPC, kube-runtime for operators, and the usual observability stack. Useful if you're tired of debugging why your pods got killed mid-request or why you can't trace requests across services.

skills.sh installs
596
GitHub stars
1.3K
last updated
Jul 14, 2026

Install

$ npx -y skills add zhanghandong/rust-skills --skill domain-cloud-native --agent claude-code

Installs into .claude/skills of the current project.

Files

Cloud-Native Domain

Layer 3: Domain Constraints

Domain Constraints → Design Implications

Domain RuleDesign ConstraintRust Implication
12-FactorConfig from envEnvironment-based config
ObservabilityMetrics + tracestracing + opentelemetry
Health checksLiveness/readinessDedicated endpoints
Graceful shutdownClean terminationSignal handling
Horizontal scaleStateless designNo local state
Container-friendlySmall binariesRelease optimization

Critical Constraints

Stateless Design

RULE: No local persistent state
WHY: Pods can be killed/rescheduled anytime
RUST: External state (Redis, DB), no static mut

Graceful Shutdown

RULE: Handle SIGTERM, drain connections
WHY: Zero-downtime deployments
RUST: tokio::signal + graceful shutdown

Observability

RULE: Every request must be traceable
WHY: Debugging distributed systems
RUST: tracing spans, opentelemetry export

Trace Down ↓

From constraints to design (Layer 2):

Sponsors

Details

Repository
github.com/zhanghandong/rust-skills
Categories
Rust, Cloud & Infrastructure
First seen
May 16, 2026

More from zhanghandong/rust-skills

All 34

Recommended

More Rust
1zhanghandong avatardomain-fintechzhanghandong/rust-skillsdomain fintech581skills.sh installs
2zhanghandong avatardomain-mlzhanghandong/rust-skillsdomain ml573skills.sh installs
3nomadamas avatarrhwp-advancednomadamas/k-skillDebug HWP layout, dump document IR, compare versions, extract thumbnails, and unlock read-only HWPs with the upstream rhwp Rust CLI (export-svg/dump/dump-pages/10.3Kskills.sh installs
4trailofbits avatarsolana-vulnerability-scannertrailofbits/skillsScans Solana programs for 6 critical vulnerabilities including arbitrary CPI, improper PDA validation, missing signer/ownership checks, and sysvar spoofing. Use6Kskills.sh installs
5trailofbits avatardevcontainer-setuptrailofbits/skillsCreates devcontainers with Claude Code, language-specific tooling (Python/Node/Rust/Go), and persistent volumes. Use when adding devcontainer support to a proje5.6Kskills.sh installs
6trailofbits avatarzeroize-audittrailofbits/skillsDetects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and con5.1Kskills.sh installs