en un clic
corvus-rust-runtime
Corvus-specific Rust runtime guidance. Trigger: When working in clients/agent-runtime on providers, channels, tools, security, memory, gateway, runtime adapters, or other trait-driven runtime boundaries.
Menu
Corvus-specific Rust runtime guidance. Trigger: When working in clients/agent-runtime on providers, channels, tools, security, memory, gateway, runtime adapters, or other trait-driven runtime boundaries.
Use AgentSync correctly and consistently to inspect repository agent setup, manage installable skills, and apply agent configuration changes. Trigger: when an agent needs to use the agentsync CLI, inspect AI agent symlinks, suggest/install/update skills, or initialize/sync AgentSync-managed configuration.
Create production-grade frontend interfaces with strong visual direction while avoiding generic AI-generated UI patterns. Trigger: building or modifying web components, pages, dashboards, or application UI.
GitHub Actions CI/CD best practices for workflow design, security hardening, and pipeline optimization. Trigger: When creating, reviewing, or auditing GitHub Actions workflows (.github/workflows/*.{yml,yaml}), fixing CI/CD issues, or hardening pipeline security.
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
General Rust engineering guidance grounded in Rust Book best practices. Trigger: When creating, modifying, or reviewing Rust code, especially around ownership, error handling, traits, modules, testing, async boundaries, or performance-sensitive logic.
Conventional Commits specification and usage guidance. Trigger: Creating commits, git messages, or commit guidelines.
| name | corvus-rust-runtime |
| description | Corvus-specific Rust runtime guidance. Trigger: When working in clients/agent-runtime on providers, channels, tools, security, memory, gateway, runtime adapters, or other trait-driven runtime boundaries. |
| license | Apache-2.0 |
| metadata | {"author":"generic-author","version":"1.0"} |
Repo-specific guidance for clients/agent-runtime. Load this together with the base rust skill
when changes depend on Corvus architecture, security boundaries, runtime contracts, or validation
commands.
clients/agent-runtime/src/**security/, gateway/, auth/, tools/, or memory/mod.rsCorvus is trait-driven. Before creating a new abstraction, check the existing contracts.
| Capability | Contract | Usual location |
|---|---|---|
| Provider | src/providers/traits.rs | src/providers/*.rs |
| Channel | src/channels/traits.rs | src/channels/*.rs |
| Tool | src/tools/traits.rs | src/tools/*.rs |
| Memory | src/memory/traits.rs | src/memory/*.rs |
| Observer | src/observability/traits.rs | src/observability/*.rs |
| Runtime adapter | src/runtime/traits.rs | src/runtime/*.rs |
See references/runtime-architecture.md.
For security/, gateway/, auth/, and tools/:
See references/security-boundaries.md.
unwrap() / expect() in production paths unless failure is truly impossibleRun the smallest relevant checks before calling work done.
See references/validation-commands.md.
| Change | Preferred move |
|---|---|
| New integration type already matches a trait | implement trait + register in mod.rs |
| Security/policy uncertainty | deny/fail closed |
| Cross-module behavior change | add integration or regression test |
| Heavy new dependency | challenge it before adding |
| Runtime hot path touched | verify async/blocking/clone impact |
pub fn register_tools(registry: &mut ToolRegistry) {
registry.register("my_tool", std::sync::Arc::new(MyTool::new()));
}
#[derive(Debug, thiserror::Error)]
pub enum ToolError {
#[error("input validation failed: {reason}")]
InvalidInput { reason: String },
}
make rust-fmt
make rust-clippy
make rust-test
cargo test --manifest-path clients/agent-runtime/Cargo.toml
cargo clippy --manifest-path clients/agent-runtime/Cargo.toml --all-targets -- -D warnings
references/assets/ for Corvus starter templates