Py Cq
Description
CLI that aggregates ruff, ty, bandit, pytest, radon + 6 more into a single token-efficient LLM prompt. CI gate + Claude Code hook.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
CQ - Python Code Quality Analysis Tool
[](https://github.com/rhiza-fr/py-cq/actions/workflows/ci.yml) [](https://codecov.io/gh/rhiza-fr/py-cq) [](https://pypi.org/project/python-code-quality/) [](https://pypi.org/project/python-code-quality/) [](LICENSE)
Run 11+ code quality tools, aggregate results into one score, and surface the single most critical defect as a focused markdown prompt — ready to pipe to any LLM.
This can dramatically reduce the amount of noise for LLMs (and humans) and remove the need for them to know about these tools.
Note: It never edits your files. This is a job for you or an LLM. You may wish to run `ruff check --fix` and `ruff format` first.
cq check . -o llm # top defect as markdown, pipe to an LLM
cq check . # table overview of all scores
cq check . -o score # numeric score only, exits 1 on errors (CI gate)

Install
# install the `cq` command line tool from PyPi
uv tool install python-code-quality
# or, clone it then install
git clone https://github.com/rhiza-fr/py-cq.git
cd py-cq
uv tool install .
Tools
These tools are run in **parallel** except: When running '-o llm', we run sequentially and exit early at the first error. `coverage` is a special case: it starts alongside `pytest` and is cancelled if `pytest` fails, scoring `0%` without a second test run.
| Order | Tool | Measures |
|---|---|---|
| 1 | compileall | Syntax errors |
| 2 | ruff | Lint / style |
| 3 | ty | Type errors |
| 4 | bandit | Security vulnerabilities |
| 5 | pytest | Test pass rate |
| 6 | coverage |
Related Skills
Spec Kit
💫 Toolkit to help you get started with Spec-Driven Development
Testing Webapp Testing
Test local web applications using Playwright for UI verification and debugging
Testing #29
, [#52](https://github.com/affaan-m/everything-claude-code/issues/52), [#103](https://github.com/affaan-m/ever
Testing Fix Issue
by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol
Testing Pypict Test Design
Design comprehensive test cases using PICT (Pairwise Independent Combinatorial Testing) for optimized test sui
Testing gstack
| 15,000+ | Garry Tan's exact Claude Code setup: 6 opinionated tools that serve as CEO, Eng Manager, Release M
Testing