/workflows:blaw-edgar-searchfrom workflows
Searches SEC filings and exhibits on Bloomberg Law with exhibit-level phrase search, proximity operators, and unstemmed matching. Drives the logged-in browser UI to capture JSON results.
Ships in workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
!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.
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.
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.
input#username, input#password. A bare #username matches the <m-text-field>
wrapper first. Enter Input.insertText after focusing; React ignores .value.Sign In; it lands on bloomberglaw.com/start.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.scripts/01-install-hook.js before clicking Search, so page 1 is captured.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.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./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.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
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
registrant (file no.), filing_view (date, form prefix) and wrds_forms
(wrdsfname), so only ids and paths come back, never filing text.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.<DOCUMENT> blocks gives TYPE, DESCRIPTION, FILENAME
and text for every hit, with no per-hit query.hits_resolved.jsonl / .parquet: Bloomberg fields, match_status (unique / resolved_by_exhibit /
ambiguous / unmatched), resolved_by (type → exact title form → DESCRIPTION → extract text),
doc_match, accession, cik, filename, sec_url, text_path, chars, extract_found,
phrase_verification. Title quirks it handles: normalized form drops /A (the title keeps it);
EX-99: EX-99.1 is TYPE: DESCRIPTION; EX-10.6 2 is the DESCRIPTION of the second EX-10.6;
Rule 425 Communications = 425.
Measured on 295 hits: WRDS join 1–27 s; 277 submissions = 2.62 GB by rclone in 27 s;
parse + extract ~20 s. 294 resolved, 1 unmatched (CB/A: absent from the WRDS tables). Exhibit
text equals sec.gov's document minus its SGML header line in 275/275 checked.
Run a first pass on extracts alone; send only positives and unsure rows to a full-text pass.
Results-page facets are <label> elements (click the label, not the a11y checkbox node); each
click is a new query. Form type lands in criteria as
"facets":{"normalized_form_type":["Form 8-K"], "form_family":[], "display_exhibit_type":[], "cik":[], "sic":[]}.
A facet slice under 1,000 needs no date filter: capture it whole and filter locally. Date presets
sit under [data-testid="date-selector-preset-dropdown-button"] (Any, Single date, Date range,
Last 7/30 days, Last 12 months, Last 5 years) and land as e.g. "date_type":"last_5_years".
Verified: three-phrase query, Exhibits Only, Form 8-K → 356 hits, 8 pages captured by
the pager in ~4 min, assemble.py exit 0 (no gaps, 356 unique ids).
Whether paging continues past result 1,000; the CSV export's row cap; the field names for a custom date range.
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of '[email protected]:edwinhu/bmll-skill.git' into submodule path 'skills/bmll' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
86 skills in this plugin
/afkUse when the user says '/afk', 'afk', 'going to bed', 'I'm going to sleep', 'work autonomously', 'work on this overnight', 'don't ask me questions', 'while I'm away', or 'do whatever you think is best'. NOT for questions about overnight returns, rates or anything financial; NOT for asking how the mode works./ai-anti-patternsALWAYS load before finalizing ANY written prose, and whenever text is suspected of being machine-written - "does this sound like AI", "make this sound human", "clean up the AI-isms", "did a bot write this", "check this draft before I send it", "review this for AI tells", "this reads like ChatGPT", "review this for mannered prose", "is this too writerly", "is this student paper AI-generated", or before handing back any draft, memo, email, or article you wrote. Use proactively even if the user never mentions AI writing./Other plugins' skills for the same job