deno-gemini-grounding-mcp-server: Command for Claude Code

.gemini/commands/ensure-quality.md

ensure-quality is a command for Claude Code, Gemini CLI from rinerebox1/deno-gemini-grounding-mcp-server. It costs 0 tokens per session (696 once invoked), scanned A, original, MIT.

A command that runs a project’s formatting, linting, type-checking, and tests, then fixes problems and repeats the checks until they pass. Linting finds style and likely code issues, while type-checking checks that values are used with the expected types.

In plain words
What is it for?
Use it before handing off code to format it, apply automatic lint fixes, address type errors, run the full test suite, and verify that make check-all succeeds.
Why use it?
It brings several separate quality checks into one repeatable process and helps resolve failures in a defined order. This reduces the need to run each check and interpret every error manually.

Command for Claude CodeGemini CLI

Written for Gemini CLI and Claude Code: installed under .gemini/, but also a Claude Code command (commands/*.md). Also seen: mentions Gemini CLI.

This is rinerebox1/deno-gemini-grounding-mcp-server's own configuration. It tells Claude Code and Gemini CLI how to work on deno-gemini-grounding-mcp-server 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 deno-gemini-grounding-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rinerebox1/deno-gemini-grounding-mcp-server. 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/rinerebox1/deno-gemini-grounding-mcp-server/main/.gemini/commands/ensure-quality.md
Clone the repo
git clone --depth 1 https://github.com/rinerebox1/deno-gemini-grounding-mcp-server

Made for: Claude Code, Gemini CLI.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/rinerebox1/deno-gemini-grounding-mcp-server/ensure-quality/github.svg)](https://agentmods.dev/commands/rinerebox1/deno-gemini-grounding-mcp-server/ensure-quality)
Your own site
<a href="https://agentmods.dev/commands/rinerebox1/deno-gemini-grounding-mcp-server/ensure-quality"><img src="https://agentmods.dev/badge/commands/rinerebox1/deno-gemini-grounding-mcp-server/ensure-quality/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 ensure-quality

Your own site · 80×15
<a href="https://agentmods.dev/commands/rinerebox1/deno-gemini-grounding-mcp-server/ensure-quality"><img src="https://agentmods.dev/badge/commands/rinerebox1/deno-gemini-grounding-mcp-server/ensure-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 696 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.00000 $0.00696
Opus 5 $0.00000 $0.00348
Sonnet 5 $0.00000 $0.00139
Haiku 4.5 $0.00000 $0.00070

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

Security

Grade A, and why

ensure-quality 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 11d 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.

.gemini/commands/ensure-quality.md · 53 lines

What it actually says

コード品質の自動改善

make check-allが成功するまで、自動的にコードを修正してコード品質を保証します。

このコマンドは、GEMINI.mdの「コード品質を保証する」セクションに従い、以下の順序で品質チェックと修正を実行します:

  1. コードフォーマット (make format) - Ruffによる自動フォーマット
  2. リントチェック (make lint) - Ruffによるリントチェックと自動修正
  3. 型チェック (make typecheck) - mypyによる厳格な型チェック
  4. テスト実行 (make test) - 全テストの実行

実行手順

  1. まず make check-all を実行して現在の状態を確認

  2. エラーが発生した場合、以下の優先順位で修正を試みる:

    • フォーマットエラー: make format で自動修正
    • リントエラー: make lint で自動修正可能なものは修正、手動修正が必要なものは詳細を報告
    • 型エラー: エラーメッセージを分析し、適切な型ヒントや型キャストを追加
    • テスト失敗: 失敗原因を特定し、コードまたはテストを修正
  3. 各修正後に make check-all を再実行し、すべてのチェックが通るまで繰り返す

重要な注意事項

  • GEMINI.mdの規約に従う: 型ヒント、エラーメッセージ、コーディングスタイルはGEMINI.mdの規約に準拠
  • 既存の動作を保持: テストが失敗した場合、まず実装が仕様通りかを確認し、必要に応じてテストも修正
  • 段階的な修正: 一度にすべてを修正せず、エラーの種類ごとに段階的に対処
  • 進捗の報告: 各ステップでの修正内容と結果を明確に報告

エラー対処の具体例

型エラーの例

# エラー: Incompatible return value type (got "None", expected "str")
def get_name() -> str:
    return None  # 修正前

# 修正後
def get_name() -> str | None:
    return None

リントエラーの例

# エラー: F401 'os' imported but unused
import os  # 修正: 未使用のインポートを削除

# エラー: E501 line too long (120 > 100 characters)
# 修正: 長い行を適切に改行

このコマンドを実行することで、プロジェクトのコード品質を一貫して高いレベルに保つことができます。

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. 11d ago First seen · 53 lines · 0 tokens per session scan A b02811f76740

Subscribe to this mod's changes

ensure-quality is a command published in the GitHub repository rinerebox1/deno-gemini-grounding-mcp-server (0 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 696 tokens. 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-01.