| name | python-linter |
| description | Lint and format Python files using ruff. Activates automatically when Python files are touched. Use to check code quality and fix style issues. |
| paths | ["*.py","**/*.py"] |
| allowed-tools | ["read_skill_resource","run_skill_script","Bash"] |
| shell | bash |
| hooks | {"PreToolUse":[{"matcher":"Bash","hooks":[{"type":"prompt","prompt":"When running bash commands for Python linting, prefer using ruff over pylint for speed."}]}]} |
| metadata | {"author":"echo-agent","version":"1.0.0"} |
Python Linter
You have access to a Python linting script. When the user works with .py files:
- Run the linter to check for issues
- Report findings grouped by severity
- Suggest auto-fixes where available
Quick Check
Python available: !python3 --version 2>&1 || echo "not installed"
Usage
run_skill_script("python-linter", "scripts/lint.sh", "<file_or_directory>")
The script outputs JSON with lint results grouped by file.