agentsclimarketplace

Audit rust

Skill idaibin/skills/skills/audit-rust

Independent Agent Skills for repository analysis, planning, implementation, review, delivery, design, and runtime verification.

Install
npx -y skills add idaibin/skills --skill audit-rust

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when a Rust workspace or known Rust surface needs a scoped, read-only audit of selected architecture, ownership, error, concurrency, performance, persistence, or unsafe-boundary risks; use repo-review when a Worktree or immutable change basis needs coordination.

SKILL.md

11.1 KB, as published. Nobody here has run it

Rust Audit

Overview

Audit Rust engineering from repository evidence. Select only the audit profiles required by the task; do not load architecture, performance, memory, SQLite, concurrency, and FFI review into every audit. This workflow is read-only by default; use dev-rust for requested changes. repo-review may invoke this skill for a bounded Rust specialist subreview under either a Worktree or immutable review basis.

Rule Priority

Resolve conflicts in this order:

  1. The user's current explicit request.
  2. Effective repository guidance, including AGENTS.md, CLAUDE.md, and host-provided instructions when present.
  3. Existing project code, toolchain, and architecture.
  4. Project documentation and interface contracts.
  5. This skill.
  6. External reference repositories.

Do not rewrite a working local design merely to resemble an external project.

Workflow

  1. Read repository guidance, record the inspected revision plus relevant Worktree state for reproducibility, run git status --short, and inspect only relevant manifests, entry points, modules, docs, tests, benches, migrations, CI, and runtime configuration. This inspection snapshot does not imply change attribution. When delegated, record the exact Rust paths or diff and keep the caller as review coordinator.
  2. Determine workspace/crate boundaries, library and binary entries, feature flags, MSRV, edition, runtime/thread model, error/tracing style, database linkage, migration strategy, quality commands, and unsafe/FFI/native dependencies that apply to the task.
  3. Select one or more audit profiles:
    • Architecture/baseline: crate/module/API ownership, dependencies, toolchain policy, structural lifecycle, docs, and legacy exceptions.
    • Ownership/errors: resource lifetime, copying/retention, typed errors, panic/log/retry boundaries, and applicable Axum HTTP or Tauri IPC contracts.
    • Concurrency/runtime: Tokio/blocking work, tasks, channels, locks, backpressure, cancellation, panic propagation, and shutdown.
    • Performance/memory: representative workload, release baseline, CPU, allocation, RSS, I/O, binary/compile cost, caches, mmap, allocator/native/OS retention.
    • SQLite: runtime/linkage, connections, transactions, WAL, migrations, schema, indexes, plans, maintenance, backup, and recovery.
    • Unsafe/FFI: invariants, ABI/layout, pointer ownership, callbacks, threads, panic containment, alloc/free symmetry, and native cleanup.
  4. Classify applicable standards as portable governance, organization baseline, new-project template, repository contract, or documented legacy exception. Never turn a version snapshot or example tree into a universal rule.
  5. Consume current repo-map output or build a targeted inventory of analogous APIs, modules, database access, background tasks, tests, benchmarks, migrations, callers, and architecture docs.
  6. Map governing invariants, resource owners, shutdown/cancellation paths, error boundaries, workload, baseline, and validation gaps for the selected profiles only. When duplication, dead/unused code, abstraction, coupling, or maintainability materially applies, load references/code-quality.md with audit semantics and Rust reachability rules.
  7. When an in-scope selected-profile change adds, reuses, moves, renames, or deletes a structural surface, audit every affected manifest, registration, export, feature, test, migration, generated file, deployment path, architecture document, and index; search for stale references.
  8. Validate hypotheses with non-mutating repository-defined commands and representative data. Do not substitute cargo check for release, benchmark, concurrency, migration, or runtime evidence.
  9. Stop when the selected profiles are supported by evidence. Mark unselected profiles out of scope rather than partially reviewing them.
  10. Report severity-ranked findings with impact, exact location, evidence, remediation direction, Not verified gaps, and the selected/excluded profile boundary. In specialist mode, return findings to the coordinating repo-review; do not stage, commit, post comments, or take over final review ownership.

Modes

  • Focused profile audit: one or two selected risk surfaces with bounded evidence and commands.
  • Combined risk audit: multiple interacting profiles, such as Tokio plus SQLite or unsafe plus performance, with explicit integration risks.
  • Baseline audit: compare toolchain, workspace, directory, naming, validation, documentation, and legacy-exception policy against real project evidence.
  • Performance experiment review: define workload, baseline, measurement, one-factor experiment, and comparable before/after evidence; route experiment edits to dev-rust.
  • Scoped specialist subreview: inspect only the Rust paths or diff delegated by repo-review; return domain findings without taking review coordination or Git/GitHub ownership.

Hard Rules

  • Do not add or recommend a public trait, global state, runtime, thread pool, cache, pool, repository/service/manager layer, or database abstraction before proving the consumer, lifecycle, replacement, test, or deployment need.
  • Do not hard-code the latest stable Rust release or universal MSRV. Read the repository's pinned toolchain and support policy.
  • Do not impose one apps/, crates/, domain/, application/, infrastructure/, or frontend-mirrored directory tree. Split by stable responsibility or deployment boundary, not file count.
  • Do not label every clone, Arc, Mutex, unwrap, large file, or full table scan as a finding. Prove context, frequency, reachability, and impact.
  • Do not declare Rust code unused from reference search alone. Resolve public API, features, targets, cfg, macros, derives, build scripts, examples, benches, FFI exports, and downstream consumers; interpret Clippy groups in repository context.
  • Load and apply only references for the selected architecture, ownership/error, concurrency, performance/memory, SQLite, unsafe/FFI, or conditional code-quality profile. Require the profile's workload, runtime, invariant, reachability, or target evidence before conclusions.
  • Apply stricter templates to new projects only when adopted. Migrate established projects incrementally at real change boundaries; never rename mechanically for visual consistency.
  • Do not edit, stage, commit, post review comments, or deliver code in audit mode. Route approved remediation to dev-rust. repo-review owns Worktree and immutable review coordination; repo-delivery alone owns Git mutation.
  • Do not claim profiles were reviewed when their workload, runtime, target, dataset, or tool support was unavailable. Mark the exact gap Not verified.
  • When a selected Rust profile exposes a security-relevant condition, return the domain evidence—input, control, sink or protected operation, reachable path, trust boundary, counterevidence, and proof gap—without claiming exploit validation or fix completion. Route an explicit vulnerability scan, attack-path, or PoC-validation request to an available host security workflow.

Do Not Use For

  • Repository orientation without a Rust task; use repo-map.
  • Rust implementation, modification, refactoring, or porting; use dev-rust.
  • Root-cause diagnosis of a concrete failure; use the host's built-in diagnosis under effective instructions.
  • Owning Worktree readiness or immutable repository/range/PR/release coordination; use repo-review, which may delegate a bounded Rust surface here.
  • Commit, push, squash, branch cleanup, or remote proof; use repo-delivery only when the user explicitly requests delivery.
  • Review of a fixed Worktree or immutable change basis, including authorization or token risks; use repo-review.
  • A general repository/path vulnerability scan or explicit exploit validation; use an available host security workflow. Keep bounded Rust ownership, Axum, Tauri, SQLite, unsafe, and FFI audits here.
  • A frontend-only change with no Rust or SQLite boundary.

Output Contract

Start with the inspection snapshot, selected profiles, and severity-ranked findings. For each finding, report impact, exact location, evidence, remediation direction, and validation gap. Then summarize project class; coordinating owner when this is a scoped specialist subreview; guidance/manifests/code/migrations/docs/tests/commands inspected; existing candidates; ownership and invariants; selected profile evidence; structural lifecycle; workload and before/after data where applicable; explicitly excluded profiles; and Not found or Not verified gaps.

References

Load each linked reference independently when its named surface applies; grouping links does not require paired loading.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.