rmc-mut-static-audit
CommunityAudit Rust global mutable state risk
Software Engineering#static analysis#rust#architecture review#global state#safety audit#dependency impact
Authormolaco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Identifies and triages Rust global mutable state by auditing every workspace static item whose HIR type matches common global singleton patterns, so you can assess safety and architectural load.
Core Features & Use Cases
- Workspace-wide type-aware matching: Finds local
staticitems matchingstatic mut,LazyLock<...>,OnceLock<...>, andOnceCell<...>and reports where they live and what types they actually are. - Fan-in impact analysis: For each finding, quantifies how many call-sites or dependencies use the global via
who_uses/who_uses_summary, highlighting removal difficulty and architectural coupling. - Review-ready source context: Pulls the relevant source file region around each finding span using
read_file_contentso you can inspect initialization and surrounding documentation.
Quick Start
Build the workspace hypergraph, run the global mutable state audit for your workspace path, and then inspect each finding’s file and span to decide whether it needs DI refactoring or safety review.
Dependency Matrix
Required Modules
None requiredComponents
Standard packageđź’» Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rmc-mut-static-audit Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-mut-static-audit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.