rust-systems
Rust systems engineering for daemons, HTTP APIs, and AOS components. Enforces Tokio/Axum async-first, LiteLLM-compatible OpenAI APIs, workspace layouts, tracing, and systemd-compatible daemon design. Part of AOS Stack plugin. Use for .rs files, Cargo.toml, daemons, or Rust orchestrator services.
- License 许可
- MIT
- 所属仓库
- dasobral/skills
- 最近更新
- 2026-08-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- rust-systems
- description
- Rust systems engineering for daemons, HTTP APIs, and AOS components. Enforces Tokio/Axum async-first, LiteLLM-compatible OpenAI APIs, workspace layouts, tracing, and systemd-compatible daemon design. Part of AOS Stack plugin. Use for .rs files, Cargo.toml, daemons, or Rust orchestrator services.
02 资源文件 4
- 脚本examples/input/service.rs3.4 KB
- 参考文档examples/output/service_review.md7.0 KB
- 参考文档references/crate-selection-guide.md5.1 KB
- 其他templates/Cargo-workspace.toml5.0 KB
03 SKILL.md 正文
Rust Systems
Senior Rust systems engineer for daemons, APIs, and AOS components.
Step 1 — Orient
Read root Cargo.toml, glob member manifests. Announce workspace members
and relevant deps. Do not propose new deps until policy check passes.
Step 2 — Dependency Policy
| Check | Rule |
|---|---|
| Already present? | Use existing crate |
| Workspace-level? | Prefer workspace deps with inheritance |
| New crate? | State gap, justification, maintenance status |
| Forbidden | No silent additions, no * versions |
See references/crate-selection-guide.md.
Step 3 — Architecture
- Tokio sole async runtime;
spawn_blockingfor CPU/blocking work - Axum for HTTP; thin handlers, typed extractors
- reqwest (rustls) for outbound HTTP — single shared Client
- tracing structured JSON logs; never log secrets
- OpenAI-format API types must match spec field names exactly
Step 4 — Daemon Design
- Graceful shutdown via
tokio::signal - Health endpoint (
/healthor/ready) - systemd-compatible: Type=notify or simple with restart policy
- Template:
templates/Cargo-workspace.toml
Step 5 — Review Mode
Severity-tagged review (CRITICAL/WARNING/SUGGESTION) for:
unwrap()in production paths- Blocking in async contexts
- Missing error context in
?chains - Unbounded channels or missing backpressure
Examples: examples/input/, examples/output/
AOS Integration
Implement LiteLLM-compatible endpoints per local-inference skill's
OpenAI contract. Pair with templates/ and aos-stack agents.
Rules
- Read workspace before writing
- Async-first; strong typing; explicit error propagation
- Review examples in
examples/for expected output format
04 同仓库更多 Skills
fixture-skill
Fixture skill used to prove trust inventory coverage.
write-conformant-code
Write code in any language that matches project conventions exactly. Reads CODING_REQUIREMENTS.md, prior review output, or built-in defaults before writing. Part of Codecraft pipeline: analyze → write → review → audit. Use when implementing features, functions, or any code that should fit seamlessly into an existing codebase.
test-crypto-interoperability
Record reproducible cryptographic interoperability cases, including negotiation, fallback, sizes, latency, fragmentation, and negative tests.
scientific-platform-architect
Design scientific computing platforms combining HPC kernels with modern infrastructure. Enforces compute-layer separation (Rust/PyTorch/Python), emulator-first thinking, and right-sized infrastructure. Use for MCMC pipelines, neural emulators, platform design, or scientific code review.
run-agent-attack-replay
Aggregate isolated agent attack trials with deterministic side-effect assertions, Wilson intervals, and preserved trace evidence.
review-quality
Language-agnostic code review across four pillars: Clarity, Simplicity, Good Practices, and Security. Produces severity-tagged findings (CRITICAL/WARNING/SUGGESTION). Complements audit-cognitive-debt for dead code and duplication. Part of Codecraft plugin. Use when asked to review code quality, audit security, check best practices, or find code smells.