Agent skill

Remove Crate Prefix

by r3bl-org in r3bl-org/r3bl-open-core

Enforce the "Clean Imports over Inline Absolute Paths" rule by removing inline crate:: prefixes and adding proper use statements.

Apache-2.0Auto-check passedDevelopment

Install Remove Crate Prefix

skills CLI
$ npx skills add r3bl-org/r3bl-open-core --skill remove-crate-prefix -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install r3bl-org/r3bl-open-core remove-crate-prefix --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/r3bl-org/r3bl-open-core.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/remove-crate-prefix .claude/skills/remove-crate-prefix && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
remove-crate-prefix
GitHub stars
485
Token cost
~600 tokens
SKILL.md length
291 words
Files
1
Skills in repo
25
Repo updated
First seen
Licence
Apache-2.0

At a glance

Enforce the "Clean Imports over Inline Absolute Paths" rule by removing inline crate:: prefixes and adding proper use statements.

  • Works in 5 steps: Determine Target Files → Scan the targeted file(s) for instances… → Group the required imports into a single… → …
  • Development work in your project
  • SKILL.md covers Purpose, Rules, Exceptions and Execution
  • Calls git

What it does

Remove Crate Prefix is an agent skill from r3bl-org/r3bl-open-core. Enforce the "Clean Imports over Inline Absolute Paths" rule by removing inline crate:: prefixes and adding proper use statements.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: TUI framework and developer productivity apps in Rust 🦀. The licence is Apache-2.0.

When your agent uses it

  • Development work in your project

Example prompts

  • “Clean Imports over Inline Absolute Paths”
  • “/remove-crate-prefix”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Determine Target Files
  2. Scan the targeted file(s) for instances of inline crate:: usage for types.
  3. Group the required imports into a single use crate::{...}; statement.
  4. Remove the crate:: prefix from the inline usages.
  5. Verify the changes compile successfully using ./check.fish --check.

What it can do on your machine

Read from SKILL.md and the folder at commit 89db352. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Remove Crate Prefix loads about 600 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 291 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~600

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from r3bl-org/r3bl-open-core at commit 89db352, republished under its Apache-2.0 licence (© r3bl-org). 291 words, ~600 tokens.

Download SKILL.mdSave it as .claude/skills/remove-crate-prefix/SKILL.md (or your agent's skills folder).
name
remove-crate-prefix
description
Enforce the "Clean Imports over Inline Absolute Paths" rule by removing inline crate:: prefixes and adding proper use statements.

Remove Crate Prefix Skill

Purpose

This skill enforces the "Clean Imports over Inline Absolute Paths (Mandatory)" rule defined in the project's AGENTS.md. It automatically scans code for inline crate:: prefixes (e.g. crate::Type, crate::Size) and refactors the code to use clean imports at the top of the file or scope.

Rules

Do NOT write absolute inline paths like crate::Type or crate::Size inside function signatures or bodies.

✅ Good:
rust
use crate::{Size, Pos};

pub fn render(size: Size) -> Pos { ... }
❌ Bad:
rust
pub fn render(size: crate::Size) -> crate::Pos { ... }

Exceptions

  • Declarative Macros (macro_rules!): Do NOT apply this refactor inside declarative macros, and NEVER touch or remove the $crate:: prefix. Modifying $crate:: will result in a syntax error because it turns a built-in macro keyword into an undeclared macro variable.
  • Macro invocations often require absolute paths (e.g., crate::key_press!). This rule primarily targets structs, traits, and enums (e.g., crate::ModifierKeysMask).
  • Sometimes in generated code or highly isolated scopes, a use crate::{...} block directly inside a function or if block is preferred over a file-level import to minimize scope pollution.

Execution

When invoked:

  1. Determine Target Files:
    • If specific files are provided as arguments, target those files.
    • If no arguments are supplied, find all modified staged and unstaged files (e.g., via git diff --name-only and git diff --cached --name-only) and target all of them.
  2. Scan the targeted file(s) for instances of inline crate:: usage for types.
  3. Group the required imports into a single use crate::{...}; statement.
    • For production code: Place the use statement at or near the top of the file, joining existing file-level imports (even if the crate:: usage is inside an inner module).
    • For test code: The use statement can be added to the closest inner test module where the other test imports are located.
  4. Remove the crate:: prefix from the inline usages.
  5. Verify the changes compile successfully using ./check.fish --check.

© r3bl-org, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/remove-crate-prefix of r3bl-org/r3bl-open-core.

Open the folder on GitHubat commit 89db352

Compare with similar skills

Remove Crate Prefix next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Remove Crate Prefix compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Remove Crate Prefix this skillr3bl-org/r3bl-open-core485—~600Automated safety check: PassApache-2.0
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from r3bl-org/r3bl-open-core

All 25 skills in this repo
  • Analyze Log Files

    r3bl-org/r3bl-open-core

    Analyze log files by stripping ANSI escape sequences first. An agent skill from r3bl-org/r3bl-open-core.

    485 GitHub stars~632 tokensUpdated today
    Auto-check: notes
  • Analyze Performance

    r3bl-org/r3bl-open-core

    Establish performance baselines and detect regressions using flamegraph analysis.

    485 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Check Bounds Safety

    r3bl-org/r3bl-open-core

    Apply type-safe bounds checking patterns using VPIndex/VPLength types instead of usize.

    485 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Release Crate

    r3bl-org/r3bl-open-core

    Publish a crate release to crates.io with changelog, standalone release notes, git tag, and GitHub release.

    485 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Organize Modules

    r3bl-org/r3bl-open-core

    Apply private modules with public re-exports (barrel export) pattern for clean API design.

    485 GitHub stars~5.8k tokensUpdated today
    Auto-check passed
  • Check Code Quality

    r3bl-org/r3bl-open-core

    Run comprehensive Rust code quality checks including compilation, linting, documentation, and tests.

    485 GitHub stars~3.8k tokensUpdated today
    Auto-check passed

Categories

Questions about Remove Crate Prefix

What does Remove Crate Prefix do?

Enforce the "Clean Imports over Inline Absolute Paths" rule by removing inline crate:: prefixes and adding proper use statements. Remove Crate Prefix is an agent skill from r3bl-org/r3bl-open-core. Enforce the "Clean Imports over Inline Absolute Paths" rule by removing inline crate:: prefixes and adding proper use statements.

When should I use Remove Crate Prefix?

Remove Crate Prefix fits situations like: development work in your project.

How do I install Remove Crate Prefix in Claude Code?

Run `npx skills add r3bl-org/r3bl-open-core --skill remove-crate-prefix -a claude-code`. Or copy the skill folder (.agents/skills/remove-crate-prefix in r3bl-org/r3bl-open-core) into .claude/skills/remove-crate-prefix in your project. Claude Code loads it when a task matches its description.

How do I install Remove Crate Prefix in Codex?

Run `npx skills add r3bl-org/r3bl-open-core --skill remove-crate-prefix -a codex`. Or copy the skill folder (.agents/skills/remove-crate-prefix in r3bl-org/r3bl-open-core) into .agents/skills/remove-crate-prefix in your project. Codex loads it when a task matches its description.

Can I use Remove Crate Prefix in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add r3bl-org/r3bl-open-core --skill remove-crate-prefix -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/remove-crate-prefix, .gemini/skills/remove-crate-prefix, .github/skills/remove-crate-prefix and .opencode/skills/remove-crate-prefix in your project.

What does Remove Crate Prefix need to run?

Going by SKILL.md and its folder, Remove Crate Prefix needs the command-line tools its instructions call (git).

Does Remove Crate Prefix access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Remove Crate Prefix safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Remove Crate Prefix use?

Remove Crate Prefix is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Remove Crate Prefix use?

About 600 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Remove Crate Prefix?

Skills that share tags, products or a category with Remove Crate Prefix: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Remove Crate Prefix?

r3bl-org (a GitHub organization) maintains it in r3bl-org/r3bl-open-core, which has 485 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on October 8, 2026.

Source: r3bl-org/r3bl-open-core on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.