rust-validation
The rust-validation skill runs three sequential Rust code quality checks (just check, just clippy, just format) from an appropriate justfile directory after substantial code changes are complete. Use it before delivering work to the user following significant Rust implementation, refactoring, or bug-fix tasks, batching related edits first to avoid running validation after every minor change.
git clone --depth 1 https://github.com/macro-inc/macro /tmp/rust-validation && cp -r /tmp/rust-validation/.pi/skills/rust-validation ~/.claude/skills/rust-validationSKILL.md
# Rust Validation Use this skill when you have changed Rust code or Rust build inputs and are nearing the end of a substantial implementation, refactor, or bug-fix task. Do not run these commands after every individual edit. Batch related edits first, then validate once at the end of a major work pass or before handing the task back to the user. ## Working Directory Run validation from the repository root. If the root `justfile` or one of the required recipes is missing, stop and tell the user what prevented validation instead of inventing alternate commands. ## Validation Commands Run these commands one at a time, in this exact order: ```bash just rust-check just clippy just format just hakari ``` If `just rust-check` or `just clippy` fails, do not continue to later commands. Inspect the failure, fix it if it is in scope, then rerun the full sequence starting at `just rust-check`. If `just format` changes files, review the resulting changes before the final response. ## Final Response Briefly report whether validation passed and list the commands that ran. If validation was skipped because no Rust code was changed, or because the user explicitly asked to skip it, say so.
Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped. Use when `just coverage` fails, or after adding an endpoint to a Rust service.
Enforce hexagonal architecture in the Rust backend. Use before modifying crates/ or Rust services, especially inbound axum/tool/listener adapters, domain services/ports, outbound adapters, authorization, permissions, database access, or external clients.
Build a new AI tool end-to-end — Rust implementation, toolset wiring, infra, schema generation, and frontend UI.
Find all open Dependabot alerts for this repo and create a plan to resolve them using the appropriate package manager overrides (pnpm, bun, npm, cargo).
Dump clean Postgres schema to a file and copy path to clipboard.
>-
Build and maintain documentation sites with Mintlify. Use when creating docs pages, configuring navigation, adding components, or setting up API references.