arch-inspect

Audits Rust project architecture and code quality across predefined dimensions.

11|Updated Nov 14, 2025
One-click install
npx skills add https://github.com/bug-ops/claude-plugins --skill arch-inspect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arch-inspect
Source: https://github.com/bug-ops/claude-plugins/tree/main/rust-code/skills/arch-inspect
Command: npx skills add https://github.com/bug-ops/claude-plugins --skill arch-inspect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit performs a comprehensive architecture and code quality audit for Rust projects, ensuring that type safety, modularity, testability, readability, DRY principles, and async concurrency are adhered to.

Core Features & Use Cases

  • Type Safety: Audits for illegal states, newtypes, typestate, and sealed traits.
  • Modularity: Checks for correct crate/module boundaries and workspace structure.
  • Testability: Validates unit logic can be exercised in isolation without side effects.
  • Readability: Improves API naming conventions and function complexity.
  • DRY and Technical Debt: Eliminates duplicated logic and tracks technical debt markers.
  • Async Concurrency: Ensures bounded concurrency, explicit error strategy, and defined timeouts.

Quick Start

Run the arch-inspect skill with the focus argument: 'arch-inspect type-system' to audit type safety.

Frequently Asked Questions about arch-inspect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Rust project architecture for modularity and type safety?

Audit Rust project architecture by checking crate and module boundaries for modularity, and verifying type safety through newtypes, typestate patterns, and sealed traits to prevent illegal states.

What's the best way to check Rust code for testability and DRY principle violations?

Check Rust code for testability by validating unit logic runs in isolation without side effects, and eliminate duplicated logic to adhere to DRY principles while tracking technical debt markers.

How does async concurrency audit work for Rust projects?

Async concurrency audits for Rust projects ensure bounded concurrency is maintained, error strategies are explicit, and timeouts are defined to prevent runtime issues.

Can I run a focused code quality audit on just the type system of a Rust codebase?

Yes, you can run a focused audit on the Rust type system by passing a specific focus argument like 'type-system' to audit type safety, including illegal states and sealed traits.

Does this architecture audit check API naming conventions and function complexity?

Yes, the architecture audit checks API naming conventions and function complexity to improve readability across the Rust project as part of the comprehensive code quality review.

What are the limitations of auditing Rust workspace structure and module boundaries?

Auditing Rust workspace structure focuses on verifying correct crate and module boundaries but does not modify the code; it only reports architectural issues for manual correction.