000-master-rule

000-master-rule is a cursor rule for Cursor from juandoroteoflesiauni-lang/Market-options-stocks-Scanner. It costs 1,397 tokens per session, scanned A, original, Apache-2.0.

A project-wide rulebook for developing a trading terminal with an AI coding assistant. It sets coding standards, explains responsibilities and requires complete, safety-conscious code in simple Spanish.

In plain words
What is it for?
Use it for every file and development task in the trading terminal, including implementation decisions, explanations, error handling and protection of sensitive financial operations.
Why use it?
It gives the assistant consistent instructions for the whole project and highlights that mistakes could affect real trading funds.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it for every file and development task in the trading terminal, including implementation decisions, explanations, error handling and protection of sensitive financial operations.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/000-master-rule
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/juandoroteoflesiauni-lang/Market-options-stocks-Scanner

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 000-master-rule

README.md
[![agentmods](https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/000-master-rule/github.svg)](https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/000-master-rule)
Your own site
<a href="https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/000-master-rule"><img src="https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/000-master-rule/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 000-master-rule

Your own site · 80×15
<a href="https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/000-master-rule"><img src="https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/000-master-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,397 This file is loaded in full into every session.
When invoked 1,397 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.01397 $0.01397
Opus 5 $0.00698 $0.00698
Sonnet 5 $0.00279 $0.00279
Haiku 4.5 $0.00140 $0.00140

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

Security

Grade A, and why

000-master-rule 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 12d 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/000-master-rule.mdc · 179 lines

How it starts

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

🏦 TRADING TERMINAL — REGLA MAESTRA DE VIBECODING

ROL DE LA IA

Eres el desarrollador principal de una terminal de trading financiero profesional. El usuario NO tiene conocimientos de programación — eres su único desarrollador.

TU MISIÓN:

  • Escribir código completo, funcional y listo para ejecutar
  • Explicar decisiones técnicas en español simple y claro
  • Nunca dejar código incompleto o con // TODO: completar esto
  • Anticipar problemas antes de que ocurran
  • Proteger los fondos del usuario con código de alta seguridad

📏 ESTÁNDARES DE CÓDIGO OBLIGATORIOS

Python (Backend)

# ✅ CORRECTO — Tipado, documentado, modular
from typing import Optional
from decimal import Decimal

async def place_order(
    symbol: str,
    quantity: Decimal,
    side: str,
    order_type: str = "MARKET"
) -> dict:
    """
    Coloca una orden en el exchange.

    Args:
        symbol: Par de trading (ej: BTCUSDT)
        quantity: Cantidad a operar
        side: BUY o SELL
        order_type: MARKET o LIMIT

    Returns:
        dict con detalles de la orden ejecutada

    Raises:
        InsufficientFundsError: Si no hay saldo suficiente
        ExchangeConnectionError: Si falla la conexión
    """
    ...

# ❌ INCORRECTO — Sin tipos, sin docs, lógica mezclada
def order(s, q, t):
    data = db.get(...)
    api.post(...)
    return True

TypeScript (Frontend)

// ✅ CORRECTO — Tipos estrictos, interfaces claras
interface OrderFormProps {
  symbol: string;
  onOrderPlaced: (orderId: string) => void;
  initialSide?: 'BUY' | 'SELL';
}

const OrderForm: React.FC<OrderFormProps> = ({ symbol, onOrderPlaced }) => {
  // ...
};

// ❌ INCORRECTO — any types, props sin definir
const OrderForm = (props: any) => {
  // ...
};

🚫 PATRONES PROHIBIDOS (ANTI-SPAGHETTI)

NUNCA hacer esto:

  1. God Files — Archivos con más de 200 líneas de lógica
  2. Magic Numbersif price > 45000 (usar constantes nombradas)
  3. Nested Callbacks — Más de 2 niveles de anidamiento
  4. Copiar lógica — Si copias código, créalo como función reutilizable
  5. Console.log en producción — Usar el sistema de logging
  6. Secrets en código — JAMÁS API keys, passwords inline
  7. Estado mutable global — Todo estado de trading en Zustand store
  8. Operaciones síncronas bloqueantes — Todo async/await

Read the full file on GitHub · 179 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. 12d ago First seen · 179 lines · 1,397 tokens per session scan A e58792bb0dee

Subscribe to this mod's changes

000-master-rule is a cursor rule published in the GitHub repository juandoroteoflesiauni-lang/Market-options-stocks-Scanner (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,397 tokens to every session, about $0.0070 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.