agentleFS
madebyarismadebyaris/advance-minimax-m3-cursor-rules/.cursor/rules/minimax-m3-verification.mdc

advance-minimax-m3-cursor-rules / rules

Cursor rule126 starsChanged 6 months agoMITView on GitHub

Extended M3 verification playbook: proof selection, multimodal-grounded checks, shell checks, browser checks, and recovery loops.

The file

We split this minimax-m3-verification.mdc into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Prefer the smallest proof that can honestly support the user-facing claim.

    line 13
  2. Distinctive:

    If the deliverable promises a styling or toolchain layer (Tailwind, shadcn, routing, persistence), verify that layer directly — do not …

    line 15
  3. Very specific:

    Visual / design / styling claim → multimodal-grounded: read the attached image/frame, name the file path, name the region inspected, and …

    line 16
  4. Distinctive:

    Never delete, skip, loosen, widen tolerances on, or special-case a test to reach green.

    line 23
  5. Distinctive:

    Use the smallest useful command first.

    line 29
  6. Distinctive:

    Use browser verification when the user would experience the change visually or interactively:

    line 40
  7. Distinctive:

    When browser verification is unavailable, say that clearly and downgrade the claim instead of implying full proof.

    line 49
  8. Distinctive:

    Use an evidence-first loop:

    line 65
  9. Distinctive:

    Do not describe the task as complete while required verification is still failing or missing.

    line 74
  10. Distinctive:

    After two failures on the same hypothesis, document evidence and switch strategy (smaller change, wider read, one forked user question).

    line 76

≈ “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
minimax-m3-verification.mdc
---
description: "Extended M3 verification playbook: proof selection, multimodal-grounded checks, shell checks, browser checks, and recovery loops."
alwaysApply: false
---

# M3 Verification Playbook

Extends the always-on `minimax-m3-status-verification` contract with check selection, shell/browser guidance, multimodal-grounded checks, and self-review. The status labels, minimum proof table, and closeout shape live in that always-on rule — do not restate them here.

## Proof Selection

- Match the proof to the claim being made.
- Prefer the smallest proof that can honestly support the user-facing claim.
- Strengthen the proof when the claim involves runtime behavior, interaction, styling, navigation, persistence, or integration.
- If the deliverable promises a styling or toolchain layer (Tailwind, shadcn, routing, persistence), verify that layer directly — do not assume the scaffold wired it correctly.
- **Visual / design / styling claim → `multimodal-grounded`**: read the attached image/frame, name the file path, name the region inspected, and check the relevant region. Do not infer from prose or from a memory of the pre-change state. See the `minimax-m3-multimodal-input` skill for the full workflow.
- **Bug fix → red → green**: reproduce the failure with an exact check *before* fixing, then re-run that same check after. A check that was never red proves the wrong thing.

## Test Integrity During Verification

A passing check only counts as proof if the check itself was not bent:

- Never delete, skip, loosen, widen tolerances on, or special-case a test to reach green. If the test looks wrong, present the evidence to the user — changing the spec is their call.
- A new test must be able to fail: confirm it fails against the pre-fix code (or would, by construction) before counting it as proof.
- Hardcoding the expected output into production code, or branching on test-only inputs, is claim-gaming — treat the work as `blocked`, not `verified`.

## Shell-Based Checks

Use the smallest useful command first. Prefer the repo's own scripts and CI entrypoints when they exist (see core **Code Discipline**).

- JavaScript/TypeScript: `lint`, `typecheck`, `build`, targeted tests, focused scripts
- Python: `ruff`, targeted `pytest`, import or compile checks
- Go: `go build`, `go test`, `go vet`
- Rust: `cargo check`, `cargo test`, `cargo clippy`
- Flutter: `flutter analyze`, `flutter test`
- Swift: `swift build`, `swift test`, `xcodebuild` when applicable

## Browser and Surface Checks

Use browser verification when the user would experience the change visually or interactively:
- layout-sensitive UI changes
- flow or navigation regressions
- console or network failures
- styling pipeline issues
- end-to-end behavior the shell cannot prove

For purely visual claims (a screenshot already exists, or the user attached a mock), `multimodal-grounded` is the cheaper and more direct proof than a browser pass; use the browser pass when the surface is interactive.

When browser verification is unavailable, say that clearly and downgrade the claim instead of implying full proof.

## Self-Review

For non-trivial work, ask:

```text
What would break this?
What assumptions might be wrong?
Is there a simpler way?
Did I solve the actual request?
Did I re-read the post-change visual state, or am I remembering the pre-change state?
```

## When Verification Fails

Use an evidence-first loop:

```text
What failed?
What is the best current hypothesis?
What is the smallest corrective change?
What exact check will prove the fix?
```

Do not describe the task as complete while required verification is still failing or missing.

After two failures on the same hypothesis, document evidence and switch strategy (smaller change, wider read, one forked user question); do not repeat the same fix blindly. After that, use current docs or web search before another attempt.

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.