minimax-m2-verification

minimax-m2-verification is a cursor rule for Cursor from madebyaris/rakitui-ai. It costs 3,590 tokens per session, scanned A, original, MIT.

A set of rules requiring generated code to be checked before it is considered complete, including compilation, interface testing, syntax checks, and production-readiness review.

In plain words
What is it for?
Use it to guide checks before and after writing JavaScript, TypeScript, or other code, including package compatibility, project patterns, and required IDE files.
Why use it?
It reduces the risk of treating code as finished when it has not been tested or when it conflicts with the project's versions and conventions.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to guide checks before and after writing JavaScript, TypeScript, or other code, including package compatibility, project patterns, and required IDE files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/madebyaris/rakitui-ai/minimax-m2-verification
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/madebyaris/rakitui-ai

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 minimax-m2-verification

README.md
[![agentmods](https://agentmods.dev/badge/rules/madebyaris/rakitui-ai/minimax-m2-verification/github.svg)](https://agentmods.dev/rules/madebyaris/rakitui-ai/minimax-m2-verification)
Your own site
<a href="https://agentmods.dev/rules/madebyaris/rakitui-ai/minimax-m2-verification"><img src="https://agentmods.dev/badge/rules/madebyaris/rakitui-ai/minimax-m2-verification/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 minimax-m2-verification

Your own site · 80×15
<a href="https://agentmods.dev/rules/madebyaris/rakitui-ai/minimax-m2-verification"><img src="https://agentmods.dev/badge/rules/madebyaris/rakitui-ai/minimax-m2-verification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,590 This file is loaded in full into every session.
When invoked 3,590 The same file — it is already loaded in full.
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.03590 $0.03590
Opus 5 $0.01795 $0.01795
Sonnet 5 $0.00718 $0.00718
Haiku 4.5 $0.00359 $0.00359

Measured 10d ago against content hash 47321013150c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

minimax-m2-verification 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 10d 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/minimax-m2-verification.mdc · 605 lines

How it starts

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

MiniMax M2.1 Verification Protocols

Code generation is NOT complete until verification passes. This rule defines mandatory verification steps.

Golden Rule

Code that isn't verified is code that doesn't work.

Every piece of generated code must be verified before considering the task complete.


Pre-Generation Checks

Before Writing ANY Code

<think>
[PRE-GENERATION CHECKLIST]

1. Package versions verified? 
   □ Searched current versions with date
   □ Checked compatibility

2. CLI tools checked?
   □ Searched for available scaffolding CLI
   □ Searched for component generation CLI

3. Project patterns understood?
   □ Read existing code for conventions
   □ Identified import patterns
   □ Noted styling approach

4. IDE project files required?
   □ If Xcode/VS/.sln needed → REFUSE, instruct user
   □ If not needed → Proceed
</think>

Language-Specific Syntax Reference

JavaScript / TypeScript

Correct Patterns:

// Variable declarations
const immutable = 'value';
let mutable = 'value';
// NEVER: var

// Async/await
async function fetchData(): Promise<Data> {
  const response = await fetch('/api');
  return await response.json();
}
// NEVER: awiat, asyc, fecth

// Arrow functions
const handler = (event: Event) => {
  event.preventDefault();
};
// NEVER: evnet, prevetDefault

// Destructuring
const { name, age } = user;
const [first, ...rest] = items;

// Template literals
const message = `Hello, ${name}!`;
// NEVER: 'Hello, ' + name + '!'

// Optional chaining
const value = obj?.nested?.property;
// NEVER: obj && obj.nested && obj.nested.property

Common Typos to Avoid:

Wrong Correct
awiat await
asyc async
fucntion function
reutrn return
conts const
lenght length
calback callback
respone response
requst request
exprot export
improt import
undefiend undefined

Read the full file on GitHub · 605 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. 10d ago First seen · 605 lines · 3,590 tokens per session scan A 47321013150c

Subscribe to this mod's changes

minimax-m2-verification is a cursor rule published in the GitHub repository madebyaris/rakitui-ai (5 stars, last pushed 7mo ago), licensed MIT. It adds 3,590 tokens to every session, about $0.0180 per session on Opus 5. 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-31.