quality-report

quality-report is a cursor rule for Cursor from louisbrulenaudet/monorepo-template. It costs 0 tokens per session (998 once invoked), scanned A, original, Apache-2.0.

A pull-request report that compares newly added or removed unused code and duplicated code. It posts the findings as a non-blocking comment, so the report does not by itself prevent a merge.

In plain words
What is it for?
It helps review unused code detected by Knip and duplicated code detected by jscpd against the pull request's merge base.
Why use it?
It keeps older code-quality findings from obscuring what a pull request changed. It also ensures tool failures are reported rather than appearing as a clean result.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths.

Good fit It helps review unused code detected by Knip and duplicated code detected by jscpd against the pull request's merge base.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/louisbrulenaudet/monorepo-template/quality-report
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/louisbrulenaudet/monorepo-template

Made for: Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/quality-report/github.svg)](https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/quality-report)
Your own site
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/quality-report"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/quality-report/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-report

Your own site · 80×15
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/quality-report"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/quality-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 998 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.00000 $0.00998
Opus 5.5 $0.00000 $0.00399
Sonnet 5.5 $0.00000 $0.00200
Haiku 4.5 $0.00000 $0.00100

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

Security

Grade A, and why

quality-report 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.

.cursor/rules/ops/quality-report.mdc · 28 lines

How it starts

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

Code Quality Report

quality.yml posts one sticky PR comment listing the unused code (Knip) and duplication (jscpd) a PR adds or resolves; pre-existing findings stay out. Workflow-wide rules (pins, permissions, install, cache key): ci.mdc.

Invariants

  • Never blocking: not in the main ruleset, never a ci.yml step. Findings keep Analyze green; only a tool that could not run turns it red (build-report.mjs exits 1 after writing the comment), so a crash never reads as clean. Every tool step is continue-on-error: true and reports through steps.<id>.outcome, so one crash never hides the other tool.
  • Diff against the merge base: the checkout is the PR merge commit at fetch-depth: 2, so HEAD^1 is the exact base the merge lands on, with no full history. Knip runs both passes on both sides - the base in a git worktree with its own install, knip.jsonc, and scripts - keyed by type, file, and symbol, never by line. Every pnpm --dir "$BASE_DIR" command (the install and both Knip runs) passes --runtime-on-fail=warn: the base runs on the PR's Node, and pnpm enforces devEngines.runtime on install, run, and exec alike, so a PR that bumps the Node major would otherwise fail on the base and skip every tool. Knip gates nothing, so the base carries findings of its own: only the base run keeps them out of the report and yields the resolved ones.
  • jscpd diffs in both directions with its own fingerprints: the PR scanned with --baseline-from-ref "$BASE_SHA" marks new clones; the base worktree scanned with --baseline-from-ref "$GITHUB_SHA" marks the clones the PR removed. Both runs use the PR's binary and .jscpd.json (--config), so a config change never shows as a diff.
  • Write token isolated: analyze (contents: read) restores ci.yml's pnpm store with actions/cache/restore and never saves it; comment (pull-requests: write) runs no PR code, only changesets/action/pr-comment with update-id: code-quality, fed through job outputs. Fork PRs skip comment and keep the job summary.
  • pr-comment searches only the first 30 comments, so a PR that already had 30 when its first report posted gets a new comment per run; the report posts on opened, before that happens.
  • Concurrency is keyed by PR number with cancel-in-progress: one run per PR, and a cancelled run never reaches comment, so the comment only moves forward. Its footer names the analyzed commits.

Read the full file on GitHub · 28 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 Changed · +1 lines 13bfb88a52d8
  2. 1mo ago Changed 5337b2c27074
  3. 1mo ago Changed ad96570583be
  4. 2mo ago First seen · 27 lines · 0 tokens per session scan A f3db9ca768cc

Subscribe to this mod's changes

quality-report is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 8d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 998 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-10-01.

Related

quality-report compared with cursor rules from other repositories

quality-report next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
quality-reportlouisbrulenaudet/monorepo-templateCursor rule198d agoApache-2.0A0Cursor
reviewJkudjo/oh-my-cursorCursor rule117d agoMITA16Cursor
analyzeJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
pr-reviewsteipete/agent-rulesCursor rule5.7k7mo agoMITA518Cursor
code-analysissteipete/agent-rulesCursor rule5.7k7mo agoMITA245Cursor
general_clean_code_principlesnphausg/ai-agent-skillsCursor rule24mo agoApache-2.0A6Cursor
optimize-dry-solid-principles-cursorrules-prompt-fPatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A150Cursor