mds-rust-namespace-surface

Community

Enforce module-first Rust APIs.

Authoreboody
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of maintaining clear, organized, and idiomatic Rust APIs by enforcing module-first naming conventions and export rules, preventing namespace pollution and improving code readability.

Core Features & Use Cases

  • Module-First Namespacing: Ensures that module paths form the primary namespace for related types and functions.
  • Anti-Flattening Imports: Discourages the use of pub use that flattens module structures, promoting explicit qualification.
  • Companion Type Shaping: Guides the organization of generic companion types within their respective modules.
  • Use Case: When refactoring a Rust crate's public API, use this Skill to guide changes to mod.rs files, use statements, and public type visibility to ensure a clean and maintainable module structure.

Quick Start

Apply the mds-rust-namespace-surface skill to ensure Rust APIs are module-first.

Dependency Matrix

Required Modules

None required

Components

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: mds-rust-namespace-surface
Download link: https://github.com/eboody/eran.codes/archive/main.zip#mds-rust-namespace-surface

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.