Declarative .mdcReguły Cursor/Claude/Windsurf i przepływy pracy n8nUmiejętność agentaAudyt wycieku o zerowej tajemnicy
Rust Tokio + Axum Umiejętność inżynierii systemów bezpiecznych przy anulowaniu
Deklaratywna umiejętność CLAUDE.md i .mdc zapobiegająca panice .unwrap() w procedurach obsługi HTTP/MCP, chroniąca tokio::select! bezpieczeństwo anulowania i ograniczające kolejki kanałów.
Pliki agenta deklaratywnego i reguł IDE
---
description: Zero-panic Axum handlers, bounded Tokio mpsc channels, and cancellation-safe async Rust
globs: **/*.rs,Cargo.toml
alwaysApply: false
---
# Rust Tokio & Axum Production Reliability Skill
- Forbid `.unwrap()` and `.expect()` in request handlers and MCP tool loops; propagate typed errors via `thiserror` implementing `axum::response::IntoResponse`.
- Use bounded `tokio::sync::mpsc::channel(capacity)` exclusively — never `unbounded_channel` — to enforce deterministic backpressure.
- Offload CPU-bound parsing, hashing, or synchronous I/O > 500µs onto `tokio::task::spawn_blocking` so worker reactor threads never stall.
- Audit every `tokio::select!` branch for cancellation safety; avoid partial multi-frame writes inside cancellable futures.
- Instrument async handlers with `#[tracing::instrument(skip_all, fields(req_id))]` without logging secret headers.
## Verification Check
```bash
cargo clippy --all-targets -- -D warnings && cargo test
```Uwagi dotyczące konfiguracji społeczności i recenzje produkcji (0)
Nie ma jeszcze żadnych notatek społeczności. Podziel się poniżej wskazówką dotyczącą konfiguracji produkcyjnej.
Odsłonięty inspektor narzędzi i schematów zasobów MCP
| Identyfikator narzędzia/zasobu | Parametry wejściowe | Zachowanie wykonawcze |
|---|---|---|
| forbid_handler_unwrap | src/**/*.rs | Enforces typed thiserror/IntoResponse error propagation instead of unwrap()/expect(). |