code-quality
Run code quality checks. Use after making code changes, before commits, or when asked to check code quality.
When & Why to Use This Skill
This Claude skill automates essential code quality checks, including type checking and linting, to ensure robust and maintainable software development. By integrating these automated tools, it helps developers identify errors early, enforce coding standards, and streamline the pre-commit workflow for higher software reliability.
Use Cases
- Pre-commit Validation: Run comprehensive checks before committing code to ensure no syntax or type errors are introduced into the repository.
- Automated Code Formatting: Utilize the lint-fix command to automatically resolve stylistic issues and maintain a consistent codebase without manual intervention.
- Continuous Quality Monitoring: Perform regular health checks on the codebase to detect potential bugs and technical debt early in the development lifecycle.
- Type Safety Assurance: Execute dedicated type-checking commands to verify data integrity and prevent runtime type errors in complex applications.
| name | code-quality |
|---|---|
| description | Run code quality checks. Use after making code changes, before commits, or when asked to check code quality. |
| allowed-tools | Bash, Read, Grep, Glob |
Code Quality Checks
Run code quality checks after making code changes.
Commands
# Full check (type checking + linting)
./start.sh check
# Type checking only
./start.sh typecheck
# Linting only
./start.sh lint
# Linting with auto-fix
./start.sh lint-fix
Workflow
- Make code changes
- Run
./start.sh check - If lint errors can be auto-fixed, run
./start.sh lint-fix - Fix remaining errors manually
- Re-run check to verify