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/02-data-models)<a href="https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/02-data-models"><img src="https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/02-data-models/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/02-data-models"><img src="https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/02-data-models.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.00026 | $0.01217 |
| Opus 5 | $0.00013 | $0.00609 |
| Sonnet 5 | $0.00005 | $0.00243 |
| Haiku 4.5 | $0.00003 | $0.00122 |
Grade A, and why
02-data-models 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🏛️ DATA MODELING — GOBERNANZA FINOS CDM v3.0
PRINCIPIO FUNDAMENTAL
Todo dato que cruce una frontera de fase DEBE ser:
- Pydantic
BaseModelconmodel_config = ConfigDict(frozen=True) - Validado al construirse (Pydantic v2 lo hace automático)
- Con
data_lineage: DataLineageobligatorio — NUNCA opcional - Con
exchange_timestampen UTC timezone-aware
Un MarketSnapshot sin linaje es un "dato huérfano" → rechazado por cualquier motor Fase B/C.
PATRÓN BASE — MarketSnapshot
from pydantic import BaseModel, ConfigDict, Field, field_validator
from decimal import Decimal
from datetime import datetime
class DataLineage(BaseModel):
model_config = ConfigDict(frozen=True)
source: str # "fmp" | "massive" | "local"
ingestion_latency_ms: int = Field(ge=0)
raw_field_count: int = Field(ge=0)
class MarketSnapshot(BaseModel):
model_config = ConfigDict(frozen=True)
ticker: str
exchange: str
price: Decimal = Field(ge=Decimal("0")) # ← Decimal, nunca float
volume: int = Field(ge=0)
exchange_timestamp: datetime # ← debe ser UTC aware
data_lineage: DataLineage # ← JAMÁS Optional
@field_validator("ticker")
@classmethod
def ticker_uppercase(cls, v: str) -> str:
return v.upper().strip()
@field_validator("exchange_timestamp")
@classmethod
def must_be_utc(cls, v: datetime) -> datetime:
if v.tzinfo is None:
raise ValueError("exchange_timestamp debe ser UTC aware")
return v
MODELOS DERIVADOS — Herencia correcta
# ✅ CORRECTO — extiende sin debilitar el contrato
class EnrichedSnapshot(MarketSnapshot):
vpin_score: float
ofi_score: float
# frozen=True heredado automáticamente
# ❌ PROHIBIDO — debilita el tipo de precio
class BadSnapshot(MarketSnapshot):
price: float # Tipo más débil → RECHAZAR
# ❌ PROHIBIDO — hace el linaje opcional
class IncompleteSnapshot(MarketSnapshot):
data_lineage: DataLineage | None = None # RECHAZAR
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.
- 11d ago First seen · 146 lines · 1,217 tokens per session scan A b52d1345b932
02-data-models 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 26 tokens to every session and 1,217 once invoked, about $0.0001 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.
Other cursor rules, from other repositories
llm-cost-latency-budget
Model the cost and latency of an LLM feature before it ships and surprises the bill. Use when asked to estimate LLM API costs, set a latency/token budget, decide which model tier to use, or bring down the cost of an AI feature. Produces a cost & latency budget — token math per request, monthly cost projection, model…
mcp_tools
A guide for configuring and using MCP data tools. MCP is a way for an AI assistant to connect to external tools and data sources, such as research databases, financial data, and web search.
cur-focus-data-engineer
Builds reliable ingest and transformation pipelines for AWS CUR 2.0, Azure Cost Management exports, GCP billing export, and the FOCUS specification. Turns raw vendor exports into a trusted cost warehouse.
ml-workload-cost-optimizer
Specialist in ML training and inference cost -- GPU selection, spot strategies, multi-region training, inference optimization via quantization and batching, and managed-service tradeoffs (SageMaker / Vertex AI / Azure ML).
006_Program_of_Thought_Tutorial
DSPY 3 Program of Thought Tutorial - Production code reasoning system from official DSPy 3.0.1 tutorial.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.