/workflows:edgarfrom workflows
Routes SEC EDGAR requests to the right source (WRDS vs sec.gov), handles bulk filing downloads, and provides references for parsing filings, exhibits, and full-text search.
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.
What this skill carries — grep references/ for any subject the names below miss:
!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)"
| The need | Source |
|---|---|
| Many filings, their exhibits, or a list of filings | WRDS, below |
| Which filing table, which columns, which CIK roles | references/wrds-forms-tables.md |
| Phrase search inside filings | references/sec-text-search.md (WRDS); EDGAR full-text search in references/sec-gov.md |
| A parser or scanner over a corpus | "Extractors", below |
| One filing, looked at once, not from a script | sec.gov is allowed (references/sec-gov.md); WRDS works too |
Filings newer than max(fdate) in wrdssec_all.wrds_forms (it lags about a business day) | references/sec-gov.md, for those filings only, after running that query |
| Rules releases, SEC web pages, data.sec.gov APIs with no WRDS equivalent, a 403 on any of these | references/sec-gov.md |
Before writing the pull, read § "Download Filing Text via WRDS rclone" in references/edgar.md.
cik, accession, form, fdate, wrdsfname from wrdssec_all.wrds_forms. cik is a 10-digit string.wrdsfname is the path under both roots, wrds:/wrds/sec/archives (raw SGML with every exhibit) and wrds:/wrds/sec/wrds_clean_filings (markup stripped). Clean is for text; discovery needs raw, because clean drops the hrefs to referenced filings. Clean also empties GRAPHIC, XBRL, XML, EXCEL and ZIP bodies, so those need raw too.<DOCUMENT>, <TYPE> and <FILENAME> tags. Use extract, not a fresh regex: older submissions double a leading "." on each body line, which corrupts text and uuencoded files.E="${CLAUDE_SKILL_DIR}/scripts/edgar_filing.py"
python3 "$E" fetch pairs.tsv out/ [--clean] # one round: "cik accession" lines in, local paths out
python3 "$E" resolve pairs.tsv # the list alone, on stdout; over 10K files feed it to edgar.md's tar route
python3 "$E" extract <local path> --list
python3 "$E" extract <local path> --type EX-3.1 # or --filename d123dex31.htm
python3 "$E" path <cik> <accession> [--clean] # offline
In Python, fetch_round(pairs, dest) is one round and fetch_rounds(seeds, dest, discover) repeats it: discover gets a round's local paths and returns the next pairs.
<DOCUMENT> blocks per filing are needed, use clean, or extract on WRDS in a grid array job (references/edgar.md § "SGE Submission Pattern"; this script is stdlib-only) and copy back only those blocks.resolve finds it by accession; a path built from the citing firm's CIK silently misses it.max(fdate).| Need | Existing tool |
|---|---|
| Header fields (state, SIC, address, former names) | query wrdssec_all.wrds_forms_reg first |
| Cover page, body or header extraction at scale | ${CLAUDE_PLUGIN_ROOT}/skills/wrds/scripts/scan_covers/ |
| Series and header scans; a self-built index | ${CLAUDE_PLUGIN_ROOT}/skills/wrds/scripts/scan_headers/, ${CLAUDE_PLUGIN_ROOT}/skills/wrds/scripts/sec_index/ |
| 13F, N-PX, DEF 14A ownership, S-1 management | the parse_* directories in ${CLAUDE_PLUGIN_ROOT}/skills/wrds/scripts/ |
| Dual-class from 10-K text | ${CLAUDE_PLUGIN_ROOT}/skills/wrds/scripts/dual_class/ |
| Parser records to Parquet | ${CLAUDE_PLUGIN_ROOT}/skills/wrds/scripts/edgar_parquet/ |
| About to | Why wrong | Do instead |
|---|---|---|
Call rclone cat / requests.get inside a loop over filings | One connection per document | Collect the round's list, then fetch it once |
Put a sec.gov/Archives URL in a script | It becomes a per-filing loop on the next run | resolve, then one rclone copy |
Read data.sec.gov/submissions to list filings | wrds_forms has the list for every CIK in one query | Query wrds_forms |
| Fetch each exhibit by URL | The submission file already contains it | extract |
| Fix a 403 on a batch of filings with a User-Agent | It repairs the wrong route | Move the batch to WRDS |
| Spoof a browser User-Agent on sec.gov | It is what gets blocked | Declare a name and email (references/sec-gov.md) |
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