Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

blaw-edgar-search

БесплатноЗапускает вложенные скриптыНе проверен

Use when the user wants to search SEC filings or exhibits on Bloomberg Law — 'search EDGAR on Bloomberg Law', 'BLAW EDGAR search', 'find exhibits with this…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

Bloomberg Law EDGAR search

!d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

A Bloomberg-specific profile of ui-json-capture: drive the logged-in browser at human pace and keep the JSON the page already receives. Load browser-automation (port 9222, mcp__chrome-devtools__*) and read ui-json-capture for the procedure and its Red Flags.

**Never call the JSON API yourself** (`fetch`, `curl`, replayed POSTs) — bulk use of it is plainly against Bloomberg's terms. Click the UI; capture what it returns. Before paging at all: read the facet counts on page 1, and prefer the results list's own CSV export (`allow_csv: true` in the response) when a filtered slice fits its cap.

Why this route

Measured against SEC EFTS, WRDS web and wrds_sec_search: Bloomberg matches per exhibit (option "Exhibits Only"), runs unstemmed (stemmed_search: false), tolerates extraction glitches ("Non -Competition" still matched), and has Terms & Connectors: "phrase", ^"case-sensitive", ! and * wildcards, N/x, NP/x, S/, P/, ATLx(), ATMx(). Coverage from 1994; ~19.6M EDGAR documents.

Login

The browser is often signed out. Credentials are the 1Password item Bloomberg Law (UVA) (vault "Shared with Agents"); handle them only inside a dispatched agent, never in the main thread.

  • Fields: input#username, input#password. A bare #username matches the <m-text-field> wrapper first. Enter Input.insertText after focusing; React ignores .value.
  • Enter does not submit. Click the button whose text is Sign In; it lands on bloomberglaw.com/start.

Search

  • Form: https://www.bloomberglaw.com/start#advanced-search/features_edgar_all_search/features_edgar_all_search (Keywords; Apply To = Forms & Exhibits / Forms Only / Exhibits Only; Forms; Exhibits; Exhibit title; filer, CIK, company, location, SIC, file number). The favorite link may need one reload.
  • Install scripts/01-install-hook.js before clicking Search, so page 1 is captured.

Wire facts (observed, not for calling)

  • POST /product/blaw/api/v1/search/criteria, body {"criteria":{"model":"features_edgar_all_search","term":…,"keywords_apply_to":"edgar_exhibit","page_size":50,"page":N}}. Page 1 is the form submit; page N comes from the pager. Filter clicks hit the same endpoint with new criteria; the hook keys each page by criteria-minus-page, so check __cap.queries holds exactly one query before assembling.
  • Response: results_page.components.documents.items[] (50 per page; id, title like "WOLFSPEED, INC.; Form 10-K; EX-10.21", date, metadata filer, subtitles file number / filed / period / form, extracts with <mark> hits); .remote_count total (the UI shows "1000+"); components.facets.items[] (form family, form type, exhibit type, company, SIC) with counts.
  • Paging is an in-app route change (URL /product/blaw/search/results/<criteria_id>, same document), so the hook persists. Next control: svg[data-testid="search-results-next-page"], disabled="true" on the last page; click it with a dispatched MouseEvent.

Capture

scripts/01-install-hook.js and scripts/02-run-pager.js here; 03-status.js, 04-dump.js, 05-stop.js and assemble.py from ui-json-capture/scripts/ unchanged:

python3 ~/.claude/skills/workflows/skills/ui-json-capture/scripts/assemble.py \
  --batches scratch/blaw --glob 'batch_*.json' --out data/raw/blaw_hits.jsonl \
  --expect-total <remote_count> --page-size 50 --id-field id

From hits to EDGAR (accession, full text)

A hit carries no accession or CIK. scripts/resolve_exhibits.py resolves an assemble.py file:

uv run --script ${CLAUDE_SKILL_DIR}/scripts/resolve_exhibits.py --hits data/raw/blaw_hits.jsonl \
  --out-dir data/processed/blaw --cache-dir data/raw/edgar_sgml \
  --phrase "consulting agreement" --phrase "non-competition"    # phrases optional
  • Join on WRDS: keys go up as parameter arrays (pgdata is a hot standby: no TEMP tables) and join server-side to registrant (file no.), filing_view (date, form prefix) and wrds_forms (wrdsfname), so only ids and paths come back, never filing text.
  • Files via rclone: raw submissions from wrds:/wrds/sec/archives by wrdsfname, cached; over 10,000 files it uses the edgar skill's server-side tar. --ignore-checksum is deliberate: the default md5 check opens an ssh session per file on the login node, and exhausted it at 16 transfers.
  • Parse locally: one pass over the SGML <DOCUMENT> blocks gives TYPE, DESCRIPTION, FILENAME and text for every hit, with no per-hit query.

hits_resolved.jsonl / `.parq

Полный SKILL.md на GitHub

Установить blaw-edgar-search в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/01-install-hook.jsscripts/02-run-pager.jsscripts/resolve_exhibits.pyscripts/resolve_exhibits_test.py

FAQ

Что делает скилл blaw-edgar-search?

Use when the user wants to search SEC filings or exhibits on Bloomberg Law — 'search EDGAR on Bloomberg Law', 'BLAW EDGAR search', 'find exhibits with this clause', 'which 8-Ks attach a consulting agreement', 'pull the Bloomberg Law results list', 'capture the BLAW results' — or needs exhibit-level phrase search with proximity operators that the SEC and WRDS full-text routes handle badly.

Как установить скилл blaw-edgar-search?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл blaw-edgar-search запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить blaw-edgar-search с