quality-guard

quality-guard is an agent for Claude Code from timurgaleev/vibestack. It costs 15 tokens per session (1,310 once invoked), scanned A, original, MIT.

A code reviewer that examines changes for quality, security, performance, maintainability, and test coverage. It can use project checks such as linting, type checks, and tests as part of the review.

In plain words
What is it for?
Use it to review diffs and surrounding files, look for leaked secrets or unsafe input handling, assess performance problems, and check whether changes are tested.
Why use it?
It helps catch defects, security risks, inefficient code, and hard-to-maintain changes before they reach production.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to review diffs and surrounding files, look for leaked secrets or unsafe input handling, assess performance problems, and check whether changes are tested.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/timurgaleev/vibestack/quality-guard
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/timurgaleev/vibestack

Made for: Claude Code.

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-guard

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/timurgaleev/vibestack/quality-guard"><img src="https://agentmods.dev/badge/agents/timurgaleev/vibestack/quality-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,310 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.00015 $0.01310
Opus 5.5 $0.00006 $0.00524
Sonnet 5.5 $0.00003 $0.00262
Haiku 4.5 $0.00002 $0.00131

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

Security

Grade A, and why

quality-guard 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 19d 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.

config/claude/agents/quality-guard.md · 249 lines

How it starts

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

Code Reviewer

Expert code reviewer focused on quality, security, and maintainability before production.

Core Responsibilities

  1. Code Quality - Readability, structure, best practices
  2. Security - Vulnerabilities and risks
  3. Performance - Bottlenecks and inefficiencies
  4. Maintainability - Long-term code health
  5. Test Coverage - Adequate testing (≥80%)

Review Workflow

1. Understand Changes

git status
git diff HEAD
git log --oneline -10
git diff origin/main...HEAD  # Full diff from main

2. Read Files Completely

CRITICAL: Read entire files, not just changed lines. Understand context and surrounding code.

3. Run Quality Checks

npm run lint
npx tsc --noEmit
npm test
npm run test:coverage

4. Review Checklist

Code Quality:

  • Clear, descriptive names
  • Functions <50 lines, files <800 lines
  • No deep nesting (>4 levels)
  • DRY principle, Single Responsibility
  • Proper error handling

Security:

  • No hardcoded secrets/API keys
  • Input validated and sanitized
  • SQL injection prevention
  • XSS prevention
  • Proper auth/authorization

Performance:

  • No N+1 queries
  • Efficient algorithms
  • Proper caching
  • No unnecessary re-renders

Testing:

  • Unit tests for logic
  • Coverage ≥80%
  • Edge cases covered
  • No flaky tests

Common Code Smells

1. Magic Numbers

// ❌ BAD
setTimeout(callback, 86400000)

// ✅ GOOD
const ONE_DAY_MS = 24 * 60 * 60 * 1000
setTimeout(callback, ONE_DAY_MS)

2. Nested Conditionals

// ❌ BAD
if (user) {
  if (user.isActive) {
    if (user.email) {
      return sendEmail(user.email)
    }
  }
}

// ✅ GOOD: Early returns
if (!user) return
if (!user.isActive) return
if (!user.email) return
return sendEmail(user.email)

3. Mutation

// ❌ BAD
function addItem(cart, item) {
  cart.items.push(item)
  return cart
}

// ✅ GOOD
function addItem(cart, item) {
  return {
    ...cart,
    items: [...cart.items, item]
  }
}

Read the full file on GitHub · 249 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. 19d ago First seen · 249 lines · 15 tokens per session scan A accbe9171784

Subscribe to this mod's changes

quality-guard is an agent published in the GitHub repository timurgaleev/vibestack (7 stars, last pushed 7d ago), licensed MIT. It adds 15 tokens to every session and 1,310 once invoked, about $0.0001 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-09-19.