quality-check
Run comprehensive quality checks including linting, type checking, and tests. Use before committing or when validating code changes.
When & Why to Use This Skill
This Claude skill automates comprehensive code quality assurance by integrating linting, type checking, and automated testing into the development workflow. It ensures codebase health for Python and Rust projects by identifying syntax errors, type mismatches, and logic flaws, helping developers maintain high standards and prevent regressions before code is committed.
Use Cases
- Pre-commit Validation: Run a full suite of linting and unit tests to ensure code changes meet project standards before pushing to a repository.
- Automated Bug Detection: Utilize static analysis and type checking (Mypy/Clippy) to catch potential runtime errors and type mismatches early in the development cycle.
- Codebase Health Audits: Perform comprehensive checks on existing codebases to identify technical debt, unused variables, and gaps in test coverage.
- Standardized Formatting: Automatically enforce consistent coding styles across a team using tools like Ruff to improve code readability and maintainability.
| name | quality-check |
|---|---|
| description | Run comprehensive quality checks including linting, type checking, and tests. Use before committing or when validating code changes. |
Quality Check Skill
Execute comprehensive quality checks on the codebase.
Commands
# Python linting
make lint # ruff check (no auto-fix)
make format # ruff format (auto-fix)
# Type checking
make typecheck # mypy
# Rust checks
make rust-check # cargo clippy
# Run tests
make test # pytest full suite
make test-unit # unit tests only
make test-cov # with coverage report
# All checks at once
make check # lint + typecheck + test
Check Results Interpretation
Ruff Errors
E- pycodestyle errorsW- pycodestyle warningsF- PyflakesI- isortB- flake8-bugbearUP- pyupgrade
Mypy Errors
- Missing type annotations
- Type mismatches
- Import errors
Clippy Warnings
clippy::unwrap_used- Use?orexpect()clippy::todo- Remove before commitclippy::dbg_macro- Remove debug macros
Focus Areas
- Type annotation completeness
- Import organization
- Unused variables/imports
- Code complexity
- Test coverage gaps
Workflow
- Run
make checkto see all issues - Report errors with file:line references
- Suggest specific fixes
- Prioritize by severity (errors > warnings > style)