Agent skill

Run Clippy

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

Run clippy linting, enforce comment punctuation rules, format code with cargo fmt, and verify module organization patterns.

Apache-2.0Auto-check passedDevelopment

Install Run Clippy

skills CLI
$ npx skills add r3bl-org/r3bl-open-core --skill run-clippy -a claude-code

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

GitHub CLI
$ gh skill install r3bl-org/r3bl-open-core run-clippy --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/run-clippy .claude/skills/run-clippy && 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
run-clippy
GitHub stars
485
Token cost
~1.8k tokens
SKILL.md length
788 words
Files
2
Skills in repo
25
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run clippy linting, enforce comment punctuation rules, format code with cargo fmt, and verify module organization patterns.

  • Works in 10 steps: Run Clippy → Enforce Comment Punctuation → Enforce Clean Imports (No Inline… → …
  • Tasks that involve Linting and formatting
  • SKILL.md covers When to Use, Instructions, Reporting Results and Supporting Files in This Skill, plus 3 more sections
  • Calls cargo

What it does

Run Clippy is an agent skill from r3bl-org/r3bl-open-core. Run clippy linting, enforce comment punctuation rules, format code with cargo fmt, and verify module organization patterns. Use after code changes and before creating commits.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `patterns.md`).

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

When your agent uses it

  • Tasks that involve Linting and formatting

Example prompts

  • “/run-clippy”

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Run Clippy
  2. Enforce Comment Punctuation
  3. Enforce Clean Imports (No Inline Absolute Paths)
  4. Verify Module Organization
  5. Verify Documentation Quality
  6. Run Tests if Needed
  7. Final Code Formatting
  8. Enforce Clean Imports
  9. Handling Unwraps and Panics
  10. Prefer ? Operator / Early Returns over .and_then() (Mandatory)

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:

    • cargo

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

  • Network

    No URLs in SKILL.md.

    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

Run Clippy loads about 1.8k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 788 words of instructions outside code blocks.

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

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). 788 words, ~1,798 tokens.

Download SKILL.mdSave it as .claude/skills/run-clippy/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
run-clippy
description
Run clippy linting, enforce comment punctuation rules, format code with cargo fmt, and verify module organization patterns. Use after code changes and before creating commits.

Clippy Fixes and Code Style Enforcement

When to Use

  • After making code changes
  • Fixing clippy warnings
  • Ensuring comment punctuation consistency
  • Enforcing module organization patterns
  • Before creating commits
  • When user says "run clippy", "fix style", "format code", "check lints", etc.

Instructions

Run these steps in order to enforce code quality and style standards:

Step 1: Run Clippy

Run clippy to catch linting issues:

bash
./check.fish --clippy
# (runs: cargo clippy --all-targets)

Review and fix all warnings. For auto-fixable issues:

bash
cargo clippy --all-targets --fix --allow-dirty

Common clippy categories:

  • Correctness: Potential bugs and logic errors (must fix)
  • Performance: Inefficient code patterns (should fix)
  • Style: Idiomatic Rust patterns (should fix)
  • Pedantic: Opinionated style (optional, review case-by-case)
  • Complexity: Overly complex code (refactor if excessive)
Step 2: Enforce Comment Punctuation

Apply these punctuation rules to all comments (not rustdoc /// or //!, but regular // comments) in the git working tree:

Rule 1: Single-line Standalone Comments

Add a period at the end:

rust
// This is a single line comment.
Rule 2: Multi-line Wrapped Comments (One Logical Sentence)

Period ONLY on the last line:

rust
// This is a long line that wraps
// to the next line.
Rule 3: Multiple Independent Single-line Comments

Each gets its own period:

rust
// First independent thought.
// Second independent thought.
How to Identify Wrapped vs Independent

Wrapped comments:

  • The second line continues the grammatical structure of the first
  • Reads as one sentence if combined

Independent comments:

  • Each line could stand alone as a complete thought
  • Separate sentences with distinct subjects
Step 3: Enforce Clean Imports (No Inline Absolute Paths)

Scan the changed files for any inline absolute paths (e.g., crate::Type, crate::function!) and replace them with proper use statements at the top of the file.

✅ Good:

rust
use crate::{Size, Pos};

pub fn render(size: Size) -> Pos { ... }

❌ Bad:

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

Note: Intra-doc links like /// [Type]: crate::Type are exempt from this rule and SHOULD use crate:: paths.

Step 4: Verify Module Organization

Review all mod.rs files in the git working tree and ensure they follow the patterns from the organize-modules skill:

Check for:

  • ✅ Private modules with public re-exports (preferred pattern)
  • ✅ Conditional visibility for docs/tests where needed: #[cfg(any(test, doc))]
  • ✅ Rustfmt skip directive if manual formatting is needed
  • ✅ Flat public API (avoid exposing internal structure)

If module organization doesn't follow patterns, invoke the organize-modules skill for guidance.

Step 5: Verify Documentation Quality

If working with rustdoc comments (/// or //!):

  1. Reference-style links: Ensure backticked symbols use reference-style intra-doc links
  2. Link placement: All reference-style links at bottom of comment block
  3. Table formatting: Markdown tables properly aligned

If there are issues, invoke the write-documentation skill (or use /fix-intradoc-links command).

Step 5: Run Tests if Needed

If clippy fixes modify behavior or you're unsure about changes:

bash
./check.fish --test
# (runs: cargo test --all-targets)

Use the Task tool with subagent_type='test-runner' if tests fail.

Step 6: Final Code Formatting

Run cargo fmt to ensure consistent formatting:

bash
cargo fmt --all

This applies:

  • Consistent indentation (4 spaces)
  • Line length limits (100 chars default)
  • Spacing around operators and braces
  • Import organization
Step 7: Enforce Clean Imports

Ensure that code does not use absolute inline paths like crate::Type or crate::CONSTANT inside function signatures or bodies. They must be cleanly imported via use statements at the top of the file.

Show full SKILL.md (319 more words)Show less
Step 8: Handling Unwraps and Panics

When addressing clippy::unwrap_used violations or manually reviewing code that can mathematically never fail:

  • Avoid .expect("..."). While .expect() provides a panic message at runtime, we prefer to keep string literals out of the logic flow for a cleaner aesthetic.
  • Use #[allow(clippy::unwrap_used, reason = "...")] instead of .expect(). The reason should explicitly state the mathematical or logical proof for why the unwrap() is safe.
  • Fallbacks: If the unwrap() is not mathematically proven safe and is truly fallible (e.g., file I/O), rewrite it using if let Ok() or propagate the error instead of panicking.
Step 9: Prefer ? Operator / Early Returns over .and_then() (Mandatory)

Do NOT use .and_then() for chaining Option or Result operations in code. Instead, write idiomatic Rust using early returns with the ? operator (or if let / let-else statements). The only acceptable exception is for boolean constant gating in tracing/logging calls if necessary, though even then, canonical Rust is preferred.

✅ Good:

rust
fn get_char(&self, pos: Pos) -> Option<PixelChar> {
    let row = self.get_row(pos.row_index)?;
    let cell = row.get(pos.col_index.as_usize())?;
    Some(*cell)
}

❌ Bad:

rust
fn get_char(&self, pos: Pos) -> Option<PixelChar> {
    self.get_row(pos.row_index)
        .and_then(|row| row.get(pos.col_index.as_usize()))
        .copied()
}

Reporting Results

After completing all steps, report concisely:

  • ✅ All checks passed → "Code style and linting checks passed!"
  • ⚠️ Clippy warnings → Summarize warning categories and counts
  • 🔧 Auto-fixed → Report what was automatically corrected
  • 📝 Manual fixes needed → List what requires developer attention

Supporting Files in This Skill

This skill includes additional reference material:

  • patterns.md - Comprehensive examples of code style patterns including comment punctuation rules (20+ examples), clippy lint categories with fixes, cargo fmt formatting rules, and module organization quick checks. Read this when:
    • Need examples of proper comment punctuation (wrapped vs independent)
    • Understanding clippy lint categories (correctness, performance, style)
    • See good vs bad examples for specific lints
    • Quick module organization checks
    • Understanding cargo fmt rules (indentation, line length, imports)
  • check-code-quality - Includes clippy as part of full quality checks
  • organize-modules - For module organization patterns
  • write-documentation - For rustdoc link formatting and comprehensive doc formatting
  • /clippy - Explicitly invokes this skill
  • /fix-comments - Focuses on comment punctuation (subset of this skill)
  • clippy-runner - Agent that delegates to this skill

© 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

SKILL.md and 1 other file in .agents/skills/run-clippy of r3bl-org/r3bl-open-core.

  • SKILL.md
  • patterns.md

Open the folder on GitHubat commit 89db352

Compare with similar skills

Run Clippy 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.

Run Clippy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Run Clippy this skillr3bl-org/r3bl-open-core485—~1.8kAutomated safety check: PassApache-2.0
Minimizing Ty Ecosystem Changesastral-sh/ruff50k—~4.6kAutomated safety check: PassMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k—~2.2kAutomated safety check: PassMIT
Babysit PR To Pass CIsgl-project/sglang37k2 repos~3kAutomated safety check: PassApache-2.0
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
Summarise Ecosystem Resultsastral-sh/ruff50k—~2.2kAutomated safety check: PassMIT

Similar skills

  • Official

    A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…

    50k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub stars~2.2k tokensUpdated 28 days ago
    DevelopmentAuto-check passed
  • Babysit PR To Pass CI

    sgl-project/sglang

    Start and persistently pursue a goal to babysit an SGLang pull request until selected GitHub Actions workflows pass on the latest PR head.

    37k GitHub starsUsed in 2 repos~3k tokens
    DevelopmentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    A skill your agent uses when a user says "summarise ecosystem results", "summarize this ty ecosystem report", "what changed in this ecosystem run?", or asks to summarise or summarize ty ecosystem…

    50k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Go Pedantry

    chromedp/chromedp

    This skill should be used when the user is writing Go code and needs guidance on Go-specific pedantry: error wrapping with fmt.Errorf and %w, interface design (accept interfaces return structs)…

    13k GitHub stars~3.7k tokensUpdated 3 days ago
    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 Run Clippy

What does Run Clippy do?

Run clippy linting, enforce comment punctuation rules, format code with cargo fmt, and verify module organization patterns. Run Clippy is an agent skill from r3bl-org/r3bl-open-core. Run clippy linting, enforce comment punctuation rules, format code with cargo fmt, and verify module organization patterns.

When should I use Run Clippy?

Run Clippy fits situations like: tasks that involve Linting and formatting.

How do I install Run Clippy in Claude Code?

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

How do I install Run Clippy in Codex?

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

Can I use Run Clippy 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 run-clippy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/run-clippy, .gemini/skills/run-clippy, .github/skills/run-clippy and .opencode/skills/run-clippy in your project.

What does Run Clippy need to run?

Going by SKILL.md and its folder, Run Clippy needs the command-line tools its instructions call (cargo).

Does Run Clippy access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Run Clippy 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 Run Clippy use?

Run Clippy 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 Run Clippy use?

About 1.8k tokens (SKILL.md is roughly 7.2k 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 Run Clippy?

Skills that share tags, products or a category with Run Clippy: Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars), Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars), Babysit PR To Pass CI (sgl-project/sglang, 37k stars) and Rust Best Practices (farm-fe/farm, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Run Clippy?

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.