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.
git clone --depth 1 https://github.com/juandoroteoflesiauni-lang/Market-options-stocks-ScannerWrote 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.
[](https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/110-error-handling)<a href="https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/110-error-handling"><img src="https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/110-error-handling/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.
<a href="https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/110-error-handling"><img src="https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/110-error-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02459 |
| Opus 5 | $0.00000 | $0.01229 |
| Sonnet 5 | $0.00000 | $0.00492 |
| Haiku 4.5 | $0.00000 | $0.00246 |
Grade A, and why
110-error-handling scanned grade A 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 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const apiClient = axios.create({ How it starts
The opening of the file, as written. The whole thing — 348 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🚨 MANEJO DE ERRORES Y LOGGING — TRADING TERMINAL
FILOSOFÍA: FAIL LOUDLY, NOT SILENTLY
En trading, un error silencioso puede significar:
- Orden que se envió pero no se registró
- Pérdida calculada incorrectamente
- Precio desactualizado sin que el usuario lo sepa
Cada error DEBE ser visible: al usuario, en los logs, o ambos.
🐍 JERARQUÍA DE EXCEPCIONES (Python)
# core/exceptions.py — Mapa completo de excepciones del dominio
class TradingError(Exception):
"""Base de todas las excepciones. Nunca usar directamente."""
def __init__(self, message: str, code: str = "TRADING_ERROR"):
self.message = message
self.code = code
super().__init__(message)
# ── Errores de autenticación ──────────────────────────
class UnauthorizedError(TradingError):
"""JWT inválido, expirado, o usuario sin permisos."""
def __init__(self, message: str = "No autorizado"):
super().__init__(message, "UNAUTHORIZED")
# ── Errores de validación ──────────────────────────────
class ValidationError(TradingError):
"""Input del usuario es inválido."""
def __init__(self, message: str, field: str = ""):
self.field = field
super().__init__(message, "VALIDATION_ERROR")
class InvalidSymbolError(ValidationError):
"""El símbolo de trading no existe o no está disponible."""
pass
# ── Errores financieros ────────────────────────────────
class InsufficientFundsError(TradingError):
"""No hay fondos suficientes para la operación."""
def __init__(self, required: float, available: float):
super().__init__(
f"Fondos insuficientes: necesitas ${required:.2f}, tienes ${available:.2f}",
"INSUFFICIENT_FUNDS"
)
self.required = required
self.available = available
class RiskViolationError(TradingError):
"""La operación viola las reglas de gestión de riesgo."""
def __init__(self, message: str, rule: str = ""):
self.rule = rule
super().__init__(message, "RISK_VIOLATION")
# ── Errores de órdenes ─────────────────────────────────
class OrderNotFoundError(TradingError):
"""La orden no existe o no pertenece al usuario."""
pass
class OrderAlreadyCancelledError(TradingError):
"""La orden ya fue cancelada y no se puede modificar."""
pass
class OrderExecutionError(TradingError):
"""Error al ejecutar la orden en el exchange."""
pass
# ── Errores de exchange ────────────────────────────────
class ExchangeConnectionError(TradingError):
"""Error de conexión con el exchange."""
pass
class ExchangeRateLimitError(TradingError):
"""Se alcanzó el límite de solicitudes del exchange."""
pass
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.
- 12d ago First seen · 348 lines · 0 tokens per session scan A 107e2f7f67a8
110-error-handling 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 costs nothing until one of its globs matches a file; then it loads 2,459 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
css-render-blocking-diagnosis
Cursor rule "css-render-blocking-diagnosis" from adobecom/da-express-milo, covering css render-blocking diagnosis & resolution, critical learning from 98 pagespeed achievement, primary diagnostic protocol, step 1: css blocking symptom recognition and step 2: css loading sequence audit.
modus-checkbox-value-inversion-react-short
Critical bug fix for ModusWcCheckbox value property inversion.
javascript-expert-performance
Profile first. Measure before and after. Never optimize without data.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.