agentleFS
QadrillionQadrillion/qadrillion-agent/.cursor/rules/code-review.mdc

qadrillion-agent / rules

Cursor rule3 starsChanged 2 months agoMITView on GitHub

Source review for testable QA risks and the severity output contract. Apply when product source is accessible for QA analysis.

The file

We split this code-review.mdc into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check relevant boundaries: input partitions/limits.

    line 14
  2. Very specific:

    Read docs/reference/surfaces.md only for the affected surface.

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
code-review.mdc
---
description: Source review for testable QA risks and the severity output contract. Apply when product source is accessible for QA analysis.
globs:
  - "source/**/*"
alwaysApply: false
---

# Source review for QA

Locate changed behavior and relevant callers, compare it with requirements, and
identify testable risks. Source review complements execution. Without source,
record the gap and continue black-box testing; do not invent file references.

Check relevant boundaries: input partitions/limits; authorization by actor and
object; state transitions; failures/recovery; races, retries and idempotency;
persistence/transactions; compatibility and accessibility; sensitive data in
output; observability. Follow dependencies only to establish concrete failure
paths. ~10 files without finding the implementation is a search budget, not a
cap on a located review.

Read `docs/reference/surfaces.md` only for the affected surface. Pin source commit
and distinguish a demonstrated defect from an unexecuted risk. A missing test
ID, specific framework or preferred architecture is not itself a defect.

Output one block per actionable risk:

```
[SEVERITY] — risk, in one sentence
Location: file:line or file · symbol, at <commit>
Evidence: concrete path and precondition; observed or inferred
Test: input/state/action → expected outcome that would catch it
```

Severity: `BLOCKING`, `HIGH`, `MEDIUM`, `LOW`, grounded in impact and exposure.
End with criteria not satisfied or not assessable, and relevant behavior absent
from the requirements. No invented risks to fill a quota.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.