nfl-analytics: Instructions file for Claude Code

CLAUDE.md

nfl-analytics CLAUDE.md is an instructions file for Claude Code 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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is parthakker/nfl-analytics's own configuration. It tells Claude Code how to work on nfl-analytics 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 nfl-analytics configures →

Reuse

Borrowing it

Nothing to install: this file belongs to parthakker/nfl-analytics. 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/parthakker/nfl-analytics/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/parthakker/nfl-analytics

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/parthakker/nfl-analytics/claude-md/github.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/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 nfl-analytics CLAUDE.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.02205 $0.02205
Opus 5.5 $0.00882 $0.00882
Sonnet 5.5 $0.00441 $0.00441
Haiku 4.5 $0.00220 $0.00220

Measured 2mo ago against content hash abf83614244c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (1 stars, last pushed 11d ago), licensed MIT. It adds 2,205 tokens to every session, about $0.0088 per session on Opus 5.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.

Related

nfl-analytics CLAUDE.md compared with instructions from other repositories

nfl-analytics CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nfl-analytics CLAUDE.mdparthakker/nfl-analyticsInstructions file111d agoMITA2,205Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode