Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
rust-deployable-service【部署与运维】Use when preparing, containerizing, configuring, testing, or reviewing Rust services for deployment, especially Docker multi-stage builds, runtime configuration, environment overrides, secrets, health checks, SQLx offline builds, release profiles, image-size reduction, or production startup validation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a Rust service needs to move from local development to a repeatable container or cloud deployment. Keep runtime configuration explicit, builds reproducible, and health checks boring.
Cargo.toml, workspace layout, Dockerfile, .dockerignore,
config files, migrations, .sqlx/, CI, and deployment docs.SQLX_OFFLINE=true with checked-in
.sqlx/ metadata or provide a build-time database intentionally.Read references/configuration.md when adding config files, environment
variables, or secret handling.
Read references/docker-rust.md before changing Docker builds.
--locked for release builds if the repo commits Cargo.lock.Run from the Rust project root when Docker is part of the delivery path:
path/to/rust-deployable-service/scripts/docker-preflight.sh
The script builds an image. It only runs a smoke command when
RUST_DEPLOY_SMOKE_COMMAND is set, because services often need environment and
infrastructure to start successfully.
references/configuration.md: typed config loading, overrides, validation,
and secrets.references/docker-rust.md: multi-stage builds, SQLx offline builds, runtime
assets, and image checks.