Rust code review guidelines for Coglet
64
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.opencode/skills/rust-review/SKILL.mdThis project uses Rust for Coglet (crates/), the prediction server that runs
inside Cog containers. It handles HTTP requests, worker process management, and
prediction execution.
clippy runs in CI. cargo-deny audits dependencies for license/advisory issues. Don't flag issues these would catch.
Error handling
thiserror for typed errors in library code, anyhow for application errors.unwrap() or .expect() in non-test code unless the invariant is documented.context() or .with_context() from anyhow, not bare ?Ownership and lifetimes
Async (tokio)
spawn_blocking).await on futures (compiler catches some, but not all logical issues)Safety
unsafe block needs justification and a safety commentArchitecture
crates/coglet/ is the core: HTTP server, worker orchestration, IPCcrates/coglet-python/ is PyO3 bindings for Python predictor integrationinsta -- check if snapshots need updatingDependencies
crates/deny.toml audits them4e62b8b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.