audit-code-quality

Scan repositories for fail-fast anti-patterns and generate structured audit reports.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/benzwick/SlicerMouseMaster --skill audit-code-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-code-quality
Source: https://github.com/benzwick/SlicerMouseMaster/tree/main/.claude/skills/audit-code-quality
Command: npx skills add https://github.com/benzwick/SlicerMouseMaster --skill audit-code-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve?

Codebases often accumulate avoidable defects when errors are swallowed, exceptions are handled too broadly, or failures are hidden behind silent paths. This skill scans repositories to surface fail-fast violations and provide actionable guidance to improve reliability and maintainability.

## Core Features & Use Cases

  • Automated detection of common anti-patterns (bare except, continue on error, broad exception handling)
  • A configurable audit script that outputs a structured report and recommended fixes
  • Suitable for pre-commit checks, code reviews, and CI pipelines to maintain code health across projects
  • Use Case: Before merging a large feature branch, run the audit to identify and remediate error-handling weaknesses ### Quick Start

Run the audit script against your repository to generate a report detailing code-quality issues and recommended fixes.

Frequently Asked Questions about audit-code-quality

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

FAQPage Schema
How do I detect bare except and broad exception handling in my Python repository?

Detect bare except and broad exception handling by running an automated audit script that scans your Python repository for fail-fast violations. The script identifies anti-patterns like silent error swallowing and outputs a structured report listing issues by category and location.

What is a fail-fast code-quality audit and when do I need to run it?

A fail-fast code-quality audit is an automated scan that surfaces hidden failures and error-handling weaknesses in a codebase. You need to run it during code reviews, before merging large feature branches, or within CI pipelines to maintain code health and reliability.

How do I integrate static analysis for error-handling anti-patterns into a CI pipeline?

Integrate static analysis for error-handling anti-patterns into CI pipelines by running the configurable audit script as a pre-commit check or pipeline step. It scans for fail-fast violations and generates a structured output with recommended fixes to prevent merging weak error-handling code.

Does this repository audit tool work with languages other than Python?

Yes, the repository audit tool works across Python projects and other languages. It uses grep-based static analysis to target common anti-patterns like continue on error and broad exception handling, making it suitable for detecting fail-fast violations across diverse codebases.

What is the best way to identify silent error paths and swallowed exceptions before a merge?

The best way to identify silent error paths and swallowed exceptions before a merge is to run an automated audit that scans for fail-fast violations. It detects avoidable defects where errors are hidden behind silent paths and provides actionable guidance for remediation.

Can I use grep-based static analysis to find continue on error patterns in bash scripts?

Yes, you can use grep-based static analysis to find continue on error patterns in bash scripts and other code. The audit script scans the repository for these fail-fast anti-patterns and generates a structured report detailing the issues and recommended fixes.