python-quality-gate

python-quality-gate is a skill for Claude Code from notque/vexjoy-agent. It costs 23 tokens per session (990 once invoked), scanned A, original, MIT.

A Python quality checker that runs Ruff, pytest, mypy, and Bandit in a fixed order. These tools check style, tests, type correctness, and common security issues.

In plain words
What is it for?
Use it to validate Python projects and produce a structured pass-or-fail report.
Why use it?
It combines the main checks into one repeatable pass with categorized results and commands for fixes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Good fit Use it to validate Python projects and produce a structured pass-or-fail report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notque/vexjoy-agent/python-quality-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add notque/vexjoy-agent --skill python-quality-gate
Clone the repo
git clone --depth 1 https://github.com/notque/vexjoy-agent

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-quality-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/notque/vexjoy-agent/python-quality-gate/github.svg)](https://agentmods.dev/skills/notque/vexjoy-agent/python-quality-gate)
Your own site
<a href="https://agentmods.dev/skills/notque/vexjoy-agent/python-quality-gate"><img src="https://agentmods.dev/badge/skills/notque/vexjoy-agent/python-quality-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-quality-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/notque/vexjoy-agent/python-quality-gate"><img src="https://agentmods.dev/badge/skills/notque/vexjoy-agent/python-quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 990 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00990
Opus 5 $0.00012 $0.00495
Sonnet 5 $0.00005 $0.00198
Haiku 4.5 $0.00002 $0.00099

Measured 4d ago against content hash 4416463b3bc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

python-quality-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/code-quality/python-quality-gate/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python quality gate

Run Python checks in order: Ruff lint, Ruff format, mypy, pytest, Bandit. Read repository instructions and configuration first; project commands and thresholds override defaults.

Detect

Find pyproject.toml, setup.py, setup.cfg, mypy.ini, and .python-version. Identify the Python target, tool settings, source directories (src/, app/, lib/, or root), and test discovery configuration.

Use the project environment. Check ruff --version, pytest --version, mypy --version, and bandit --version. Ruff and pytest are required; missing tools block execution (status 2). Mypy and Bandit are optional unless the project requires them. Report unavailable tools as skipped. Do not install tools or alter configuration for a check-only request; setup may require pip install ruff pytest pytest-cov.

Execute

Capture each command's output and exit status. Use configured paths; replace src below with the actual source path. Preserve stricter project settings rather than overriding them with defaults.

Order Default command Condition
1 ruff check . --output-format=grouped Required
2 ruff format --check . Required
3 mypy . --ignore-missing-imports --show-error-codes If available; omit --ignore-missing-imports when it weakens project policy
4 pytest -v --tb=short --cov=src --cov-report=term-missing Use coverage only when configured/requested and pytest-cov is installed
5 bandit -r src/ -ll --format=screen If available

Run all available checks even after one fails; a test failure is a result, not a tool crash. Do not skip tests to get a pass. If there are no discovered tests, report that coverage gap; tests may live outside a tests/ directory.

Assess and report

Repository gates take precedence. Legacy default failure thresholds are Ruff F errors, test failures, high-severity Bandit issues, more than 10 mypy errors, and coverage below 80% when enabled. Always report each nonzero tool result separately; an aggregate threshold must not be described as every tool passing. Formatting failures and repository-required checks remain failures.

Read the full file on GitHub · 78 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · -161 lines scan C → A 4416463b3bc0
  2. 6d ago First seen · 239 lines · 23 tokens per session scan C 2f3d45641af0

Subscribe to this mod's changes

python-quality-gate is a skill published in the GitHub repository notque/vexjoy-agent (419 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 990 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

hypothesis-testing

Property-based testing with Hypothesis for discovering edge cases and validating invariants. Use when implementing comprehensive test coverage, testing complex logic with many inputs, or validating mathematical properties and invariants across input domains. Triggered by: hypothesis, property-based testing, @given…

foryourhealth111-pixel/Vibe-Skills · 62 tokens

python-rules

Python coding rules: style, patterns, security, testing. Triggers: .py, .pyi, pyproject.toml, requirements.txt, Pipfile, FastAPI, Django, Flask, pytest, SQLAlchemy, ruff, mypy.

softspark/ai-toolkit · 55 tokens

bugfix-protocol

Systematic 6-phase debugging protocol. Structured approach to bugs with quick checks, isolated testing, 20-minute rule, and bug report template.

ellmos-ai/skills · 34 tokens

bugfix-protocol

Systematic 6-phase debugging protocol. Structured approach to bugs with quick checks, isolated testing, 20-minute rule, and bug report template.

ellmos-ai/skills · 34 tokens

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens

test-corpus

The testdocuments submodule is a bucket-fetched fixture corpus that is not committed. This skill covers readtestfixture, missing fixtures, valid A/B controls, and submodule push order. Load before running Rust tests on a fresh clone, setting up an A/B control, adding a fixture-backed test, or diagnosing…

xberg-io/xberg · 72 tokens