nfl-analytics CLAUDE.md

nfl-analytics CLAUDE.md is an instructions file for coding agents from parthakker/nfl-analytics. It costs 2,205 tokens per session, scanned A, original, MIT.

A project instruction file for an NFL analytics repository, including its warehouse, commands, query practices, testing, and data workflows. An analytics warehouse is a structured store of data used to answer questions with queries.

In plain words
What is it for?
Use it when working in the repository to query its DuckDB database, rebuild data and views, run tests, handle front-end or automation tasks, and follow its release process.
Why use it?
It gives the coding agent the project’s local rules, reducing mistakes such as writing to the database during analysis or querying the wrong tables. It also points to the commands and documentation needed for routine work.

Instructions file

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 instructions/parthakker/nfl-analytics/claude-md
Clone the repo
git clone --depth 1 https://github.com/parthakker/nfl-analytics

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 nfl-analytics CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/parthakker/nfl-analytics/claude-md.svg)](https://agentmods.dev/instructions/parthakker/nfl-analytics/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/parthakker/nfl-analytics/claude-md"><img src="https://agentmods.dev/badge/instructions/parthakker/nfl-analytics/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,205 This file is loaded in full into every session.
When invoked 2,205 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02205 $0.02205
Opus 5 $0.01103 $0.01103
Sonnet 5 $0.00441 $0.00441
Haiku 4.5 $0.00220 $0.00220

Measured 4d ago against content hash abf83614244c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nfl-analytics CLAUDE.md 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 4d 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.

CLAUDE.md · 139 lines

How it starts

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

NFL Analytics Warehouse

Repo: https://github.com/parthakker/nfl-analytics (public, MIT). Local git identity is Parth's personal email (repo-local config). data/* (except the three hand-curated JSONs), *.duckdb, and logs/ are gitignored — fresh clones rebuild via nfl refresh --bootstrap. Commit when Parth asks; follow /release for the ritual.

Personal NFL analyst project. Questions are answered by running SQL against nfl.duckdb (DuckDB, repo root) — computed answers, not retrieval. Before non-trivial SQL, load the warehouse-queries skill (table grid, view catalog, query patterns); per-table dictionaries live in docs/dictionary/*.md.

How to query

python -c "import duckdb; con=duckdb.connect('nfl.duckdb', read_only=True); print(con.execute('''<SQL>''').fetchdf().to_string())"

Always read_only=True for analysis. Never write to any *.duckdb outside the build scripts (enforced by permissions.deny).

Commands

  • nfl <cmd> (or python -m nfl_analytics.cli <cmd>): refresh / rebuild / views / audit / smoke / weather / train / news / kalshi / fixture. Rebuild = nfl rebuild then nfl views (~60s).
  • Tests: pytest tests/unit (fast, no DB) · pytest -m warehouse (real-DB invariants) · pytest -m api (TestClient contracts) · cd web/ui && npm run e2e (Playwright vs live server). Prefer running single tests, not the whole suite. CI runs unit + fixture tiers (NFL_TEST_USE_FIXTURE=1).
  • Chat answer quality has its own suite: python scripts/run_chat_evals.py (evals/, 28 questions × 4 moments). Costs real API budget and is manual — re-run the affected --moment slice after editing CLAUDE.md, mcp_server.py or chat.py, and --compare against the previous run dir.
  • UI rebuild after web/ui edits: cd web/ui && npm run build.
  • Jarvis (primary UI): "NFL Jarvis" shortcut or python web/run_web.py (:8000). Legacy Streamlit lives in legacy/ — frozen, don't extend.

Front end

web/ — FastAPI routers (web/api/) + React/Vite/Tailwind SPA (web/ui/). Nav is 6 sections + More: Today / · Scores /scores · Teams /teams · Players /players · Betting /betting · Learn /knowledge; under More sit Leaders, Coaches, Refs, H2H, Markets, News. Details are singular (/team/:code, /player/:gsis, /coach/:name, /matchup/:gameId). Old paths redirect, unknown paths go to /. Ctrl-K is a moded command palette (jump / > commands / ? analyst) in components/CommandPalette.tsx.

Read the full file on GitHub · 139 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. 4d ago First seen · 139 lines · 2,205 tokens per session scan A abf83614244c

Subscribe to this mod's changes

nfl-analytics CLAUDE.md is an instructions file published in the GitHub repository parthakker/nfl-analytics (0 stars, last pushed 4d ago), licensed MIT. It adds 2,205 tokens to every session, about $0.0110 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-31.