qcheck

qcheck is a command for Claude Code from brianmontero18/dev-mcp-tools. It costs 0 tokens per session (547 once invoked), scanned A, original, MIT.

A command that performs a broad, sceptical code review using checklists for functions, tests, security, performance, and implementation quality.

In plain words
What is it for?
Type `qcheck` after major implementation work to review both production code and tests, then use its findings to guide fixes.
Why use it?
It helps expose defects, fragile tests, unnecessary complexity, unsafe patterns, and missing edge cases after a substantial change.

Command for Claude Code

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 commands/brianmontero18/dev-mcp-tools/qcheck
Clone the repo
git clone --depth 1 https://github.com/brianmontero18/dev-mcp-tools

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 qcheck

README.md
[![agentmods](https://agentmods.dev/badge/commands/brianmontero18/dev-mcp-tools/qcheck.svg)](https://agentmods.dev/commands/brianmontero18/dev-mcp-tools/qcheck)
Your own site
<a href="https://agentmods.dev/commands/brianmontero18/dev-mcp-tools/qcheck"><img src="https://agentmods.dev/badge/commands/brianmontero18/dev-mcp-tools/qcheck.svg" alt="Measured on agentmods" 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 547 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.00000 $0.00547
Opus 5 $0.00000 $0.00273
Sonnet 5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00055

Measured 3d ago against content hash 1c578e1af217, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

qcheck 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 3d 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.

.claude/commands/qcheck.md · 67 lines

What it actually says

QCHECK - Comprehensive Code Review

When user types "qcheck", execute this workflow as a SKEPTICAL senior software engineer:

1. Major Changes Analysis

For every MAJOR code change (skip minor changes):

A. Writing Functions Best Practices (CLAUDE.md)

  1. ✅ Can you read the function and easily follow what it's doing?
  2. ✅ Does the function have acceptable cyclomatic complexity?
  3. ✅ Are optimal data structures/algorithms used?
  4. ✅ Are there any unused parameters?
  5. ✅ Are unnecessary type casts avoided?
  6. ✅ Is the function easily testable without heavy mocking?
  7. ✅ Are hidden dependencies minimized?
  8. ✅ Is the function name the best among alternatives?

B. Writing Tests Best Practices (CLAUDE.md)

  1. ✅ Are inputs parameterized (no magic literals)?
  2. ✅ Can tests fail for real defects (not trivial)?
  3. ✅ Do test descriptions match assertions?
  4. ✅ Are expectations independent of implementation?
  5. ✅ Do tests follow prod code standards?
  6. ✅ Are invariants/properties tested when possible?
  7. ✅ Are tests grouped by function name?
  8. ✅ Are strong assertions used over weak ones?
  9. ✅ Are edge cases covered?
  10. ✅ Type checker catches relevant conditions?

C. Implementation Best Practices (CLAUDE.md)

  1. ✅ Were clarifying questions asked?
  2. ✅ Was approach drafted for complex work?
  3. ✅ Were pros/cons listed for multiple approaches?

Response Template

🔍 **QCHECK - Senior Engineer Review**

**Major Changes Reviewed:**
- [List major functions/components reviewed]

**Function Quality Analysis:**
[For each major function]
- **Function**: `functionName`
  - ✅/❌ Readability: [assessment]
  - ✅/❌ Complexity: [cyclomatic complexity check]
  - ✅/❌ Testability: [mocking requirements]
  - ✅/❌ Naming: [compared to alternatives]

**Test Quality Analysis:**
[For each major test]
- **Test**: `testName`
  - ✅/❌ No magic literals
  - ✅/❌ Can fail for real defects
  - ✅/❌ Description matches assertion
  - ✅/❌ Edge cases covered

**Implementation Process:**
- ✅/❌ Clarifying questions asked
- ✅/❌ Approach properly planned
- ✅/❌ Alternatives considered

**Concerns/Recommendations:**
[List any issues found with specific suggestions]

**Overall Assessment:** ✅ Ready to ship / ⚠️ Needs revision / ❌ Major issues
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. 3d ago First seen · 67 lines · 0 tokens per session scan A 1c578e1af217

Subscribe to this mod's changes

qcheck is a command published in the GitHub repository brianmontero18/dev-mcp-tools (0 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 547 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.