DQIII8: Skill for Claude Code

.claude/skills/quality-gate/SKILL.md

quality-gate is a skill for Claude Code from senda-labs/DQIII8. It costs 43 tokens per session (670 once invoked), scanned A, original, MIT.

A code-quality check for Python files that runs formatting, import sorting, linting, tests, and a security scan in sequence.

In plain words
What is it for?
Use it on a file, folder, or whole project before committing changes. It can also apply supported formatting and import fixes, or treat warnings as errors.
Why use it?
It puts several routine checks in one repeatable process and stops when a problem is found.

Skill for Claude Code

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

This is senda-labs/DQIII8's own configuration. It tells Claude Code how to work on DQIII8 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DQIII8 configures →

Part of the dqiii8 plugin — 22 skills, 14 commands, 17 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to senda-labs/DQIII8. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/senda-labs/DQIII8/main/.claude/skills/quality-gate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/senda-labs/DQIII8

Made for: Claude Code.

Or install dqiii8, the plugin that ships this one along with the rest of its 22 skills, 14 commands, 17 agents.

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 quality-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/senda-labs/dqiii8/quality-gate/github.svg)](https://agentmods.dev/skills/senda-labs/dqiii8/quality-gate)
Your own site
<a href="https://agentmods.dev/skills/senda-labs/dqiii8/quality-gate"><img src="https://agentmods.dev/badge/skills/senda-labs/dqiii8/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 quality-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/senda-labs/dqiii8/quality-gate"><img src="https://agentmods.dev/badge/skills/senda-labs/dqiii8/quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 670 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.
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.00043 $0.00670
Opus 5 $0.00022 $0.00335
Sonnet 5 $0.00009 $0.00134
Haiku 4.5 $0.00004 $0.00067

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

Security

Grade A, and why

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 12d 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.

.claude/skills/quality-gate/SKILL.md · 95 lines

What it actually says

/quality-gate — On-Demand Quality Pipeline

Run the DQIII8 quality pipeline for a file or directory scope.

Usage

/quality-gate [path|.] [--fix] [--strict]
  • Default target: current directory (.)
  • --fix: allow auto-format/fix where supported (Black, isort)
  • --strict: treat warnings as errors

Pipeline

Run these phases in order. Stop on first failure unless --strict is passed.

Phase 1 — Format (Black)

black --check [path] 2>&1 | tail -15
# With --fix:
black [path]

Phase 2 — Imports (isort, if installed)

isort --check-only [path] 2>&1 | head -10
# With --fix:
isort [path]

Phase 3 — Lint (ruff)

ruff check [path] --select E,F,W,PLE2510,PLE2512,PLE2513,PLE2514,PLE2515 2>&1 | head -30

Fail on E, F, and PLE25xx codes (hidden/invalid Unicode control characters — zero false positives against this repo, unlike RUF001-003 which flag legitimate stylistic uses of the multiplication sign and info-symbol-with-VS16 and were deliberately excluded). W codes: report only.

Phase 4 — Tests (pytest)

python3 -m pytest tests/ -x -q --tb=short 2>&1 | tail -20

With --strict: fail on warnings too (-W error).

Phase 5 — Security Quick-Scan

grep -rn "shell=True" [path] --include="*.py" | grep -v "#\|test_"
grep -rn "f['\"].*SELECT\|f['\"].*INSERT\|f['\"].*DELETE" [path] --include="*.py"

Both must return empty.

Output Format

QUALITY GATE — [path]
=====================
Phase 1 Format:   PASS
Phase 2 Imports:  PASS / SKIP (isort not installed)
Phase 3 Lint:     PASS / FAIL — 3 errors
Phase 4 Tests:    PASS — 12 passed in 0.8s
Phase 5 Security: PASS

RESULT: PASS / BLOCKED

When to Run

  • Before every commit
  • After python-specialist hands off code
  • After refactoring (in place of running phases manually)
  • As part of /checkpoint create flow
  • security-review skill (Claude Code built-in) — deeper checklist for auth/secrets code
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. 12d ago First seen · 95 lines · 43 tokens per session scan A bb014842e1b7

Subscribe to this mod's changes

quality-gate is a skill published in the GitHub repository senda-labs/DQIII8 (11 stars, last pushed 23d ago), licensed MIT. It adds 43 tokens to every session and 670 once invoked, about $0.0002 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-08-30.