Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
unsafe-checker - Skill - OpenSmartRoute
Skillv1.0.0
unsafe-checker
CRITICAL: Use for unsafe Rust code review and FFI. Triggers on: unsafe, raw pointer, FFI, extern, transmute, mut, const, union, #[repr(C)], libc, std::ffi, MaybeUninit, NonNull, SAFETY comment…
Imported from actionbook/rust-skills (skills/unsafe-checker/SKILL.md) via skills.sh. Install upstream with npx skills add actionbook/rust-skills --skill unsafe-checker. Copyright stays with the author.
Display the following ASCII art exactly as shown. Do not modify spaces or line breaks:
Measured bottleneck with safe alternative too slow
NOT valid: Escaping borrow checker without understanding why.
Required Documentation
// SAFETY: <why this is safe>unsafe { ... }/// # Safety/// <caller requirements>pub unsafe fn dangerous() { ... }
Quick Reference
Operation
Safety Requirements
*ptr deref
Valid, aligned, initialized
&*ptr
+ No aliasing violations
transmute
Same size, valid bit pattern
extern "C"
Correct signature, ABI
static mut
Synchronization guaranteed
impl Send/Sync
Actually thread-safe
Common Errors
Error
Fix
Null pointer deref
Check for null before deref
Use after free
Ensure lifetime validity
Data race
Add proper synchronization
Alignment violation
Use #[repr(C)], check alignment
Invalid bit pattern
Use MaybeUninit
Missing SAFETY comment
Add // SAFETY:
Deprecated → Better
Deprecated
Use Instead
mem::uninitialized()
MaybeUninit<T>
mem::zeroed() for refs
MaybeUninit<T>
Raw pointer arithmetic
NonNull<T>, ptr::add
CString::new().unwrap().as_ptr()
Store CString first
static mut
AtomicT or Mutex
Manual extern
bindgen
FFI Crates
Direction
Crate
C → Rust
bindgen
Rust → C
cbindgen
Python
PyO3
Node.js
napi-rs
Claude knows unsafe Rust. Focus on SAFETY comments and soundness.
Installed into a catalogue, chosen by a router
Install unsafe-checker and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://osr-api.kindrock-caaab1a2.centralindia.azurecontainerapps.io/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.