check-code-quality

Run cargo check, build, clippy, test, and doc workflows.

477|32|Updated Feb 23, 2022
One-click install
npx skills add https://github.com/r3bl-org/r3bl-open-core --skill check-code-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-code-quality
Source: https://github.com/r3bl-org/r3bl-open-core/tree/main/.claude/skills/check-code-quality
Command: npx skills add https://github.com/r3bl-org/r3bl-open-core --skill check-code-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers waste time manually running and coordinating multiple Rust quality checks (typechecking, building, linting, testing, and documentation). This Skill automates the entire workflow, delivering consistent results and faster feedback.

Core Features & Use Cases

  • Orchestrated Quality Checks: Runs cargo check, cargo build, cargo clippy, cargo test, and cargo doc in a reliable sequence.
  • ICE Recovery & Toolchain Escalation: Automatically recovers from internal compiler errors and escalates toolchains when needed.
  • Use Case: Pre-commit and PR-quality gates; CI pipelines can invoke the single script to validate code health before merging.

Quick Start

Run the full quality-check workflow with the command: ./check.fish --full

Frequently Asked Questions about check-code-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Rust code quality checks before a commit?

Automating Rust code quality checks involves orchestrating cargo check, build, clippy, test, and doc in a reliable sequence. This delivers consistent results and faster feedback before commits or PRs in local and CI workflows.

What is the best way to run cargo clippy and cargo test together?

The best way to run cargo clippy and cargo test together is using an orchestrated workflow that sequences cargo check, build, clippy, test, and doc. This eliminates manual coordination and delivers consistent quality validation.

How does ICE recovery work during Rust compilation?

ICE recovery during Rust compilation automatically detects internal compiler errors and attempts recovery. It also performs toolchain escalation when needed to ensure the quality check workflow completes successfully.

Can I run cargo doc and doctests as part of a CI pipeline?

Yes, you can run cargo doc and doctests as part of a CI pipeline by invoking a single orchestrated script. CI pipelines can trigger the full quality-check flow to validate code health before merging.

Do I need to install any dependencies to run these Rust linting checks?

No additional dependencies are required to run these Rust linting checks. The workflow operates as a standalone script invoking standard cargo commands for typechecking, building, linting, testing, and documentation generation.

Why does my Rust quality check workflow fail with internal compiler errors?

Rust quality check workflows can fail with internal compiler errors due to toolchain issues. This workflow includes automatic ICE recovery and toolchain escalation to handle these failures and retry the checks successfully.