language-agnostic-patterns

language-agnostic-patterns is a cursor rule for Cursor from madebyaris/advance-minimax-m3-cursor-rules. It costs 37 tokens per session (2,896 once invoked), scanned A, original, MIT.

A collection of programming and architecture patterns, including SOLID, clean code, and common ways to structure software, usable across languages.

In plain words
What is it for?
Refactoring modules, designing abstractions, reviewing architecture, reducing real duplication, and choosing suitable design patterns.
Why use it?
It helps choose abstractions only when they solve an existing problem, avoiding extra layers and concepts that make code harder to follow.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Refactoring modules, designing abstractions, reviewing architecture, reducing real duplication, and choosing suitable design patterns.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/madebyaris/advance-minimax-m3-cursor-rules/language-agnostic-patterns
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/advance-minimax-m3-cursor-rules

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 language-agnostic-patterns

README.md
[![agentmods](https://agentmods.dev/badge/rules/madebyaris/advance-minimax-m3-cursor-rules/language-agnostic-patterns/github.svg)](https://agentmods.dev/rules/madebyaris/advance-minimax-m3-cursor-rules/language-agnostic-patterns)
Your own site
<a href="https://agentmods.dev/rules/madebyaris/advance-minimax-m3-cursor-rules/language-agnostic-patterns"><img src="https://agentmods.dev/badge/rules/madebyaris/advance-minimax-m3-cursor-rules/language-agnostic-patterns/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 language-agnostic-patterns

Your own site · 80×15
<a href="https://agentmods.dev/rules/madebyaris/advance-minimax-m3-cursor-rules/language-agnostic-patterns"><img src="https://agentmods.dev/badge/rules/madebyaris/advance-minimax-m3-cursor-rules/language-agnostic-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,896 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.00037 $0.02896
Opus 5 $0.00018 $0.01448
Sonnet 5 $0.00007 $0.00579
Haiku 4.5 $0.00004 $0.00290

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

Security

Grade A, and why

language-agnostic-patterns 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/language-agnostic-patterns.mdc · 477 lines

How it starts

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

Language-Agnostic Programming Patterns

Universal principles for structure, naming, architecture, and testing — applicable across all languages.

Load this rule when refactoring modules, designing abstractions, reviewing architecture, or choosing patterns. For day-to-day coding workflow (read-before-edit, CI discovery, minimal diff, verification), the always-on core Code Discipline section is canonical — do not duplicate it here. For the judgment layer — root-cause method, simplicity taste, test integrity — load fable5-coding-craft alongside this rule.


Pattern Judgment (Read First)

Everything below is vocabulary, not a checklist. Frontier-quality code applies patterns reactively — when the code's actual pain demands them — never proactively because a situation pattern-matches a textbook example.

  • Every pattern has a cost: indirection, a new concept for readers, more files to trace through. Apply one only when the pain it removes is already present, not predicted.
  • The strongest signal for an abstraction is the third occurrence of real duplication with identical reasons to change. Two similar blocks that change for different reasons are not duplication — unifying them couples things that must stay free.
  • SOLID violations matter when they cause observed friction (a class you cannot test, a switch you keep re-editing). A small concrete class that "violates SRP" but has never needed to change is fine code — leave it alone.
  • The best architecture for most changes is the one the repo already has. Pattern fluency is mostly for reading existing designs and for naming the structure a refactor is already growing toward.
  • When reviewing, flag pattern overuse with the same severity as pattern absence: a Strategy with one strategy, a Factory with one product, or an interface with one implementation is indirection without payoff.

Change Discipline

  • Solve the requested problem with the smallest vertical slice; expand only after it works.
  • Prefer extending existing modules over creating parallel implementations.
  • When adding a dependency, confirm the repo does not already solve the same need.
  • Keep public surfaces stable unless the task explicitly requires a breaking change.
  • Leave the codebase in a compilable, testable state after each meaningful step.

Read the full file on GitHub · 477 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 · 477 lines · 37 tokens per session scan A 9b1aecce9736

Subscribe to this mod's changes

language-agnostic-patterns is a cursor rule published in the GitHub repository madebyaris/advance-minimax-m3-cursor-rules (125 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 2,896 once invoked, about $0.0002 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-30.