trader-screener
Skill14 starsChanged 29 days agoMITView on GitHub
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".
In this repository10 other files it gives its agents.
- trader-alertsSkill
- trader-analystSkill
- trader-brokerSkill
- trader-budgetSkill
- trader-copycatSkill
- trader-newsSkill
- trader-pelosiSkill
- trader-rebalanceSkill
- trader-riskSkill
- trader-taxSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 100
Never calls a passing company a buy.
- Distinctive: line 102
Never fills in a missing number or guesses a metric: missing means missing.
- Very specific: line 103
Never sends anything to /trader-budget or an order path by itself.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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):
python3 "${CLAUDE_SKILL_DIR}/screen.py" --helpWhat it reads and writes
- Metrics:
trader/metrics.jsonfrom/trader-analyst(facts.py --metrics), or any JSON list or CSV with atickercolumn. CSV numbers may carry$,%and commas. - Prices (optional):
trader/prices.json({"prices": {"AAPL": 341.27}}, any source;/trader-alertswrites it). With prices it addsprice,pe(price / trailing EPS, only when EPS is positive) andearnings_yield. - Rules: a JSON file,
rules.example.jsonin this folder to start from. - Writes
trader/shortlist.jsonwith--out: who passed, their score and why, who failed and why.
The rules file
{"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
- Turn the user's words into rules. Ask when a threshold is vague ("cheap"
means what P/E?). Write them to
trader/rules.json. - Get metrics for the candidates: run
/trader-analyston them with--metrics trader/metrics.json(itsfacts.py AAPL AXP GOOGL KO BAC --metrics trader/metrics.json), or use the user's own CSV. Prices fromtrader/prices.jsonif P/E matters. Run the screen:
python3 "${CLAUDE_SKILL_DIR}/screen.py" trader/metrics.json --rules trader/rules.json \ --prices trader/prices.json --out trader/shortlist.jsonExit code 1 means nothing passed: say so and show the closest misses.
- 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-analyston 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 missingThen 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-budgetor 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

