architect

A set of coding rules for a development environment using Unity, FastMCP, and React. It defines preferred programming practices, error handling, logging, and packaging standards.

In plain words
What is it for?
Guide implementation and review work in Unity, FastMCP, and React projects, including exception handling, logging, tool design, and package creation.
Why use it?
It gives the agent consistent project rules and reduces bugs, unclear failures, and unfinished placeholder code.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/sandraschi/ocr-mcp/architect
Clone the repo
git clone --depth 1 https://github.com/sandraschi/ocr-mcp

Made for: Cursor.

Per session 811 This file is loaded in full into every session.
When invoked 811 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00811 $0.00811
Opus 5 $0.00405 $0.00405
Sonnet 5 $0.00162 $0.00162
Haiku 4.5 $0.00081 $0.00081

Measured yesterday against content hash 1205c6bdf862, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

architect scanned grade C with 1 finding 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 yesterday.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **FORBIDDEN**: `&&`, `||`, `mkdir -p`, `rm -rf`, `cp -r`.
Origin

This is a copy

100% identical to architect — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/architect.mdc · 49 lines

How it starts

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

🛠️ System Context & Environment

  • Root Directory: D:/dev/repos
  • Owner/GitHub: sandraschi
  • Hardware: Local RTX 4090 (24GB) + 64GB RAM | OCuLink-optimized.
  • Inference: DeepSeek-R1-Vibe (32B Reasoning Distill).

🧠 Core Partner Mindset (Materialist/Reductionist)

  • Zero-Inference Rule: Prioritize technical truth over agreement. Challenge sub-optimal logic.
  • Anti-Gaslight: No mocks, no placeholders. All code must be functional.
  • No Conversation Fluff: No emojis, apologies, or "rah-rah." Be academic and direct.
  • Slop (LDDO) Prevention: High-density code only. Use early returns and guard clauses.
  • Disciplined Programming: ZERO uncaught exceptions. Extensive try-except/try-catch blocks. No silent failures.
  • Extensive Logging: Use proper logger modules. NO naked print() or Console.Log() statements.

🔌 FastMCP 2.14 Engineering (Backend)

  • Framework: Use FastMCP 2.14 and Python 3.13+.
  • Pattern: Leverage @mcp.tool() for side effects and @mcp.resource() for data loading.
  • Context Usage: Mandatory ctx: Context parameter to utilize ctx.info() and ctx.report_progress().
  • Packaging: Create .mcpb packages in the dist/ folder. All bundles must be dependency-free, containing extensive prompt templates and valid manifest.json examples.
  • Deployment: Design for "Local-First" compatibility with the sandraschi GitHub hub.

🎨 React & Tailwind Standards (Frontend)

  • Architecture: Functional components with TypeScript interfaces. Avoid Enums; use Const Objects/Maps.
  • Styling: Tailwind CSS ONLY. Use cn() utility for conditional classes. No inline CSS.
  • Mobile-First: Responsive by default using sm:, md:, lg: breakpoints.
  • Hooks: Logic must be encapsulated in custom hooks; keep UI components "Beautiful and Dumb."

🚀 Execution Protocol

  1. Search Before Build: Grep D:/dev/repos for existing patterns first.
  2. Path Mapping: All file ops must target the local D:/dev/repos structure.
  3. Reasoning Budget: Use <think> for architecture and data flow simulation.
  4. Git Discipline: Atomic commits only for the sandraschi GitHub account.

Read the full file on GitHub · 49 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. yesterday First seen · 49 lines · 811 tokens per session scan C 1205c6bdf862

Subscribe to this mod's changes

architect is a cursor rule published in the GitHub repository sandraschi/ocr-mcp (19 stars, last pushed 3d ago), licensed MIT. It adds 811 tokens to every session, about $0.0041 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). It is 100% identical to architect, differing in 0 lines, and is treated as a copy.