.cursor/skills/code-quality/SKILL.md
Run code quality checks (ruff lint, ruff format, pyright, pytest) on a directory and report findings by severity. Use when the user wants to audit code quality, check for type errors, lint issues, or run automated checks on a path. Accepts a directory path as argument. Triggers on requests like "check code quality", "run quality checks", "/code-quality apps/".
npx skillsauth add AngelDann/app-comisions-dist code-qualityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review code quality in the directory provided by the user.
Identify files to review:
.py files in the directory__pycache__, and generated filesRun automated checks (use the project's toolchain; prefer uv run if uv is configured, otherwise activate the venv and run):
uv run ruff check <directory>
uv run ruff format --check <directory>
uv run pyright <directory>
uv run pytest <directory> -v
Equivalents without uv:
ruff check <directory>
ruff format --check <directory>
pyright <directory>
pytest <directory> -v
Manual review checklist:
Any types without justificationReport findings organized by severity:
Adapted from claude-code-django (.claude/skills/code-quality).
development
pytest-django testing patterns, Factory Boy, fixtures, and TDD workflow. Use when writing tests, creating test factories, or following TDD red-green-refactor cycle.
development
HTMX patterns for Django including partial templates, hx-* attributes, and dynamic UI without JavaScript. Use when building interactive UI, handling AJAX requests, or creating dynamic components.
development
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
development
Check if documentation is in sync with code. Use when the user wants to verify that documentation matches current code, find outdated docs, or audit documentation accuracy. Triggers on requests like "check docs", "sync documentation", "are the docs up to date", "/docs-sync".