---
name: trader-screener
description: >-
  The Stock Screener. Checks a list of companies against the user's own rules (revenue growth, margins, EPS, P/E, earnings yield, sector, anything in the metrics file), says exactly which rule each company passes or fails and by how much, and ranks the ones that pass into a shortlist. Reads the metrics /trader-analyst writes from SEC filings, or any CSV. Use when the user says "screen for stocks", "find me companies that", "filter my watchlist", "which of these pass my rules", "shortlist candidates", "rank these stocks", or "growing companies under 30 times earnings".
argument-hint: "[metrics file] [--rules rules.json]"
title: trader-screener
canonical_url: https://skilld.dev/gh/jakeschincariol/trader-skill/trader-screener
last_updated: 2026-10-31T12:30:53.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [rules.example.json](https://skilld.dev/api/skills-raw/jakeschincariol/trader-skill/trader-screener/rules.example.json), [screen.py](https://skilld.dev/api/skills-raw/jakeschincariol/trader-skill/trader-screener/screen.py).
>
> If the user asked to install this Skill, run `npx skilld install jakeschincariol/trader-skill/trader-screener`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/trader-screener`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/jakeschincariol/trader-skill/trader-screener) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/trader-screener`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/trader-screener --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/trader-screener --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# trader-screener

A screen turns "I want profitable companies that are still growing and not
too expensive" into rules a computer can check, and shows its work: every
pass and every fail comes with the number and the threshold.

Tool in this folder (standard library Python, no network):

```bash
python3 "${CLAUDE_SKILL_DIR}/screen.py" --help
```

## What it reads and writes

- Metrics: `trader/metrics.json` from `/trader-analyst` (`facts.py --metrics`),
  or any JSON list or CSV with a `ticker` column. CSV numbers may carry `$`,
  `%` and commas.
- Prices (optional): `trader/prices.json` (`{"prices": {"AAPL": 341.27}}`,
  any source; `/trader-alerts` writes it). With prices it adds `price`, `pe`
  (price / trailing EPS, only when EPS is positive) and `earnings_yield`.
- Rules: a JSON file, `rules.example.json` in this folder to start from.
- Writes `trader/shortlist.json` with `--out`: who passed, their score and
  why, who failed and why.

## The rules file

```json
{"name": "Growing, profitable, not priced for perfection",
 "rules": [{"metric": "revenue_growth_yoy", "op": ">=", "value": 10},
           {"metric": "operating_margin", "op": ">=", "value": 25},
           {"metric": "pe", "op": "<=", "value": 35}],
 "rank":  [{"metric": "revenue_growth_yoy", "order": "desc", "weight": 2},
           {"metric": "pe", "order": "asc", "weight": 1}],
 "missing": "fail"}
```

Ops: `>`, `>=`, `<`, `<=`, `==`, `!=`, `between` ([low, high]), `in` and
`not in` (a list, for tickers or sectors to leave out). `"missing": "fail"`
fails a company that lacks a metric a rule needs (banks have no operating
margin in SEC's facts); `"skip"` ignores that rule for it and says so.
Ranking scores each passing company 0 to 1 per rank metric and takes the
weighted average.

## Steps

1. Turn the user's words into rules. Ask when a threshold is vague ("cheap"
   means what P/E?). Write them to `trader/rules.json`.
2. Get metrics for the candidates: run `/trader-analyst` on them with
   `--metrics trader/metrics.json` (its `facts.py AAPL AXP GOOGL KO BAC
   --metrics trader/metrics.json`), or use the user's own CSV. Prices from
   `trader/prices.json` if P/E matters.
3. Run the screen:

   ```bash
   python3 "${CLAUDE_SKILL_DIR}/screen.py" trader/metrics.json --rules trader/rules.json \
     --prices trader/prices.json --out trader/shortlist.json
   ```

   Exit code 1 means nothing passed: say so and show the closest misses.
4. Report the shortlist with the reasons, the misses with the numbers that
   failed, and the dates the numbers are from (the latest quarter end per
   company, the price date). Suggest `/trader-analyst` on the top names before
   anything else.

## Example: the reel's five

Metrics from SEC for AAPL, AXP, GOOGL, KO and BAC, prices at the 2026-10-13
close, and `rules.example.json`:

```
Growing, profitable, not priced for perfection: 2 of 5 companies pass.
 1. PASS GOOGL  Alphabet Inc.  score 0.75   (growth 24.2, P/E 17.8)
 2. PASS KO     COCA COLA CO   score 0.25   (growth 12.1, P/E 28.3)
    FAIL AAPL   pe 39.2, needs <= 35
    FAIL BAC    operating_margin is missing
    FAIL AXP    revenue_growth_yoy 8.6, needs >= 10; operating_margin is missing
```

Then the caveats a careful analyst adds: Alphabet's latest quarter has net
income above operating income (gains outside the business), and Coca-Cola's
numbers stop at the quarter ending 2026-04-03 because SEC's facts lag its
latest 10-Q.

## What it never does

- Never calls a passing company a buy. A screen is a filter on reported
  numbers, not a recommendation.
- Never fills in a missing number or guesses a metric: missing means missing.
- Never sends anything to `/trader-budget` or an order path by itself.

## Safety

Education and tooling, not financial advice. This skill only filters numbers.
Nothing places an order except `/trader-broker`, after `/trader-risk` passes
and the user types an explicit yes for that order.
