rmc-architecture-rules
CommunityCatch forbidden crate-edge dependencies
Software Engineering#architecture#static analysis#rust#CI checks#crate dependencies#layering rules#workspace hypergraph
Authormolaco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Enforcing architectural layering and dependency rules across a Rust workspace so layering breaks are detected early and made actionable.
Core Features & Use Cases
- Declarative crate-edge rules: Define producer/consumer constraints using glob-style crate-name patterns with optional per-rule severity and custom messages.
- CI-friendly violation reporting: Returns concrete violation rows (one per matching rule × edge) with sample symbols and reference counts so teams can triage quickly.
- Workspace-wide scope: Runs over crate-level
crate_edgesafter building the persisted hypergraph, enabling consistent enforcement across many crates. - Triaging support loop: Pairs well with follow-up symbol/file inspection tools to confirm legitimacy or fix the layering break.
Quick Start
Run the forbidden dependency check for your workspace by building the hypergraph first, then provide your rule list to forbidden_dependency_check(directory=..., rules=[...]) to get pass/fail violations.
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-architecture-rules Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-architecture-rules 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.