stock-screener

stock-screener is a skill for Claude Code from nicepkg/ai-workflow. It costs 35 tokens per session (2,311 once invoked), scanned A, original, MIT.

A stock-filtering tool that finds companies matching financial measures such as price-to-earnings ratio, market value, dividend yield, and growth rate.

In plain words
What is it for?
Use it with CSV stock data to filter, rank, group by sector, compare selected companies, and export the results as CSV, JSON, or formatted reports.
Why use it?
It reduces the time spent searching through large stock lists and makes it easier to compare companies using consistent criteria.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it with CSV stock data to filter, rank, group by sector, compare selected companies, and export the results as CSV, JSON, or formatted reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nicepkg/ai-workflow/stock-screener
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.

Any agent
npx skills add nicepkg/ai-workflow --skill stock-screener
Clone the repo
git clone --depth 1 https://github.com/nicepkg/ai-workflow

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 stock-screener

README.md
[![agentmods](https://agentmods.dev/badge/skills/nicepkg/ai-workflow/stock-screener/github.svg)](https://agentmods.dev/skills/nicepkg/ai-workflow/stock-screener)
Your own site
<a href="https://agentmods.dev/skills/nicepkg/ai-workflow/stock-screener"><img src="https://agentmods.dev/badge/skills/nicepkg/ai-workflow/stock-screener/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 stock-screener

Your own site · 80×15
<a href="https://agentmods.dev/skills/nicepkg/ai-workflow/stock-screener"><img src="https://agentmods.dev/badge/skills/nicepkg/ai-workflow/stock-screener.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,311 The whole file, excluding the scripts and references it only reads on demand.
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.00035 $0.02311
Opus 5.5 $0.00014 $0.00924
Sonnet 5.5 $0.00007 $0.00462
Haiku 4.5 $0.00003 $0.00231

Measured 2mo ago against content hash 971182ceaa13, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stock-screener 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/stock_screener.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

workflows/stock-trader-workflow/.claude/skills/stock-screener/SKILL.md · 317 lines

How it starts

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

Stock Screener

Filter stocks by financial metrics and perform comparative analysis.

Features

  • Multi-Metric Filtering: P/E, P/B, market cap, dividend yield, etc.
  • Custom Screens: Save and reuse filter combinations
  • Comparative Analysis: Side-by-side stock comparison
  • Sector Analysis: Group and analyze by sector
  • Ranking: Score and rank stocks by criteria
  • Export: CSV, JSON, formatted reports

Quick Start

from stock_screener import StockScreener

screener = StockScreener()

# Load stock data
screener.load_csv("stocks.csv")

# Apply filters
results = screener.filter(
    pe_ratio=(0, 20),
    market_cap_min=1e9,
    dividend_yield_min=2.0
)

print(results)

CLI Usage

# Basic screening
python stock_screener.py --input stocks.csv --pe-max 20 --div-min 2.0

# Multiple filters
python stock_screener.py --input stocks.csv --pe 5 25 --pb-max 3 --cap-min 1B

# Sector filter
python stock_screener.py --input stocks.csv --sector Technology --pe-max 30

# Rank by metric
python stock_screener.py --input stocks.csv --rank-by dividend_yield --top 20

# Compare specific stocks
python stock_screener.py --input stocks.csv --compare AAPL MSFT GOOGL

# Export results
python stock_screener.py --input stocks.csv --pe-max 15 --output screened.csv

Input Format

Stock CSV

symbol,name,sector,price,pe_ratio,pb_ratio,market_cap,dividend_yield,eps,revenue_growth,profit_margin
AAPL,Apple Inc,Technology,175.50,28.5,45.2,2.8e12,0.5,6.16,8.5,25.3
MSFT,Microsoft,Technology,380.00,35.2,12.8,2.8e12,0.8,10.79,12.3,36.7
JNJ,Johnson & Johnson,Healthcare,155.00,15.2,5.8,3.8e11,2.9,10.20,5.2,22.1

API Reference

StockScreener Class

class StockScreener:
    def __init__(self)

    # Data Loading
    def load_csv(self, filepath: str) -> 'StockScreener'
    def load_dataframe(self, df: pd.DataFrame) -> 'StockScreener'

    # Filtering
    def filter(self, **criteria) -> pd.DataFrame
    def filter_by_sector(self, sectors: List[str]) -> 'StockScreener'
    def filter_by_metric(self, metric: str, min_val: float = None,
                         max_val: float = None) -> 'StockScreener'

    # Screening Presets
    def value_screen(self) -> pd.DataFrame
    def growth_screen(self) -> pd.DataFrame
    def dividend_screen(self) -> pd.DataFrame
    def quality_screen(self) -> pd.DataFrame
    def custom_screen(self, criteria: Dict) -> pd.DataFrame

    # Analysis
    def compare(self, symbols: List[str]) -> pd.DataFrame
    def rank_by(self, metric: str, ascending: bool = True) -> pd.DataFrame
    def sector_summary(self) -> pd.DataFrame
    def metric_distribution(self, metric: str) -> Dict

    # Scoring
    def score_stocks(self, weights: Dict[str, float] = None) -> pd.DataFrame
    def percentile_rank(self, metrics: List[str]) -> pd.DataFrame

    # Export
    def to_csv(self, filepath: str) -> str
    def to_json(self, filepath: str) -> str
    def summary_report(self) -> str

Read the full file on GitHub · 317 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 317 lines · 35 tokens per session scan A 971182ceaa13

Subscribe to this mod's changes

stock-screener is a skill published in the GitHub repository nicepkg/ai-workflow (298 stars, last pushed 10mo ago), licensed MIT. It adds 35 tokens to every session and 2,311 once invoked, about $0.0001 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-09-03.

Related

stock-screener compared with skills from other repositories

stock-screener next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stock-screenernicepkg/ai-workflowSkill29810mo agoMITA35Claude Code
budget-allocationopen-octo/octo-agentSkill160yesterdayMITA104Claude Code, Codex
invinoveritasbabyblueviper1/invinoveritasSkill7yesterdayApache-2.0A175Claude Code, Codex
financial-analysisspytensor/openmoziSkill4423mo agoMITA47Claude Code
polymarketgraniet/kheishSkill20923d agoApache-2.0A33Claude Code, Codex
qcc-ownership-tracezhanglunet/qccSkill25mo agoApache-2.0A231Claude Code, Codex
qcc-risk-screenzhanglunet/qccSkill25mo agoApache-2.0A279Claude Code, Codex