Skip to main content
skill CX Codex

trader-analyst — Claude Code skill: what it does, how to install

trader-analyst is a Claude Code skill that reads company filings directly from SEC EDGAR. It compares revenue, margins, and EPS year over year before earnings trades.

MIT ★ 9,067 updated 2026-10-20

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Jakeschincariol/day-trader-skill
/plugin install day-trader-skill@day-trader-skill
Open on GitHub

What trader-analyst does

The skill runs facts.py using Python standard library to pull 10-Q, 10-K, and 8-K XBRL numbers directly from the SEC EDGAR API. It compares quarterly revenue, operating margins, net income, and diluted EPS against the identical period from the previous year, alongside trailing twelve months data.

To fetch filings, SEC mandates a declared user agent. The tool requires SEC_USER_AGENT or sec_user_agent in trader/config.json formatted as "Your Name [email protected]" and halts execution if it is missing.

Calculations identify non-recurring items when net income outpaces operating income, and derive fourth-quarter metrics from annual 10-K filings. Passing --metrics exports these financial indicators into trader/metrics.json.

What it helps with

  • compare quarterly SEC filings against the previous year
  • verify revenue, margins, and diluted EPS before holding stocks
  • export TTM financial data to metrics.json
  • summarize pasted earnings call transcripts and management guidance

Example prompts for the agent

  • Analyze earnings for TSLA and compare margins to last year
  • Run facts.py on NVDA and AMD and save output to trader/metrics.json
  • Summarize this pasted earnings call transcript focusing on guidance

How to install trader-analyst

1Plugin marketplace

/plugin marketplace add Jakeschincariol/day-trader-skill
/plugin install day-trader-skill@day-trader-skill

This installs the whole day-trader-skill plugin with all its skills

2Skills CLI (Vercel)

npx skills add Jakeschincariol/day-trader-skill --skill trader-analyst -a claude-code

3Manually: put the files in place

~/.claude/skills/trader-analyst/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/trader-analyst/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about trader-analyst

How to install trader-analyst in Claude Code?

In Claude Code, register the repository with /plugin marketplace add Jakeschincariol/day-trader-skill and run /plugin install day-trader-skill@day-trader-skill.

What does trader-analyst do?

It extracts reported XBRL figures from SEC EDGAR, aligns quarterly results year-over-year, flags one-off gains, and summarizes financial health.

What is required to run trader-analyst?

It requires Python 3 and a valid SEC_USER_AGENT with your name and email configured in trader/config.json or as an environment variable.

Source text

SKILL.md · MIT
---
name: trader-analyst
description: >-
  The Earnings Analyst. Reads a company's reported numbers straight from SEC
  EDGAR (XBRL company facts from its 10-Qs and 10-Ks, plus the latest earnings
  8-K and its press release) and sums up what changed: revenue, gross,
  operating and net margins, net income and diluted EPS, quarter by quarter,
  each against the same quarter a year earlier, with the trailing twelve
  months. Reads an earnings call transcript when you paste one. Use when the
  user says "how did Tesla's earnings look", "analyze the earnings", "what
  changed this quarter", "is revenue growing", "check the 10-Q", "compare
  margins", "sum up the call", "does it report this week", or before trading
  a stock around its earnings.
argument-hint: "[tickers]"
---

# trader-analyst

Earnings move stocks more than anything else on the calendar, and the press
release is written to put the best number first. This skill reads the numbers
the company actually filed with the SEC, lines them up quarter by quarter, and
says plainly what changed. For a day trader it answers two questions before a
trade: what did the last report say, and is the next one inside this trade?

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

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

It needs the SEC User-Agent (`sec_user_agent` in `trader/config.json`, or
`SEC_USER_AGENT`): "Your Name [email protected]" with the user's real name and
email. It refuses to call SEC without one.

## What it reads and writes

- Reads `https://data.sec.gov/api/xbrl/companyfacts/CIK##########.json` (every
  number the company has tagged in its filings), the company's submissions
  list (for the newest 10-Q or 10-K and the newest 8-K with item 2.02,
  "Results of Operations") and that 8-K's folder to find the press release
  (the EX-99.1 exhibit).
- Writes `trader/metrics.json` with `--metrics`: one row per company (TTM
  revenue, net income and diluted EPS, the latest margins and growth), for
  your notes or a spreadsheet. `metrics.example.json` in this folder is a
  real run for AAPL, AXP, GOOGL, KO and BAC on 2026-10-13.
- Earnings calls: the tool does not fetch transcripts. If the user pastes one
  (or the company's IR page has it), read it and sum up what management said
  changed: guidance, margins, demand, anything they declined to answer.
- The next report date is not in SEC data. Look for it in `/trader-news`
  headlines or on the company's investor relations page, and say where it
  came from.

## The rules

- **Filed numbers first.** The table comes from XBRL facts the company filed.
  Use the press release for context (guidance, segment colour), and say which
  numbers came from where.
- **Compare like with like.** Growth is against the same quarter a year
  earlier. Quarter-on-quarter changes are shown but many businesses are
  seasonal (Apple's December quarter is always its biggest).
- **Say what is derived.** Companies do not file a Q4 10-Q. The fourth
  quarter is the 10-K year minus the three quarters inside it and is marked
  "derived"; derived EPS is approximate.
- **Say when the data lags.** SEC's facts API can trail a filing. When the
  newest 10-Q is later than the newest quarter in the facts, the tool prints a
  NOTE with the link: read the 10-Q itself before summarising.
- **Flag one-offs.** When net income is above operating income, gains outside
  the business (investment marks, tax items) are inside it. The tool says so.
  Banks and insurers have no gross margin: blank, not zero.

## Steps

1. Run it for the companies in question (or the tickers on
   `trader/watchlist.json`):

   ```bash
   python3 "${CLAUDE_SKILL_DIR}/facts.py" TSLA
   python3 "${CLAUDE_SKILL_DIR}/facts.py" TSLA NVDA AMD --metrics trader/metrics.json
   ```

   `--quarters 8` shows two years, `--json` everything machine-readable,
   `--cik` a company without a ticker.
2. Open the latest earnings press release (the EX-99 link) and the 10-Q when
   the numbers need context, and read them.
3. Write the summary: one line on the quarter (revenue, EPS, growth), one on
   margins, one on anything unusual (a one-off, a derived quarter, data that
   lags), and the links. Plain words, real numbers, no adjectives the numbers
   do not support.
4. If the next report falls inside the planned trade (an overnight hold, or a
   report before the open), say it before `/trader-exit` sets the stop: a stop
   does not protect against a gap, the stock can open past it.

## Example: the reel's stock

`facts.py TSLA` (run 2026-10-20): quarter ending 2026-06-30 (Q2 2026),
revenue $28.24B, +25.5% against a year earlier, net income $1.11B (-4.9%),
diluted EPS $0.32 (-3.0%); gross margin 16.8% (-4.3 points on the quarter
before), operating margin 1.4%; last four quarters $103.6B revenue and $1.08
EPS. The tool flags that net income is above operating income, so gains
outside the business are inside it. Latest 10-Q filed 2026-07-23. Monday's
headlines said Tesla reports this week, so the summary ends: "The next report
is days away. A day trade that closes before the bell is not exposed to it;
anything held overnight is."

`facts.py AAPL` (2026-10-13): revenue $109.42B, +16.4% against a year
earlier, diluted EPS $2.02 (+28.7%). For Coca-Cola the tool noted that SEC's
facts stopped at 2026-04-03 while the 10-Q for 2026-07-03 was already filed,
so the summary read that 10-Q directly.

## What it never does

- Never says a stock is cheap, expensive, a buy or a sell. It reports what
  the company filed.
- Never invents a number the filings do not have, or estimates a quarter it
  cannot derive.
- Never calls SEC without the User-Agent, and stays well under 10 requests a
  second.

## Safety

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

© Jake Schincariol · MIT · Jakeschincariol/day-trader-skill

Similar skills

All skills for Finance and business →

From the same set12

The whole set →
day-trader-skill The day-trader-skill plugin for Claude Code runs eleven day trading tools including a chart scanner, news monitor, entry timer, and trade outcome simulator. ★ 9,067repo stars trader-news trader-news is a Claude Code skill that tracks stock headlines, 8-K filings, and price moves. It runs for ticker questions, morning briefs, and checks after /trader-scanner. CX Codex +1 ★ 9,067repo stars trader-exit trader-exit is a Claude Code skill that sets stops and profit targets before entering long day trades. Triggers automatically after trader-entry or on prompts like "where's my stop". CX Codex +1 ★ 9,067repo stars trader-pelosi trader-pelosi is a Claude Code skill that monitors stock trades disclosed by members of US Congress. It checks House Clerk PTR index files and extracts transactions from filed PDFs. CX Codex +1 ★ 9,067repo stars trader-entry trader-entry is a Claude Code skill that watches market bars and names an entry after a close above a level. It starts from requests to watch a ticker or check a breakout. CX Codex +1 ★ 9,067repo stars trader-alerts trader-alerts is a Claude Code skill that tracks stock prices, stop levels, and NYSE session times. Triggers when checking quotes, watching stops, or right after generating a trade plan. CX Codex +1 ★ 9,067repo stars trader-budget trader-budget is a Claude Code skill that sizes positions from a budget and per-trade loss limit. It runs on share-count requests or after trader-exit writes a plan. CX Codex +1 ★ 9,067repo stars trader-risk trader-risk is a Claude Code skill that inspects proposed orders against risk limits before passing them to the broker. It blocks entries lacking stops or exceeding daily loss caps. CX Codex +1 ★ 9,067repo stars

Project sponsors

Companies that keep this analytics open