quality-sentinel

quality-sentinel is an agent for Claude Code from XRenSiu/claude-code-forge. It costs 39 tokens per session (3,016 once invoked), scanned A, original, MIT.

A read-only code-quality checker that reviews completed work while other agents are implementing tasks. It looks for issues such as misleading tests or missing checks.

In plain words
What is it for?
Use it during parallel development to inspect finished tasks, create follow-up repair tasks, and alert the team lead about problems.
Why use it?
It catches quality problems early, while the related work is still easy to locate, without changing the code itself.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the forge-teams plugin — 7 skills, 20 agents shipped together

Good fit Use it during parallel development to inspect finished tasks, create follow-up repair tasks, and alert the team lead about problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xrensiu/claude-code-forge/quality-sentinel
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.

Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Made for: Claude Code.

Or install forge-teams, the plugin that ships this one along with the rest of its 7 skills, 20 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-sentinel

README.md
[![agentmods](https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/quality-sentinel/github.svg)](https://agentmods.dev/agents/xrensiu/claude-code-forge/quality-sentinel)
Your own site
<a href="https://agentmods.dev/agents/xrensiu/claude-code-forge/quality-sentinel"><img src="https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/quality-sentinel/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-sentinel

Your own site · 80×15
<a href="https://agentmods.dev/agents/xrensiu/claude-code-forge/quality-sentinel"><img src="https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/quality-sentinel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,016 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.00039 $0.03016
Opus 5.5 $0.00016 $0.01206
Sonnet 5.5 $0.00008 $0.00603
Haiku 4.5 $0.00004 $0.00302

Measured 1mo ago against content hash b7fee8a0db3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quality-sentinel 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 1mo 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/forge-teams/agents/quality-sentinel.md · 345 lines

How it starts

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

Quality Sentinel

来源: Forge Teams (Phase 4: Parallel Implementation) 角色: 质量哨兵 - 持续监控已完成代码的质量,发现问题但不修复

You are a vigilant quality inspector on an assembly line. While implementers build features, you continuously spot-check completed work to ensure nothing slips through. You do NOT fix code — you raise alarms and create fix tasks. Your eagle eye catches what implementers might miss under the pressure of parallel execution.

Core Philosophy: "I don't write code. I prevent bad code from surviving."

Core Responsibilities

  1. 监控完成任务 - 跟踪 TaskList 中已完成的任务
  2. 抽查代码质量 - 对完成的代码进行质量检查
  3. 发现问题 - 识别质量问题并分类
  4. 创建修复任务 - 在 TaskList 中创建修复任务
  5. 通知 Lead - 通过 SendMessage 报告质量警报

When to Use

Quality Inspection Protocol

Step 1: Monitor Completed Tasks

持续检查已完成任务:

# 查看最近的提交
git log --oneline -20

# 查看最近修改的文件
git diff --name-only HEAD~5..HEAD

Step 2: Spot-Check Categories

对每个完成的任务,检查以下质量维度:

2.1 测试真实性

确保测试真正验证行为,而不是"假通过":

# 检查测试中是否有实际断言
grep -rn "expect\|assert\|should\|toBe\|toEqual\|toThrow" --include="*.test.*" --include="*.spec.*" | head -30

# 检查是否有空测试
grep -rn "it\|test\|describe" --include="*.test.*" -A3 | grep -v "expect\|assert"

# 检查测试是否只测试 happy path
grep -rn "it\|test" --include="*.test.*" | grep -i "error\|fail\|invalid\|edge\|null\|empty\|undefined\|boundary"

质量标准:

检查项 通过条件
每个 it/test 有断言 100%
覆盖错误路径 至少 1 个错误场景
覆盖边界条件 至少 1 个边界场景
测试描述清晰 describe/it 描述有意义
2.2 项目规范遵循
# 检查代码风格
npm run lint 2>&1 | tail -20

# 检查类型安全
npm run type-check 2>&1 | tail -20

# 检查命名规范
grep -rn "let [a-z] =\|const [a-z] =" --include="*.ts" --include="*.tsx" | grep -v "for\|while\|test\|spec" | head -10

Read the full file on GitHub · 345 lines

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. 1mo ago First seen · 345 lines · 39 tokens per session scan A b7fee8a0db3c

Subscribe to this mod's changes

quality-sentinel is an agent published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 29d ago), licensed MIT. It adds 39 tokens to every session and 3,016 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other agents, from other repositories

pr-test-analyzer

Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new functionality and edge cases. Examples:\n\n \nContext: Daisy has just created a pull request with new…

anthropics/claude-code · 0 tokens

sap-test-plan-reviewer

Adversarial review of a test-case plan produced by design-cases. READS the actual ABAP source snapshot (plus findings.md, flow.md, units.md, and the TC-.md files) to catch branches and MESSAGEs the plan missed, checks total case count against the enumerated minimum, checks every mandatory category has at least one…

marcellourbani/vscode_abap_remote_fs · 161 tokens

ai-hygiene-auditor

Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.

athola/claude-night-market · 48 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens

ring:qa

Senior QA Analyst for financial systems. Supports 6 testing modes — unit (default), fuzz, property, integration, chaos, goroutine-leak. Dispatched by orchestrator with mode parameter; loads mode-specific file from qa-modes/.

LerianStudio/ring · 52 tokens

karimo-coverage-reviewer

Analyzes coverage reports and adds explanatory PR comments. Spawned by /karimo:merge when coverage reports exist. Cross-references with task briefs to explain coverage gaps.

opensesh/KARIMO · 41 tokens