Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/HomenShum/NodeBenchAInpx agentmods add rules/homenshum/nodebenchai/gemini_qa_loopWrote 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.
[](https://agentmods.dev/rules/homenshum/nodebenchai/gemini_qa_loop)<a href="https://agentmods.dev/rules/homenshum/nodebenchai/gemini_qa_loop"><img src="https://agentmods.dev/badge/rules/homenshum/nodebenchai/gemini_qa_loop/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.
<a href="https://agentmods.dev/rules/homenshum/nodebenchai/gemini_qa_loop"><img src="https://agentmods.dev/badge/rules/homenshum/nodebenchai/gemini_qa_loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00889 |
| Opus 5.5 | $0.00000 | $0.00356 |
| Sonnet 5.5 | $0.00000 | $0.00178 |
| Haiku 4.5 | $0.00000 | $0.00089 |
Grade A, and why
gemini_qa_loop 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.
How it starts
The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Gemini QA Loop — Automated UI/UX Quality Gate
Continuous dogfood loop using Gemini 3 Flash vision to score and fix UI/UX issues automatically.
Pipeline Steps (in order)
# 1. Build production bundle
npx vite build
# 2. Ensure preview server is running (port 4173)
npx vite preview --host 127.0.0.1 --port 4173 &
# 3. Capture screenshots via e2e test
BASE_URL=http://127.0.0.1:4173 npx playwright test tests/e2e/full-ui-dogfood.spec.ts --project=chromium --workers=1
# 4. Publish screenshots to public/dogfood/
npm run dogfood:publish
# 5. Record walkthrough video
node scripts/ui/recordDogfoodWalkthrough.mjs --baseURL http://127.0.0.1:4173 --publish static
# 6. Run Gemini QA (sends screenshots + video to Gemini 3 Flash for scoring)
BASE_URL=http://127.0.0.1:4173 node scripts/ui/runDogfoodGeminiQa.mjs
# 7. Read results
# Score + summary printed to stdout
# Full JSON: .tmp/dogfood-gemini-qa/screens-qa.json and video-qa.json
# History: public/dogfood/qa-results.json
Scoring Formula
Score = 100 - (P1_count × 6) - (P2_count × 2) - (P3_count × 1)
- P1: Major polish (low contrast, missing focus state, misleading UI) — 6 pts each
- P2: Minor polish (spacing, inconsistent styling, empty state copy) — 2 pts each
- P3: Nit (alignment, minor label wording) — 1 pt each
Fix Strategy Per Severity
P1 Fixes (highest ROI — each fix recovers 6 points)
- Low contrast text: Check dark mode. Use
dark:text-gray-300minimum. - Missing focus styling: Add
focus-visible:ring-2 focus-visible:ring-blue-500. - Missing visual hierarchy: Add left border accent, font weight differentiation, size stepping.
- Poor empty states: Add icon + descriptive copy + CTA button.
- Misleading labels: Show exact price/data, add tooltips.
P2 Fixes (each recovers 2 points)
- Spacing: Standardize gaps. Date formats: Use
month: 'short'. Icon contrast:dark:bg-indigo-500/25min.
Loop Protocol
while score < target:
1. Read .tmp/dogfood-gemini-qa/screens-qa.json and video-qa.json
2. Fix all P1s first (highest ROI), then easy P2s
3. npx vite build && run e2e + publish + record + Gemini QA
4. Read new score
5. If 3 consecutive rounds without improvement → change strategy
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.
- 1mo ago First seen · 86 lines · 0 tokens per session scan A 05b86c9342ba
gemini_qa_loop is a cursor rule published in the GitHub repository HomenShum/NodeBenchAI (15 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 889 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-08-30.
Other cursor rules, from other repositories
testing
Guidelines for writing tests, especially integration tests with fixtures.
hatch3r-browser-verification
Playwright browser verification protocol for UI changes — spec-run-first invocation contract with non-launderable result tokens, exploratory snapshot-mode driving, and accessibility spot-checks.
hatch3r-testing
Coverage thresholds, mocking strategy, property-based testing, mutation-score targets, flaky test quarantine, and snapshot test discipline.
xiigen-e2e-test-matrix
Design end-to-end coverage across critical paths. Use for release readiness, user workflows, UI/API flows, and adapter validation.
xiigen-user-journey-testing
Validate work through a realistic user path. Use for UX, tool workflows, onboarding, and generated instructions.
test-engineer
Test Engineer agent.