add-backend
Installation
SKILL.md
Adding a Backend to Security Middleware
This skill walks through the complete, end-to-end process of adding a backend (Rust or Python) to the security middleware, wiring it into the router, and exposing it through the CLI.
Unified interface: Both Rust and Python backends implement the same
execute(ctx, **kwargs) → ActionResultcontract. The middleware doesn't care about the implementation language.
Backend Type Selection
| Type | Use Case | Pros | Cons |
|---|---|---|---|
| rust | Performance-critical, CPU-intensive tasks | High performance, memory safety | Requires Rust toolchain, compilation |
| python | Rapid development, glue code, existing libraries | Fast iteration, rich ecosystem | Slower execution, GIL limitations |