К основному содержанию
скилл CX Codex

trader-pelosi — скилл для Claude Code: что делает и как установить

Скилл trader-pelosi для Claude Code отслеживает биржевые сделки членов Конгресса США по отчётам PTR. Находит новые публикации в базе Палаты представителей и разбирает PDF на строки.

MIT ★ 9 067 обновлён 2026-10-20

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add Jakeschincariol/day-trader-skill
/plugin install day-trader-skill@day-trader-skill
Открыть на GitHub

Что делает trader-pelosi

Скилл отслеживает публичные отчёты Periodic Transaction Reports (PTR), которые члены Палаты представителей США обязаны подавать по закону STOCK Act. Скрипт ptr.py загружает ежегодный индексный архив с сайта клерка Палаты представителей, сравнивает идентификаторы документов со списком в trader/state/pelosi.json и находит свежие записи. При наличии файла trader/portfolio.json инструмент сверяет найденные сделки с позициями пользователя.

Для обработки PDF используется утилита pdftotext из пакета poppler или чтение документа агентом напрямую. Отчёт раскладывается на таблицу с указанием владельца актива, тикера, диапазона суммы, дат операции и раскрытия, а также параметров опционов. Раскрытия запаздывают на срок до 45 дней после совершения сделки, поэтому данные показывают только прошлые операции.

Для работы нужен Python 3 со стандартной библиотекой. Отчёты Сената США скрипт не скачивает автоматически из-за соглашения на государственном портале: их требуется открывать вручную через браузер.

Какие задачи решает

  • отслеживать сделки членов Конгресса США по отчётам PTR
  • находить новые декларации в индексе клерка Палаты представителей
  • извлекать параметры опционов, тикеры и диапазоны сумм из PDF
  • сверять публичные отчёты политиков со своим списком акций

Примеры запросов агенту

  • Проверь новые сделки Nancy Pelosi через trader-pelosi
  • Покажи последние отчёты PTR по Josh Gottheimer
  • Разбери отчёт DocID 20035143 из базы Палаты представителей

Как установить trader-pelosi

1Через маркетплейс плагинов

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

Команда ставит плагин day-trader-skill целиком, со всеми его скиллами

2Через Skills CLI (Vercel)

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

3Вручную: положить файлы

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

Папка скилла целиком; для одного проекта — .claude/skills/trader-pelosi/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о trader-pelosi

Как установить trader-pelosi в Claude Code?

Выполните команду /plugin marketplace add Jakeschincariol/day-trader-skill, а затем завершите установку командой /plugin install day-trader-skill@day-trader-skill.

Что делает trader-pelosi?

Скилл скачивает официальные отчёты PTR о сделках членов Палаты представителей США, фиксирует новые записи и разбирает PDF на понятные строки с тикерами, датами и суммами.

Что нужно для работы trader-pelosi?

Требуется Python 3 со стандартной библиотекой. Для быстрого локального чтения PDF пригодится утилита pdftotext из poppler, а поиск по Сенату США выполняется вручную через браузер.

Исходный текст

SKILL.md · MIT
---
name: trader-pelosi
description: >-
  The Pelosi Tracker. Watches the stock trades members of Congress must
  disclose under the STOCK Act: reads the House Clerk's public Periodic
  Transaction Reports (PTRs) as soon as they are posted, alerts once per new
  filing, and turns each PDF into clean rows (who, owner, stock, ticker,
  buy or sell, options strike and expiry, trade date, amount range, how many
  days it took to disclose). Flags trades in stocks you hold. Senate reports
  are covered by a documented manual route. Use when the user says "what is
  Pelosi buying", "track Nancy Pelosi", "Congress trades", "politician stock
  trades", "did any congressman buy X", "alert me when Pelosi files", or
  "run the Pelosi skill".
argument-hint: "[member name] [--read]"
---

# trader-pelosi

Members of Congress have to report their trades, their spouse's and their
dependent children's. The House Clerk posts every report as a PDF and lists
them all in one index file per year. This skill reads that index, notices the
moment a new report appears, and reads the report for you.

It is fast. It is not early. A PTR is due within 30 days of the member
learning of the trade and never more than 45 days after it, so by the time
anyone can read it the trade is days or weeks old. There is no inside
information here: only public filings, read quickly. Say that every time.

Tool in this folder (standard library Python; `pdftotext` from poppler is
optional, to read the PDFs locally):

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

## What it reads and writes

- Reads `https://disclosures-clerk.house.gov/public_disc/financial-pdfs/<YEAR>FD.zip`
  (one `<Member>` per filing: name, district, FilingType, FilingDate, DocID)
  and each PTR at `.../public_disc/ptr-pdfs/<YEAR>/<DocID>.pdf`.
- Writes `trader/state/pelosi.json` (the DocIDs already shown, so each PTR
  alerts once) and keeps downloaded PDFs in `trader/state/ptr-pdfs/`.
- Reads `trader/portfolio.json` (if it exists) to flag trades in what you hold.

## The rules

- **Quote the filing, not a tracker.** Every row comes from the PTR PDF on the
  Clerk's site, with its DocID and link. Third-party trackers are fine for
  browsing but can be off (Capitol Trades showed Pelosi's trade dates one day
  earlier than her PTRs). The PTR wins.
- **Amounts are ranges.** "$1,000,001 - $5,000,000", never "$3 million".
- **Owner matters.** SP is the spouse, JT joint, DC a dependent child, blank
  the member. Pelosi's 2026 trades are all SP: Paul Pelosi.
- **Say the delay.** Each row shows how many days passed between the trade
  and the filing; over 45 is flagged as late.
- **Options are options.** A call bought with a strike and an expiry is not
  a share purchase. The tool reads contracts, strike and expiry from the
  description and marks exercises.

## Step 1: what has been filed

```bash
python3 "${CLAUDE_SKILL_DIR}/ptr.py" index --member pelosi
python3 "${CLAUDE_SKILL_DIR}/ptr.py" index --since 2026-10-01        # every member
python3 "${CLAUDE_SKILL_DIR}/ptr.py" index --member "Josh Gottheimer" --year 2025
```

`--member` takes a last name, "First Last" or "Last, First", and repeats.
`--type ''` lists every filing type (annual reports are type O).

## Step 2: watch for new ones

```bash
python3 "${CLAUDE_SKILL_DIR}/ptr.py" new --member pelosi --read
```

Shows only PTRs not seen at the last check (the first run shows the last 45
days), downloads and reads them with `--read`, and records them in the state
file. Exit code 1 means nothing new. In January it also checks last year's
index. The Clerk rebuilds the index file about once a day (the copy read on
2026-10-13 was stamped 09:00 that morning), so checking every hour on weekdays
is plenty: run it with `/loop 1h` or a scheduled task.

## Step 3: read a report

```bash
python3 "${CLAUDE_SKILL_DIR}/ptr.py" fetch 20035143
python3 "${CLAUDE_SKILL_DIR}/ptr.py" parse ptr.txt --filed 2026-08-21 --json
```

`fetch` saves the PDF and, if `pdftotext` is installed, prints the rows. If it
is not installed, open the saved PDF and read it directly: you can read PDFs.
`parse` turns `pdftotext -layout` text into rows. Check the row count against
the PDF when a report runs over several pages.

## Example: a real alert

```
NEW Periodic Transaction Report: Hon. Nancy Pelosi (CA11) filed 2026-08-21, doc 20035143
  - spouse purchase, Bloom Energy Corporation Class A Common Stock (BE): 100 call
    options, $100 strike, expires 2027-06-17, $1,000,001 - $5,000,000, traded
    2026-07-24, disclosed 28 days later
```

The same PTR also shows 10,000 and 5,000 BE shares, a second block of 100 BE
calls on 07/28, Intel shares and 50 Intel calls ($50 strike, 6/17/27), and a
private real estate LLC with no ticker. Her other 2026 PTRs: 20033725
(01/23), 20034836 (06/23, Intel and Uber calls) and 20035553 (10/02, a real
estate LLC). Then: "This is a public disclosure filed 28 days after the trade.
It says what Paul Pelosi bought in July, not what anyone will buy next."

If the user wants to act on it, it goes the long way: a disclosure is weeks
old, so it is a reason to look at a chart, not a setup. `/trader-scanner`
and `/trader-entry` decide if there is a trade today; then shares only (the
config has `allow_options: false`), sized by `/trader-budget`, checked by
`/trader-risk`, placed by `/trader-broker` only after their yes.

## The Senate: the manual route

Senate reports live at `https://efdsearch.senate.gov`. Before searching, the
site asks you to tick a box agreeing to the legal limits on how the reports
may be used. That is an agreement for the person to accept, so this skill
does not click it or automate it. The route:

1. The user opens `https://efdsearch.senate.gov/search/` in their browser and
   accepts the agreement themselves.
2. They pick the report type "Periodic Transactions", type the senator's last
   name, set the date range and search.
3. They open the report: electronic filings show a table of transactions,
   paper filings are scanned images.
4. They paste the table (or a screenshot, or the saved page) into the chat,
   and you write it up in the same shape as the House rows, with the report
   link, and the same 45-day caveat.

## What it never does

- Never says or implies a member has inside information, or that copying a
  politician beats the market. No return claims.
- Never presents a range as an exact dollar figure or a tracker's date as the
  trade date.
- Never places an order, and never copies options trades.
- Never automates the Senate agreement or any login.

## Safety

- Education and tooling, not financial advice. Nothing in this pack is a
  recommendation to buy or sell anything.
- Paper trading by default (`"paper": true` in `trader/config.json`).
- Nothing places an order except `/trader-broker`, and only after
  `/trader-risk` passes AND the user types an explicit yes for that order in
  the chat, AND the brokerage tool is set to "Needs approval" in Claude
  (Customize > Connectors > tool permissions) so Claude's own "Allow once /
  Deny" card appears too. Never "Always allow" an order tool.
- No options, margin, shorting or leverage unless the config allows it and
  the user confirms.
- Congressional trades are PUBLIC disclosures filed up to 45 days after the
  trade (STOCK Act). This skill reads them fast; it has no inside
  information, and it says so.

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

Похожие скиллы

Все скиллы по теме «Финансы и бизнес» →
trader-memory-core tradermonty Скилл trader-memory-core для Claude Code ведёт инвестиционные тезисы от скрининга до закрытия сделки с расчётом P&L. Запускается при фразах вроде «register thesis» или «trading journal». CX Codex +1 3 700установок position-sizer tradermonty Скилл position-sizer рассчитывает размер позиции в акциях на основе риска на сделку, волатильности ATR или критерия Келли. Помогает определить число бумаг перед входом в сделку. CX Codex +1 4 400установок stock-correlation himself65 Скилл stock-correlation для Claude Code, Codex, Cursor и других платформ находит акции, которые движутся вместе, измеряет их корреляцию, бету и спред, строит матрицы и отслеживает изменения связей во времени. CX Codex +1 4 000установок report-stock staskh Скилл report-stock формирует подробный отчёт по биржевой акции в Markdown или PDF с оценкой тренда, фундаментальными метриками и стратегиями опционов. CX Codex +1 123установок stock-liquidity himself65 Скилл stock-liquidity оценивает ликвидность акций через библиотеку yfinance: спреды bid-ask, объёмы торгов и рыночный импакт. Помогает рассчитать издержки перед входом в позицию. CX Codex +1 3 600установок technical-analysis staskh Скилл technical-analysis для Claude Code считает индикаторы и сигналы по акциям. Он подключается к запросам о RSI, MACD, скользящих средних и анализе графика. CX Codex +1 618установок

Из того же набора12

Весь набор →
day-trader-skill Плагин day-trader-skill для Claude Code запускает одиннадцать инструментов для дейтрейдинга, включая сканер графиков, монитор новостей, таймер входа и симулятор сделок. ★ 9 067звёзд репо trader-news Скилл trader-news для Claude Code следит за новостями по акциям, 8-K и движением цены. Срабатывает по запросам о тикере, утреннем брифинге или после /trader-scanner. CX Codex +1 ★ 9 067звёзд репо trader-analyst Скилл trader-analyst для Claude Code выгружает финансовые показатели компаний из базы SEC EDGAR. Он сравнивает квартальные отчёты год к году перед открытием торговых сделок. CX Codex +1 ★ 9 067звёзд репо trader-exit Скилл trader-exit для Claude Code рассчитывает уровни стоп-лосса и тейк-профита перед входом в лонг-позицию. Запускается по запросам вроде «where's my stop» или сразу после срабатывания trader-entry. CX Codex +1 ★ 9 067звёзд репо trader-entry Скилл trader-entry для Claude Code следит за барами и называет момент входа после закрытия выше уровня. Запускается по запросу следить за тикером или проверить пробой. CX Codex +1 ★ 9 067звёзд репо trader-alerts Скилл trader-alerts для Claude Code отслеживает ценовые уровни акций, стопы и время до закрытия биржи NYSE. Срабатывает при вызове команд проверки котировок или сразу после формирования торгового плана. CX Codex +1 ★ 9 067звёзд репо trader-budget Скилл trader-budget для Claude Code рассчитывает размер позиции по бюджету и максимальному убытку. Запускается по запросу о числе акций или после плана от trader-exit. CX Codex +1 ★ 9 067звёзд репо trader-risk Скилл trader-risk для Claude Code проверяет торговые заявки по лимитам риска до отправки брокеру. Он блокирует сделки без стопа, с превышением дневного убытка или вне торгового окна. CX Codex +1 ★ 9 067звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой