advance-minimax-m3-cursor-rules
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 113 GitHub stars
Code Basarisiz
- child_process — Shell command execution capability in .cursor/hooks/grind.js
- execSync — Synchronous shell command execution in .cursor/hooks/grind.js
- fs module — File system access in .cursor/hooks/grind.js
Permissions Gecti
- Permissions — No dangerous permissions requested
This is a collection of rules and configurations designed to optimize the MiniMax M2.7 AI model for complex, repo-scale software engineering within the Cursor IDE. It provides structured agent collaboration, dynamic tool orchestration, and dynamic verification workflows.
Security Assessment
Overall Risk: Medium. The tool requests no dangerous permissions and contains no hardcoded secrets. However, the automated audit flagged active shell command execution capabilities within a Cursor hook file (`grind.js`). It utilizes `child_process` and `execSync` to run synchronous shell commands, alongside standard file system access. Because hook scripts run automatically based on IDE events, unauthorized or unexpected command execution is possible if the script is triggered unintentionally or modified. No malicious network activity was detected.
Quality Assessment
The project is actively maintained, with its most recent push occurring today. It is backed by a solid 71 GitHub stars, indicating a fair level of community trust and adoption. Furthermore, the code is properly open-sourced under the standard and permissive MIT license.
Verdict
Use with caution — the project is well-maintained and appears safe for AI coding assistance, but developers should manually review the `grind.js` hook script before enabling it to ensure the shell commands align with their local security standards.
Agentic-first Cursor Rules powered by MiniMax M3 - clarify-first prompting, interleaved thinking, and full tool orchestration for production-ready AI coding
MiniMax M3 Cursor Rules
A durable execution spine for repo-scale engineering, agent teams, deep skills, and dynamic tool use on M3 + Cursor 3.
Tuned for MiniMax M3 (1M-token MSA context, native multimodal input) and Cursor 3 (Agents Window, /worktree, /best-of-n, Await, MCP Apps). Written to stay useful across model changes.
Quick Start · Why This Repo · Architecture · Runtime Modes · Solver Loop · AGENTS.md · References
At A Glance
| What you get | |
|---|---|
| Lean always-on core | Two durable rules carry the execution spine — solver loop, scope control, code discipline, M3 long-context discipline, M3 multimodal input discipline, and a strict proof contract. No persona bloat. |
| Progressive depth | 16 requestable rules + 7 skill packs load only when the task needs them, so context stays clean. |
| M3 long-context discipline | 1M-token MSA context is a real lever, but the failure mode shifts to "kept too much raw output." A dedicated skill (minimax-m3-long-context) teaches the retention and compression cadence. |
| M3 multimodal-native | Image and video inputs ground visual claims (multimodal-grounded). A dedicated skill (minimax-m3-multimodal-input) teaches the design-parity and screenshot-triage workflow. |
| Cursor 3 surface | Explicit guidance for the Agents Window, /worktree, /best-of-n, Await, MCP Apps structured content, and Composer 2. |
| Honest tool use | The agent works the current runtime — no invented tools, no stale wrappers, no promises before the path is confirmed. |
| Evidence-backed closeouts | Explicit status labels (verified / unverified / blocked / multimodal-grounded) and minimum-proof rules per change type. |
| Portable | docs/AGENTS.md carries the same behavior to non-Cursor IDEs and CLIs. |
| Model-resilient | Tuned for M3 first, compatible with any Cursor-supported model. |
The bet: MiniMax doesn't get better from persona text. It gets better from cleaner context, smaller proving slices, better tool routing, and honest verification. Every rule here optimizes for that.
Quick Start
For Cursor
git clone https://github.com/madebyaris/advance-minimax-m3-cursor-rules.git
cp -r advance-minimax-m3-cursor-rules/.cursor your-project/.cursor
That's it. Two rules are always on:
.cursor/rules/minimax-m3-core.mdc— execution behavior, M3 long-context discipline, M3 multimodal input discipline.cursor/rules/minimax-m3-status-verification.mdc— status & proof contract (now includingmultimodal-grounded)
Everything else is requestable and narrower by design — it loads when the task or file globs call for it.
The official docs recommend Anthropic-compatible access for MiniMax text models, and also support OpenAI-compatible access paths. See MiniMax text generation docs · MiniMax API overview.
For Other IDEs and CLIs
Copy docs/AGENTS.md into the target repo root as AGENTS.md. It lives under docs/ here on purpose, so Cursor does not auto-activate it while you edit these rules.
Repository Layout
.cursor/
├── rules/ # 18 rules (2 always-on + 16 requestable)
│ ├── minimax-m3-core.mdc ★ always-on · execution spine + M3 disciplines
│ ├── minimax-m3-status-verification.mdc ★ always-on · proof contract (+ multimodal-grounded)
│ └── … requestable: runtime + domain
└── skills/ # 7 deep, structured skill packs
├── anti-slop-design/
├── 3d-web-experiences/
├── deep-research/
├── incident-triage-harness/
├── minimax-multimodal-toolkit/
├── minimax-m3-long-context/ # new · 1M-context retention/compression
└── minimax-m3-multimodal-input/ # new · native image/video input workflow
docs/
└── AGENTS.md # portable agent contract (non-Cursor)
examples/
└── agent-teams-product-prototype.md
Why This Repo Exists
This repo makes MiniMax M3 feel strong exactly where the M3 release puts its emphasis:
- 1M-token MSA context — and the discipline to use it without bloating
- native multimodal input (image, video) — and the discipline to ground visual claims in the actual file
- higher agentic and coding benchmarks — leveraged through role separation and explicit verification
- agent harnesses and multi-agent collaboration, including
/best-of-nas a first-class team pattern - long skill packs and detailed tool contracts that load only when relevant
- dynamic tool discovery in changing environments (Cursor 3's evolving MCP + plugin surface)
The goal is not to make MiniMax imitate another provider's tone. It is to give M3 a durable execution spine that complements its official positioning around real-world engineering, complex skills, agent workflows, long context, and multimodal grounding.
Why M3-native (and what that optimizes for)MiniMax positions M3 as a generational shift: 1M-token MSA context, native multimodal input, and higher agentic and coding benchmarks (model page).
So this repo optimizes for:
- explicit retention and compression decisions on 1M tokens (not "fit it all and hope")
- grounding every visual claim in the actual attached image/frame (
multimodal-grounded) - bounded repo exploration instead of reading everything
- smallest proving slices for large tasks
- explicit role and handoff discipline for multi-agent work, including
/best-of-nfor high-stakes choices - strong skill contracts instead of vague long prompts
- truthful runtime and verification reporting
These rules do not assume you can steer a model's internal routing through persona text. M3 swaps full attention for MiniMax Sparse Attention (MSA), which selects KV-blocks per query — and the controllable levers are still external:
- cleaner context (with explicit retention decisions)
- better decomposition
- better tool routing (including the Cursor 3 surface)
- better verification loops, including
multimodal-groundedvisual proof - clearer definitions of done
If M3 performs better after a rule change, the likely reason is improved external problem structure — not magic access to hidden experts.
The Solver Loop
The single most important behavior this repo transfers into M3:
1. Define the outcome in operational terms.
2. Inspect the repo and runtime before deciding.
3. Find the spine: entry points, data flow, state, persistence, user-visible behavior.
4. Build the smallest vertical slice that proves the feature works.
5. Verify at the surface where the user experiences the change.
- For visual claims: re-read the actual post-change frame (multimodal-grounded).
6. Expand scope only after the core slice works.
For app-building, that means: don't start with a pile of components — resolve key flows first, prove one end-to-end slice early, then add polish.
| New-app proving loop | |
|---|---|
| 1 | install / setup succeeds |
| 2 | dev server or health check starts |
| 3 | production build succeeds |
| 4 | one primary happy-path flow works |
| 5 | promised integrations (styling, routing, persistence, auth) are actually verified |
| 6 | any visual claims are multimodal-grounded (re-read the post-change frame) |
Example — for "build a task app", prioritize
create → list → complete → persist → reload. Delay filters, collaboration, settings, and animations until the core path works.
Execution Guarantees
A few behaviors the repo treats as non-negotiable:
- New packages, frameworks, and toolchains are checked against current authoritative sources before they are recommended or installed.
- Scaffolding uses the framework's official CLI /
create/initpath when one exists. - Scaffold output is inspected before continuing.
- Runnable work is not "done" until there is runnable proof, not just static confidence.
- Visual work is not "done" until the post-change frame is re-read (
multimodal-grounded). - If a required check fails or is skipped, the agent reports
blockedorimplemented but unverified— never a false completion. - Browser or user-surface verification is required for UI and interaction claims.
- Tool-based promises wait until the runtime path is confirmed.
- 1M-token context does not free the agent from compressing; it raises the cost of failing to compress.
Rule Architecture
The system is layered: a tiny always-on core, runtime rules that load on demand, and domain rules that attach via file globs. Depth lives in skills.
★ Always-On Core
| File | Purpose |
|---|---|
minimax-m3-core.mdc |
Durable execution behavior: solver loop, scope control, code discipline, M3 long-context discipline, M3 multimodal input discipline, truthful tool use, scaffold discipline, concise progress |
minimax-m3-status-verification.mdc |
Status & proof contract: exact claim labels, proof matching, multimodal-grounded visual proof, evidence-first closeouts |
Runtime Rules
| File | Purpose |
|---|---|
model-compatibility.mdc |
Prompt hierarchy, M3-first model selection, tool discipline, context control across models |
cursor-tools-mastery.mdc |
Cursor 3 tool-selection patterns: Agents Window, /worktree, /best-of-n, Await, Composer 2 |
cursor-mcp-optimization.mdc |
Browser, Figma, Cloudflare tools, MCP Apps structured content, direct action patterns |
cursor-agent-orchestration.mdc |
Multi-environment planning, /best-of-n as an orchestration primitive, Await for long-running branches |
agent-teams.mdc |
Role boundaries, multi-environment handoffs, /best-of-n as a team pattern, escalation, serial vs parallel |
tool-discovery.mdc |
Runtime tool inventory, MCP/schema discovery, MCP Apps structured content, safe fallbacks |
minimax-mcp-tools.mdc |
Current-doc retrieval, direct-tool preference, version-aware lookups, MCP Apps structured content |
minimax-m3-verification.mdc |
Proportional verification playbook (shell + browser + multimodal-grounded checks) |
minimax-m3-self-evolution.mdc |
Iterative refinement loops, compress-before-iterate, autonomous debugging |
skill-authoring.mdc |
When to use skills, how to structure them, how to declare model_assumptions |
clarify-first-prompting.mdc |
Ask only on real forks, after inspecting first |
Domain Rules
Requestable rules for cross-cutting domains — not per-language cookbooks. Language-specific idioms come from reading the repo, official docs, and the always-on Code Discipline section.
| File | Purpose |
|---|---|
language-agnostic-patterns.mdc |
SOLID, design patterns, change discipline, code-review heuristics |
design-systems.mdc |
Tokens, shadcn/ui, Tailwind v4 mechanics → aesthetics via anti-slop-design |
3d-graphics.mdc |
Three.js / R3F syntax, container sizing, import traps → quality via 3d-web-experiences |
devops-infrastructure.mdc |
Docker, k8s, Terraform, CI/CD — validate-before-apply, infra traps (lean) |
mobile-cross-platform.mdc |
Flutter / RN / Expo — CLI-first, architecture, mobile verify (lean) |
Skills
Skills keep deep, domain-specific procedures out of the always-on core, then deliver large structured guidance through progressive disclosure (SKILL.md + optional reference.md).
| Skill | Purpose |
|---|---|
anti-slop-design/ |
Category-aware design direction, anti-slop checks, UI polish, multimodal design parity from mocks |
3d-web-experiences/ |
Aesthetic direction, performance budgets, responsive WebGL, graceful degradation, multimodal reference parity |
deep-research/ |
Iterative mixed-source research, synthesis, anti-hallucination recovery, M3 long-context compression |
incident-triage-harness/ |
Production-style debugging and mitigation workflow, with M3 visual evidence handling |
minimax-multimodal-toolkit/ |
MiniMax-native image, video, voice, music, and media routing (output side) |
minimax-m3-long-context/ |
1M-token MSA context discipline: retention, compression, skill handoff, closeout context disposition |
minimax-m3-multimodal-input/ |
Native image/video input workflow: ground in the file, design parity, visual-fidelity claims |
Load a skill when the task has a repeatable workflow too detailed for the core, needs examples or category heuristics, or benefits from progressive disclosure. M3's 1M context still rewards "load the on-point skill, do not preload the catalog."
M3 Runtime Modes
MiniMax M3 (released 2026-06-01) is the target model for this repo. It ships a 1M-token MSA context window and native multimodal input (text, image, video). The repo is tuned for M3 first; it stays correct on third-party models such as composer-2, GPT, or Claude — the M3-specific sections (long-context discipline, multimodal input discipline) become inert and the always-on core continues to apply.
When working in a model that is not M3, do not promise multimodal or 1M-context behavior. The model-selection guidance in
model-compatibility.mdcis the source of truth for which capabilities the active model actually exposes.
M3 + Cursor 3 Surface
A quick reference for the new surface — when to use each.
| Surface | When to use |
|---|---|
| Agents Window | The default work surface (Cmd+Shift+P → Agents Window). Multi-workspace, multi-repo, parallel agents. |
/worktree |
Isolated git worktree. Use for risky exploration, parallel branches, anything that must not collide with the main tree. |
/best-of-n |
Run the same prompt across 2–4 models in parallel worktrees, then compare. Use for high-stakes architecture, design, or refactor decisions. |
Await |
Wait for a background shell, subagent, or a specific output token (Ready, Error). Use for long-running dev servers, parallel subagents, slow CLIs. |
| MCP Apps structured content | When an MCP tool returns structured content, prefer the structured form over prose dumping. |
| Composer 2 | Cursor's own model — fast, cheap iteration, ~61.7 Terminal-Bench 2.0 at $0.50/$2.50 per MTok. |
Tool names and command names can drift across Cursor builds. The decision still stands (use an isolated worktree for risky work; await long-running jobs; prefer structured MCP outputs); if a specific identifier is not exposed in your build, fall back to the next best exposed path.
Where M3 Feels Different
Three areas separate M3 from a generic coding model — and the optional rules / skills deepen each without bloating the core:
- 1M-token MSA + long-context discipline — explicit retention, compression, and skill-handoff rules, plus a dedicated
minimax-m3-long-contextskill. - Native multimodal input +
multimodal-groundedverification — image and video inputs ground visual claims; a dedicatedminimax-m3-multimodal-inputskill teaches the workflow. - Agent Teams on Cursor 3 — explicit roles, bounded handoffs (with environment + model fields),
/best-of-nas a first-class team pattern, andAwaitfor long-running branches.
Model Compatibility
The rules are designed to survive model changes:
- the core rule stays short and durable
- runtime-specific guidance lives in requestable rules
- tool advice is written around whatever the environment actually exposes
- version-sensitive claims are verified at runtime, not frozen into the rules
The always-on core does not depend on a specific model — it teaches tool-first, read-before-edit, scope-controlled behavior that holds across M3, Composer 2, GPT, Claude, and other strong coding models. The M3-specific sections (long-context discipline, multimodal input discipline) are inert on models that do not expose those capabilities; the agent must not promise them.
Design Principles
|
Keep the core small |
Prefer repo truth over training defaults |
|
Capability framing over persona framing |
Make acceptance explicit |
|
Trust the current environment |
No fabricated project metadata |
Example Patterns
Want concrete M3-native patterns instead of only rules? Start here:
examples/agent-teams-product-prototype.md— a bounded planner / explorer / builder / verifier workflow with M3 + Cursor 3 handoff fields (environment, model) and/best-of-n+Awaitnotes.cursor/skills/incident-triage-harness/SKILL.md— a large-skill example for incident-style debugging and mitigation, now with M3 visual-evidence handling.cursor/skills/incident-triage-harness/reference.md— companion reference showing progressive disclosure.cursor/skills/minimax-m3-long-context/SKILL.md— the 1M-context discipline skill.cursor/skills/minimax-m3-multimodal-input/SKILL.md— the visual-input workflow skill
AGENTS.md For Other IDEs and CLIs
docs/AGENTS.md is the portable, standalone version of M3 behavior for environments that use agent instruction files but don't support Cursor rules. It carries the core behavior directly instead of acting as a thin pointer.
It focuses on action-first execution, solver-loop thinking, scope control, read-before-edit discipline, proportional verification, explicit status labels (now including multimodal-grounded), M3 long-context discipline, M3 multimodal input discipline, current-source version discipline, CLI-first scaffolding, and concise communication.
To use it elsewhere: copy
docs/AGENTS.mdinto the target repo root asAGENTS.md. If you run bothAGENTS.mdand.cursor/rules, keep them aligned rather than letting them drift into contradictory layers.
Contributing
See CONTRIBUTING.md for contribution rules, the skill frontmatter contract (including the optional model_assumptions field), and placement guidance across always-on rules, requestable rules, and skills.
References
MiniMax M3- MiniMax M3 launch (VentureBeat)
- MiniMax M3 review (Thomas Wiegold)
- MiniMax Text Generation Docs
- MiniMax API Overview
- MiniMax Platform
- Cursor 3 announcement
- Cursor 3.0 changelog
- Agents Window docs
- Cursor Changelog
- Cursor Rules Docs
- Cursor Agent Best Practices
- OpenAI Codex Best Practices
- OpenAI Exec Plans
Made with care by Aris Setiawan at MiniMax
If this sharpened your agent, consider leaving a star — it helps others find it.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi