rust-module-organization-public-api-design

Official

Structure Rust modules for clarity and stability.

Authorkreuzberg-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of organizing Rust code into logical modules and designing a stable, maintainable public API, preventing breaking changes and improving code discoverability.

Core Features & Use Cases

  • Module Structure: Provides principles for organizing code by feature and managing visibility (pub, pub(crate)).
  • Public API Definition: Guides on using src/lib.rs for re-exports to define a clear and stable interface.
  • Use Case: A Rust library maintainer can use this Skill to refactor their codebase, ensuring that future updates do not break existing user code by carefully managing what is exposed publicly.

Quick Start

Use the rust-module-organization-public-api-design skill to learn how to define a stable public API for a Rust crate by organizing its modules and using re-exports effectively.

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: rust-module-organization-public-api-design
Download link: https://github.com/kreuzberg-dev/html-to-markdown/archive/main.zip#rust-module-organization-public-api-design

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.