batch-scanner

batch-scanner is a skill for Claude Code, Codex from mphinance/alpha-skills. It costs 61 tokens per session (604 once invoked), scanned A, original, MIT.

A batch stock screener that runs a selected set of market-screening strategies and sends the results to Google Sheets, with one sheet tab per strategy. Stock screening means filtering stocks for patterns such as momentum, volatility, company quality, or options activity.

In plain words
What is it for?
Use it for nightly or weekend scans, refreshing screening tabs, running selected strategies, or checking which strategies are available.
Why use it?
It removes the need to run each scan separately and organize the results by hand. It can also be run in a dry-run mode or prepared for scheduled scans.

Skill for Claude CodeCodex

Part of the quant-skills plugin — 20 skills shipped together

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 skills/mphinance/alpha-skills/batch-scanner
Any agent
npx skills add mphinance/alpha-skills --skill batch-scanner
Clone the repo
git clone --depth 1 https://github.com/mphinance/alpha-skills

Made for: Claude Code, Codex.

Or install quant-skills, the plugin that ships this one along with the rest of its 20 skills.

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 batch-scanner

README.md
[![agentmods](https://agentmods.dev/badge/skills/mphinance/alpha-skills/batch-scanner.svg)](https://agentmods.dev/skills/mphinance/alpha-skills/batch-scanner)
Your own site
<a href="https://agentmods.dev/skills/mphinance/alpha-skills/batch-scanner"><img src="https://agentmods.dev/badge/skills/mphinance/alpha-skills/batch-scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 The whole file, excluding the scripts and references it only reads on demand.
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.00061 $0.00604
Opus 5 $0.00030 $0.00302
Sonnet 5 $0.00012 $0.00121
Haiku 4.5 $0.00006 $0.00060

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

Security

Grade A, and why

batch-scanner 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.

plugins/quant-skills/skills/batch-scanner/SKILL.md · 69 lines

How it starts

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

Batch Scanner

Runs every screening strategy in sequence and pushes results to Google Sheets (one tab per strategy). Cron-ready for scheduled scans.

Usage

python batch_scanner.py                 # run all → Sheets
python batch_scanner.py --dry-run       # print, don't send
python batch_scanner.py --strategies "Momentum with Pullback,MEME Screen"
python batch_scanner.py --list          # show valid strategy names

Available strategies

Strategy Surfaces
Momentum with Pullback Multi-timeframe EMA stack + oscillator pullback
Volatility Squeeze Coiled stocks ready to break out (ATR compression)
MEME Screen Top 30 by IV from top 200 by volume
Small Cap Multibaggers Quality small caps, growth + positive FCF
Gamma Scan Stocks near high open-interest option strikes
EMA Cross Momentum Bullish EMA crossover
Bearish EMA Cross (Down) Bearish EMA crossover

For the Squeeze / Momentum strategies' entry logic, see the momentum-squeeze skill.

Setup

  1. pip install pandas requests python-dotenv tradingview-screener yfinance scikit-learn
  2. Create .env with GOOGLE_SHEETS_WEBHOOK=https://script.google.com/macros/s/<id>/exec
  3. Deploy google_sheets_script_v2.js as an Apps Script Web App (Execute as Me, access Anyone); copy the URL into .env.

Cron (weekdays 4 PM)

0 16 * * 1-5 cd /path/to/project && .venv/bin/python batch_scanner.py >> logs/batch.log 2>&1

Output columns

ScanTime · Symbol · Company · WeekEnding · <strategy-specific> · CurrentPrice (live via GOOGLEFINANCE).

Troubleshooting

Issue Fix
"GOOGLE_SHEETS_WEBHOOK not configured" Create .env with the webhook URL
"Sheets error: 302" Redeploy Apps Script with Anyone access
"Unknown strategy" Run --list for valid names
Slow scans MEME / Gamma fetch option data — expected

Source

Full guide: BATCH_SCANNER_README.md.

Read the full file on GitHub · 69 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 · 69 lines · 61 tokens per session scan A 44c9571aaf46

Subscribe to this mod's changes

batch-scanner is a skill published in the GitHub repository mphinance/alpha-skills (19 stars, last pushed 6d ago), licensed MIT. It adds 61 tokens to every session and 604 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

lbo-model

This skill should be used when completing LBO (Leveraged Buyout) model templates in Excel for private equity transactions, deal materials, or investment committee presentations. The skill fills in formulas, validates calculations, and ensures professional formatting standards that adapt to any template structure.

anthropics/financial-services · 57 tokens

audit-xls

Audit a spreadsheet for formula accuracy, errors, and common mistakes. Scopes to a selected range, a single sheet, or the entire model (including financial-model integrity checks like BS balance, cash tie-out, and logic sanity). Triggers on "audit this sheet", "check my formulas", "find formula errors", "QA this…

anthropics/financial-services · 104 tokens

model-update

Update financial models with new data — quarterly earnings, management guidance, macro changes, or revised assumptions. Adjusts estimates, recalculates valuation, and flags material changes. Use after earnings, guidance updates, or when assumptions need refreshing. Triggers on "update model", "plug earnings", "refresh…

anthropics/financial-services · 82 tokens

tres-upload-tx-header-validation

The exact column header names required by the TRES Finance bulk transaction CSV upload. Use whenever building, fixing, or validating the header row of a TRES manual transaction or sub-transaction upload CSV — especially after an upload fails with "Missing required column(s): ...". Trigger phrases include: 'fix my CSV…

anthropics/claude-plugins-community · 151 tokens

comps-analysis

Build institutional-grade comparable company analyses with operating metrics, valuation multiples, and statistical benchmarking in Excel/spreadsheet format. Perfect for: Public company valuation (M&A, investment analysis) Benchmarking performance vs. industry peers Pricing IPOs or funding rounds Identifying valuation…

anthropics/financial-services · 126 tokens

comp-sheet

Build an industry comp sheet Excel model with deep operational KPIs.

daloopa/investing · 15 tokens