Reddit-Options-Trader-ROT-: Instructions file for Claude Code

CLAUDE.md

Reddit-Options-Trader-ROT- CLAUDE.md is an instructions file for Claude Code from Mattbusel/Reddit-Options-Trader-ROT-. It costs 3,978 tokens per session, scanned A, original, MIT.

A contributor guide for ROT, a Reddit options-trading project. It documents repository freshness requirements, a rule requiring at least twice as much test code as production code, and related review commands.

In plain words
What is it for?
Use it before modifying ROT features, modules, routes, tables, or configuration, and before committing code that must meet the test-to-production ratio.
Why use it?
It sets strict checks for keeping the worktree current and ensuring feature changes are accompanied by enough tests.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; positional $N argument.

This is Mattbusel/Reddit-Options-Trader-ROT-'s own configuration. It tells Claude Code how to work on Reddit-Options-Trader-ROT- itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Reddit-Options-Trader-ROT- configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Mattbusel/Reddit-Options-Trader-ROT-. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Mattbusel/Reddit-Options-Trader-ROT-/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Mattbusel/Reddit-Options-Trader-ROT-

Made for: Claude Code.

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 Reddit-Options-Trader-ROT- CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mattbusel/reddit-options-trader-rot-/claude-md/github.svg)](https://agentmods.dev/instructions/mattbusel/reddit-options-trader-rot-/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mattbusel/reddit-options-trader-rot-/claude-md"><img src="https://agentmods.dev/badge/instructions/mattbusel/reddit-options-trader-rot-/claude-md/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 Reddit-Options-Trader-ROT- CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mattbusel/reddit-options-trader-rot-/claude-md"><img src="https://agentmods.dev/badge/instructions/mattbusel/reddit-options-trader-rot-/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,978 This file is loaded in full into every session.
When invoked 3,978 The same file — it is already loaded in full.
Security scan A 1 finding. 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.03978 $0.03978
Opus 5 $0.01989 $0.01989
Sonnet 5 $0.00796 $0.00796
Haiku 4.5 $0.00398 $0.00398

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

Security

Grade A, and why

Reddit-Options-Trader-ROT- CLAUDE.md 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 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

prod = int(subprocess.check_output('find src/rot -name \"*.py\" -exec wc -l {} + | tail -1 | awk \"{print \\$1}\"', shell=True))
CLAUDE.md · 238 lines

How it starts

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

CLAUDE.md — ROT (Reddit Options Trader)

UPDATE RULE: Any agent modifying features, modules, routes, tables, or config MUST update this doc AND the relevant docs/*.md file before the task is complete.

CRITICAL: Worktree Is Stale

The local worktree may not reflect the latest commits on GitHub. ALWAYS run git pull origin main before any analysis, counting, or code review. The GitHub repo is the source of truth. Never trust local file counts without pulling first.

MANDATORY: 2:1 Test-to-Production Ratio

BLOCKING REQUIREMENT: Every commit MUST maintain a minimum 2:1 test-to-production code ratio.

Current baseline:

  • Production: 58,863 LOC
  • Test: 117,726 LOC (2.0:1 ratio)

Rules:

  1. Before committing: Calculate test ratio. Verify ratio ≥ 2.0:1
  2. New production code: MUST be accompanied by 2× test code in the same commit
  3. Deleting production code: Preserve or increase test code (don't delete tests)
  4. No exceptions: This applies to all code - features, fixes, refactors

Verification command:

python -c "
import subprocess
prod = int(subprocess.check_output('find src/rot -name \"*.py\" -exec wc -l {} + | tail -1 | awk \"{print \\$1}\"', shell=True))
test = int(subprocess.check_output('find tests -name \"*.py\" -exec wc -l {} + | tail -1 | awk \"{print \\$1}\"', shell=True))
ratio = test / prod
print(f'Test-to-Prod Ratio: {ratio:.2f}:1')
assert ratio >= 2.0, f'BLOCKED: Ratio {ratio:.2f}:1 < 2.0:1 requirement'
print('✅ PASSED: 2:1 ratio requirement met')
"

Why this matters: This codebase is historic. No other production system has achieved 2:1 test coverage at scale. This is our standard. This is our legacy.

Quick Reference

Key Value
Stack Python 3.12, FastAPI, Jinja2, Tailwind CSS, Chart.js, HTMX, aiosqlite, PRAW
Entry python -m rot.app.server (web+pipeline), python -m rot.app.main (one-shot)
Layout src/rot/ (setuptools src-layout), tests/ (~2048+ pytest tests)
Config ROT_* env vars via Pydantic Settings (src/rot/core/config.py)
DB SQLite + aiosqlite (WAL mode), 33+ tables (src/rot/storage/database.py)
Deploy Railway (Docker, /app/data persistent volume)

Read the full file on GitHub · 238 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 · 238 lines · 3,978 tokens per session scan A 09aa41c6f299

Subscribe to this mod's changes

Reddit-Options-Trader-ROT- CLAUDE.md is an instructions file published in the GitHub repository Mattbusel/Reddit-Options-Trader-ROT- (12 stars, last pushed 4mo ago), licensed MIT. It adds 3,978 tokens to every session, about $0.0199 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens