quality-gate

quality-gate is a skill for Claude Code from morodomi/tdd-skills. It costs 34 tokens per session (699 once invoked), scanned A, original, MIT.

A code-review step that checks changes from six specialist viewpoints, including security, testing, and usability, then assigns a confidence score.

In plain words
What is it for?
Use it to review changed files, all project files, or a chosen directory, using project-specific guidance for tools such as pytest, mypy, ESLint, Jest, or Laravel testing.
Why use it?
It helps catch serious problems before work continues by marking results as pass, warn, or block according to the review score.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the tdd-core plugin — 13 skills, 14 agents shipped together

Good fit Use it to review changed files, all project files, or a chosen directory, using project-specific guidance for tools such as pytest, mypy, ESLint, Jest, or Laravel testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morodomi/tdd-skills/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 morodomi/tdd-skills --skill quality-gate
Clone the repo
git clone --depth 1 https://github.com/morodomi/tdd-skills

Made for: Claude Code.

Or install tdd-core, the plugin that ships this one along with the rest of its 13 skills, 14 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/morodomi/tdd-skills/quality-gate/github.svg)](https://agentmods.dev/skills/morodomi/tdd-skills/quality-gate)
Your own site
<a href="https://agentmods.dev/skills/morodomi/tdd-skills/quality-gate"><img src="https://agentmods.dev/badge/skills/morodomi/tdd-skills/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/morodomi/tdd-skills/quality-gate"><img src="https://agentmods.dev/badge/skills/morodomi/tdd-skills/quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 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.00034 $0.00699
Opus 5 $0.00017 $0.00349
Sonnet 5 $0.00007 $0.00140
Haiku 4.5 $0.00003 $0.00070

Measured 9d ago against content hash cbdec2b65a4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

plugins/tdd-core/skills/quality-gate/SKILL.md · 96 lines

What it actually says

Quality Gate

コード変更を6つの専門エージェントで並行レビューする。

Progress Checklist

quality-gate Progress:
- [ ] 対象範囲決定(引数解釈)
- [ ] スコープ/プラグイン確認
- [ ] レビュー実行(Subagent + Sonnet)
- [ ] 結果統合・スコア判定
- [ ] 分岐判定(PASS/WARN/BLOCK)

Workflow

Step 1: 対象範囲決定

引数に応じて対象範囲を決定:

引数 対象
なし 差分のみ(git diff HEAD
全部 --all 全ファイル
ディレクトリ名 特定ディレクトリ
# デフォルト
git diff HEAD --name-only

詳細: reference.md

Step 2: スコープ/プラグイン確認

Cycle doc から言語プラグインを確認:

ls -t docs/cycles/*.md 2>/dev/null | head -1 | xargs grep -A2 "### Scope"
Plugin 参照内容
tdd-php Testing Strategy(No RefreshDatabase等)
tdd-flask Flask固有パターン
tdd-python pytest/mypy設定
tdd-js ESLint/Jest設定

Step 3: レビュー実行

Subagent + Sonnet で並行実行。手順: steps-subagent.md

Step 4: 結果統合

各エージェントの信頼スコアを集計:

最大スコア 判定 アクション
80-100 BLOCK 修正必須、進行不可
50-79 WARN 警告表示、継続可能
0-49 PASS 問題なし

Step 5: 分岐判定

PASS(スコア49以下)

→ COMMITフェーズへ自動進行

WARN(スコア50-79)
警告があります。確認してください。
1. 警告を確認してCOMMIT
2. GREENに戻って修正
BLOCK(スコア80以上)
重大な問題が検出されました。
→ GREENに戻って修正してください
(Progress Logに記録済み)

Cycle docのProgress Logに以下の形式で追記する:

- YYYY-MM-DD HH:MM [REVIEW] quality-gate BLOCK (score NN): reviewer「指摘要約」

Reference

  • エージェント定義: ../../agents/
Files

What ships with it

2 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. 9d ago First seen · 96 lines · 34 tokens per session scan A cbdec2b65a4d

Subscribe to this mod's changes

quality-gate is a skill published in the GitHub repository morodomi/tdd-skills (8 stars, last pushed 6mo ago), licensed MIT. It adds 34 tokens to every session and 699 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-31.