r3bl-open-core: Skill for Claude Code

.agents/skills/organize-modules/SKILL.md

organize-modules is a skill for Claude Code, Codex from r3bl-org/r3bl-open-core. It costs 47 tokens per session (5,460 once invoked), scanned A, original, Apache-2.0.

Guidance for organizing Rust modules with private internal files and public re-exports. A re-export exposes selected items through a simpler public interface.

In plain words
What is it for?
Create or refactor Rust modules, organize mod.rs files, control what documentation and tests can see, and review module structure before commits.
Why use it?
It keeps the API easier to use while allowing the internal module layout to change without affecting users.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is r3bl-org/r3bl-open-core's own configuration. It tells Claude Code and Codex how to work on r3bl-open-core itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything r3bl-open-core configures →

Reuse

Borrowing it

Nothing to install: this file belongs to r3bl-org/r3bl-open-core. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/r3bl-org/r3bl-open-core/main/.agents/skills/organize-modules/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/r3bl-org/r3bl-open-core

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for organize-modules

README.md
[![agentmods](https://agentmods.dev/badge/skills/r3bl-org/r3bl-open-core/organize-modules/github.svg)](https://agentmods.dev/skills/r3bl-org/r3bl-open-core/organize-modules)
Your own site
<a href="https://agentmods.dev/skills/r3bl-org/r3bl-open-core/organize-modules"><img src="https://agentmods.dev/badge/skills/r3bl-org/r3bl-open-core/organize-modules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for organize-modules

Your own site · 80×15
<a href="https://agentmods.dev/skills/r3bl-org/r3bl-open-core/organize-modules"><img src="https://agentmods.dev/badge/skills/r3bl-org/r3bl-open-core/organize-modules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,460 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.05460
Opus 5 $0.00023 $0.02730
Sonnet 5 $0.00009 $0.01092
Haiku 4.5 $0.00005 $0.00546

Measured 10d ago against content hash a0a168c63199, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

organize-modules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/organize-modules/SKILL.md · 768 lines

How it starts

The opening of the file, as written. The whole thing — 768 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Module Organization Best Practices

When to Use

  • Creating new Rust modules
  • Refactoring module structure
  • Organizing mod.rs files
  • Reviewing code that exposes internal structure
  • Making private types visible to documentation
  • Before creating commits with module changes
  • When user says "organize modules", "refactor modules", "fix module structure", etc.

Instructions

Follow these patterns for clean, maintainable module organization:

Step 1: Apply the Recommended Pattern

Prefer private modules with public re-exports (also known as the barrel export pattern) as the default pattern.

This provides a clean API while maintaining flexibility to refactor internal structure.

// mod.rs - Module coordinator

// Private modules (hide internal structure)
mod constants;
mod types;
mod helpers;

// Public re-exports (expose stable API)
pub use constants::*;
pub use types::*;
pub use helpers::*;

What this achieves:

  • Clean, flat API for users
  • Internal structure is hidden and can be refactored freely
  • No namespace pollution from module names

Step 2: Control Rustfmt Behavior (When Needed)

For mod.rs files with deliberate manual alignment, prevent rustfmt from reformatting:

// mod.rs

#![rustfmt::skip]

// Private modules
mod constants;
mod types;
mod helpers;

// Public re-exports
pub use constants::*;
pub use types::*;
pub use helpers::*;

When to use rustfmt skip:

  • Large mod.rs files with many exports
  • Deliberately structured code alignment for clarity
  • Manual grouping of related items (e.g., test fixtures)
  • Files where organization conveys semantic meaning

When NOT to use:

  • Small, simple mod.rs files
  • When automatic formatting is preferred

Step 3: Apply Conditional Visibility for Docs and Tests

When you need a module to be:

  • Private in production builds (encapsulation)
  • Public for documentation (rustdoc links work)
  • Public for tests (test code can access internals)

Read the full file on GitHub · 768 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 768 lines · 47 tokens per session scan A a0a168c63199

Subscribe to this mod's changes

organize-modules is a skill published in the GitHub repository r3bl-org/r3bl-open-core (483 stars, last pushed today), licensed Apache-2.0. It adds 47 tokens to every session and 5,460 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.