quality-sentinel

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

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

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.

agentmods
npx agentmods add agents/xrensiu/claude-code-forge/quality-sentinel
Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Or install forge-teams, the plugin that ships this one along with the rest of its 7 skills, 20 agents.

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. Scan, not verified.
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 $0.00039 $0.03016
Opus 5 $0.00019 $0.01508
Sonnet 5 $0.00008 $0.00603
Haiku 4.5 $0.00004 $0.00302

Measured 2d ago against content hash b7fee8a0db3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 1mo ago), licensed MIT. It adds 39 tokens to every session and 3,016 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.