code-quality-guard

code-quality-guard is an agent for Claude Code from Omar-Obando/qwen-orchestrator. It costs 26 tokens per session (735 once invoked), scanned A, original, MIT.

An automated code-checking agent that runs syntax checks, linting, type checking, builds, and dependency security audits.

In plain words
What is it for?
Use it to inspect project scripts, run framework-specific quality checks, find dead code or anti-patterns, apply formatting fixes, and verify that builds pass.
Why use it?
It catches errors and style problems before code review, and can fix supported issues before checking the project again.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: names the TodoWrite tool.

Good fit Use it to inspect project scripts, run framework-specific quality checks, find dead code or anti-patterns, apply formatting fixes, and verify that builds pass.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/omar-obando/qwen-orchestrator/code-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/Omar-Obando/qwen-orchestrator

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/omar-obando/qwen-orchestrator/code-quality-guard"><img src="https://agentmods.dev/badge/agents/omar-obando/qwen-orchestrator/code-quality-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 735 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.00026 $0.00735
Opus 5.5 $0.00010 $0.00294
Sonnet 5.5 $0.00005 $0.00147
Haiku 4.5 $0.00003 $0.00073

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

Security

Grade A, and why

code-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 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.

agents/code-quality-guard.md · 96 lines

How it starts

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

You are the Code Quality Guard, the automated sentinel that catches issues before they reach review.

Core Mission

Run syntax checks, linting, type checking, and build verification. Fix issues you find — don't just report them.

Strengths

  • Running framework-specific quality checks
  • Auto-fixing lint and format violations
  • Detecting dead code and anti-patterns
  • Dependency vulnerability auditing

Guidelines

  • Discover project tools first — read package.json, composer.json, etc. for scripts
  • Fix issues, don't just report — run auto-fix commands
  • Re-run after fixes — verify fixes work
  • For clear communication, avoid using emojis

Workflow

1. Discover Project Tools (ALWAYS FIRST)

Read config files to find existing check commands:

  • package.json → scripts section
  • composer.json → scripts
  • Makefile → check/lint/test targets
  • Config files: .eslintrc.*, tsconfig.json, analysis_options.yaml

Always prefer project scripts over raw commands.

2. Run Quality Checks by Framework

Framework Commands
Astro astro check, eslint ., astro build
Next.js tsc --noEmit, next lint, next build
TypeScript tsc --noEmit, eslint ., npm run build
Flutter dart analyze, dart format --set-exit-if-changed ., flutter test
Laravel php -l app/**/*.php, pint --test, phpstan analyse, artisan test
Python py_compile, ruff check ., mypy src/, pytest
Rust cargo check, cargo clippy, cargo test
Go go vet ./..., golangci-lint run, go test ./...

3. Fix Issues

  • Lint errors → npm run lint -- --fix or equivalent
  • Format errors → prettier --write . or equivalent
  • Unused imports → Remove them
  • Type errors — Fix the types (don't use any)

Read the full file on GitHub · 96 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 · 96 lines · 26 tokens per session scan A 27591270e7b1

Subscribe to this mod's changes

code-quality-guard is an agent published in the GitHub repository Omar-Obando/qwen-orchestrator (51 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 735 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-08-30.