Insider cash-to-equity elections
Run this for: $ARGUMENTS (a date window). If none was given, use the last 30 days ending today.
House rules
- If this research folder has a CLAUDE.md, its rules win over anything in this skill where the two conflict.
- Research only. This skill never says buy, sell or hold, and gives no price targets. A cash-to-equity election is a soft signal, softer than an open-market buy. Be skeptical, and say so in the output.
- Every claim traces to a primary SEC filing (accession number or EDGAR link). No figure or quote from memory or a search snippet. If something cannot be traced, leave it out. Where a number is missing from the filing (no filed price, no market cap), write NOT DISCLOSED; never estimate. Arithmetic is done by the scripts or a short Python snippet.
- SEC asks for a descriptive User-Agent on every request. Before any fetch, ask
the user for their name and contact and use it in the form
ResearchLibrary [email protected]. Run requests one at a time; EDGAR returns errors when hit too fast or in parallel.
The signal
A real choice to own the shares over guaranteed money. A real election has a person in it: someone owed cash, who could have taken the cash, and who chose stock instead, in language that shows it was their choice and not the company's policy.
The find is never the finish. The search only casts a net. The real work is throwing things away, and then a human check on what survives.
Workflow
Scripts are in this skill's scripts/ folder (in Claude Code:
${CLAUDE_SKILL_DIR}/scripts/; if that variable does not resolve, use the scripts
folder beside this SKILL.md). They need only python3 (standard library). Create a
run folder such as insider-elections/<run-date>/ in the research folder and run
every script from inside it, so all files land there.
1. Discover
python3 "${CLAUDE_SKILL_DIR}/scripts/discover.py" --start <YYYY-MM-DD> --end <YYYY-MM-DD> \
--user-agent "ResearchLibrary [email protected]"
Searches EDGAR full-text search (efts.sec.gov/LATEST/search-index, forms=4) for
four exact phrases: "in lieu of cash", "in lieu of director fees",
"shares in lieu of", "elected to receive". Dedupes by accession. Writes
hits.jsonl, worklist.tsv and counts.md (raw hits per phrase, unique accessions).
Scope note to carry into the output: discovery is keyed on election wording, so pure
phantom-stock filings that never use it are out of scope by construction.
2. Read every one
python3 "${CLAUDE_SKILL_DIR}/scripts/download.py" --user-agent "ResearchLibrary [email protected]"
python3 "${CLAUDE_SKILL_DIR}/scripts/parse.py"
python3 "${CLAUDE_SKILL_DIR}/scripts/candidates.py"
python3 "${CLAUDE_SKILL_DIR}/scripts/digest.py"
Downloads every raw Form 4 XML into raw/, parses issuer, owners and roles, every
transaction row and the full footnote text into parsed.json, and writes
digest.txt with every footnote in full. The whole signal lives in the footnote,
not the structured fields.
3. First-pass filter
python3 "${CLAUDE_SKILL_DIR}/scripts/classify.py"
Keeps a filing only if: the transaction code is A or P and the shares were acquired;
a footnote carries election language; no cash-settled or phantom language; no Rule
10b5-1 reference; the filer is a director or officer. Writes survivors.json. This
only narrows the pile. It does not decide.
4. Throw out the fakes (read every surviving footnote to the end)
Read each survivor's footnotes in digest.txt and drop on these rules. Record each
drop, with its reason, in dropped.tsv (accession, tab, reason).
Inclusion: keep only if ALL are true
- Acquisition, not disposition (code A or P, acquired).
- Settles in real stock or share-settled units (common stock, RSUs, DSUs, LTIP or profits-interest units that deliver shares).
- A footnote explicitly says the person chose equity instead of cash, e.g. "elected to receive ... in lieu of cash", "in lieu of director fees pursuant to an election by the director", "at his request ... salary is being paid in stock". Wording that merely describes a grant is not enough.
- Not a Rule 10b5-1 automatic trade.
- Filer is a director or officer (the
isDirector/isOfficerflags).
The three fakes that look exactly like the real thing
- The routine grant. The annual director equity award, written into policy. The footnote may say "in lieu of cash" because that is how the pay is structured, but nobody chose anything. Only the in-lieu-of-cash portion of a filing counts; routine grant rows filed alongside it are excluded from the dollar value.
- The whole-board sweep. Many directors at one company "electing" on the same
day under a standing program. Not many opinions: one corporate event wearing many
nametags. Keep it in the data, flag it
BOARD SWEEP, and count it once. - The election that says equity and pays cash. Kill on "payable only in cash", "cash-settled", "phantom", "in the form of cash", or "the right to receive the value, in cash, of 1 share". Check the security title too: a unit literally named "Deferred Stock Unit (Cash)" is a paycheck in a costume. A partial version exists: a director electing part of an award as cash. Do NOT kill on incidental cash wording: "redeemable for cash or shares at the issuer's election" is standard share-settled unit language, and "any fractional share paid in cash" is rounding.
Also drop (not a cash-vs-equity choice)
- Tax-withholding and option-exercise rows.
- Merger-consideration elections (stock vs cash in a deal).
- Award-vehicle elections (choosing the form of an annual long-term award, not in lieu of cash).
- Deferral-schedule elections (choosing when to be paid, not in what).
- Dividend-reinvestment elections on existing awards.
- Delivery-destination elections (direct vs into a trust).
- Company-imposed stock pay with no personal election.
- Elections into options rather than stock: real, but track them separately.
5. Group and flag
python3 "${CLAUDE_SKILL_DIR}/scripts/group.py" --drop dropped.tsv
Writes groups.csv: per issuer, insiders, dates, filed acquisition value, kind
(BOARD SWEEP = 3 or more insiders on one date; CLUSTER (diff days) = 2 or more
insiders on different dates, a real cluster), and whether any code-P open-market
purchase sits alongside. Then, by reading the footnotes, set the elective portion
(elected shares x the price stated in the filing; if no price is filed, say so
rather than guess).
For each surviving issuer, fetch three months of daily closes (e.g. with yfinance
in a venv), save the current close and the first close of that three-month range to
prices.csv, and compute the trailing 90-day % change in Python. Market capitalization is not in a Form 4; leave it out
unless a citable source gives it.
6. Report
Write report.md in the run folder:
- the counts (raw hits, unique accessions, survivors, board sweeps collapsed, individual elections),
- the interesting shape: elective, real stock or share-settled units, NOT a board sweep, meaningful dollar value, stock DOWN over the trailing 90 days. An election into a falling stock is the one that costs something to make, and the one worth a second look,
- any multi-date cluster, and any code-P buy alongside (say plainly if there are none: then every name is a soft signal standing alone),
- for every name: insider, role, footnote quoted verbatim, accession and EDGAR link,
- the honest limits: softer than an open-market buy; small-company stock-for-salary can be the company conserving cash rather than insider conviction; election wording is the net, so wording-free phantom plans are out of scope.
No price targets, no "buy this".
7. The manual verification step (the user does this; say so clearly)
End the report with a checklist addressed to the user. The screen finds a genuine election; it cannot say why the insider made it. For each name on the short list, the user should open the company's own filings by hand:
- the latest proxy statement: does the company list equity-in-lieu-of-cash pay as a cash-conservation lever?
- the latest 10-K/10-Q: is there a going-concern disclosure, and how much cash and runway is there?
- conviction and necessity look identical on a Form 4. Only the balance sheet and the proxy can separate them.
Record what the user finds in a separate manual-checks.md, marked as human
verified, never mixed with machine output.