Our review
Runs all pre-commit checks (lint and typecheck) before every git commit to ensure code quality.
Strengths
- Automates linting and formatting with Ruff
- Checks types with Mypy to catch common errors
- Auto-fixes files and stages them for commit
Limitations
- Only supports Python projects
- Mypy options are very permissive (ignores many error codes)
- Does not include other checks like tests or security
Before every commit on a Python project to ensure code meets quality standards.
For non-Python projects or when you need stricter type checking (since Mypy is configured leniently).
Security analysis
SafeCommands run local linting (ruff) and type checking (mypy) on project files. No network access, file deletion, or secret exfiltration. The `--fix` flag modifies source files locally, which is expected. No obfuscation or disabling of safety mechanisms.
No concerns found
Examples
Run pre-commit checks on my Python project (lint with Ruff and typecheck with Mypy) before I commit.Run all pre-commit checks and auto-fix any lint issues, then stage the changes.Execute the pre-commit skill: lint with Ruff (auto-fix and format), then typecheck with Mypy, and report pass/fail.name: precommit description: Run all pre-commit checks (lint + typecheck). Use before every git commit to ensure code quality.
Pre-Commit Checks
Run all required checks before committing.
Commands
# 1. Ruff lint check (auto-fix and format)
git ls-files "*.py" | xargs python -m ruff check --fix
git ls-files "*.py" | xargs python -m ruff format
# 2. Mypy type check
python -m mypy src/ --ignore-missing-imports --disable-error-code=union-attr --disable-error-code=no-redef --disable-error-code=no-any-return --disable-error-code=attr-defined --disable-error-code=assignment --disable-error-code=arg-type --disable-error-code=index --disable-error-code=misc
Instructions
- Run lint check with auto-fix
- Run format
- Run mypy type check
- Report results:
- PASS if both succeed
- FAIL with details if either fails
- Stage any auto-fixed files if requested
Checklist
- [ ] Ruff lint passes
- [ ] Ruff format applied
- [ ] Mypy type check passes
Notes
- NEVER commit without passing ALL checks
- CI will reject PRs with lint/type errors
- Run this skill before every commit
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.