CommunityResearch & Data Analysisgithub.com

insider-cash-to-equity

>- Screen SEC EDGAR for a quiet insider signal that normal insider feeds miss: a director or officer who ELECTED to take board retainer, fees or salary in stock instead of cash. It settles as compensation, so it never files as an open-market buy; the only trace is a free-text Form 4 footnote. Runs EDGAR full-text search for election phrases ("in lieu of cash", "elected to receive"), downloads and reads every footnote, throws out the fakes (routine grants, whole-board sweeps, elections that pay cash), groups what survives, and hands the user the manual verification step no screen can do. Use when the user asks to find insiders taking stock in lieu of cash, director fee elections, salary paid in stock, or insider signals hidden in Form 4 footnotes. Research only: no buy/sell/hold call and no price target.

What is insider-cash-to-equity?

insider-cash-to-equity is a Claude Code agent skill that >- Screen SEC EDGAR for a quiet insider signal that normal insider feeds miss: a director or officer who ELECTED to take board retainer, fees or salary in stock instead of cash. It settles as compensation, so it never files as an open-market buy; the only trace is a free-text Form 4 footnote. Runs EDGAR full-text search for election phrases ("in lieu of cash", "elected to receive"), downloads and reads every footnote, throws out the fakes (routine grants, whole-board sweeps, elections that pay cash), groups what survives, and hands the user the manual verification step no screen can do. Use when the user asks to find insiders taking stock in lieu of cash, director fee elections, salary paid in stock, or insider signals hidden in Form 4 footnotes. Research only: no buy/sell/hold call and no price target.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/shubhamsborkar/claude-stock-research-skills/tree/HEAD/skills/insider-cash-to-equity

Installed? Explore more Research & Data Analysis skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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

  1. Acquisition, not disposition (code A or P, acquired).
  2. Settles in real stock or share-settled units (common stock, RSUs, DSUs, LTIP or profits-interest units that deliver shares).
  3. 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.
  4. Not a Rule 10b5-1 automatic trade.
  5. Filer is a director or officer (the isDirector / isOfficer flags).

The three fakes that look exactly like the real thing

  1. 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.
  2. 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.
  3. 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.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

calendar-tell

>- Read how a public company is BEHAVING after earnings, confident or scared, and where that posture disagrees with the street. Four fixed moves on one ticker: (1) the investor-event calendar in the ~6 weeks after the latest earnings date, (2) the same window across the prior five quarters to set the company's own normal, (3) guidance vs. actual delivery, and (4) the analyst picture: buy/hold/sell counts and average target vs. current price. Sources every figure; names undisclosed items. Confident-or-scared read ONLY, with no buy/sell/hold call and no price target of its own. Use whenever the user names a ticker and asks how it is "acting" or "behaving" after a quarter ("confident or scared," "gone quiet," "keep their word on guidance"), or wants the calendar + guidance + analyst read together, even without saying "calendar tell." Apt after a guidance cut, miss, or leadership change. NOT for: "why is X down" selloff work, earnings-update reports, one-number lookups, or buy/sell/price-t

debt-structure

>- Extract a company's full debt structure (the debt waterfall) from a single SEC filing into four sourced outputs: a debt master table ordered by ranking, an events ledger, a qualitative-terms note, and an open-items list. Use whenever the user wants the debt stack, capital structure, debt schedule, liability waterfall, instruments and maturities, debt footnote, or a period debt roll-forward from a 10-K, 10-Q, or other SEC filing, even if they do not name the section. Triggers on "build the debt waterfall," "map the debt," "pull the debt structure," "extract the debt note," "list every instrument and its ranking," or "what changed in the debt this quarter." Works on any filer in any industry because it encodes how debt is DISCLOSED, not one company's debt. Reads ONLY the filing provided; marks anything omitted as NOT DISCLOSED and routes it to open items; cites page and section for every figure and term; stays strictly at extraction, with no valuation, no buy/sell/hold, no price targe

forensic-fraud-screen

>- A forensic skepticism screen on a company's filed accounts: five blind, independent specialist lenses (accounting, unit economics, quality of earnings, contradictions, governance), each run as a separate subagent that cannot see the others, each returning one most-material observation with its arithmetic, a survivable-or-fatal call and the one outside datum that would confirm or kill it; then a champion pass that argues every finding at full strength, and a single judge that ranks by impact on value, never by vote count. Filings only. Use when the user asks whether a cheap, hated or red-flagged company could be a fraud, wants a forensic accounting check, "are these numbers real", "is this a value trap or a fraud", or wants red flags classified as survivable or fatal. Research only: no buy/sell/hold call and no price target.

ipo-prospectus

>- Interrogate any IPO prospectus (SEC Form S-1 or F-1, or an amended S-1/A or F-1/A) with five fixed questions in a fixed order: is the growth real, does it fund itself, is the debt sane, is the profit real, and only last, is the price sane. Reads the audited financial statements and MD&A only, cites the exact page for every number, says "not disclosed" out loud when the filing is silent, never estimates, re-reads every cited page on a second pass, and saves one markdown file per question. Use when the user drops a prospectus in the folder and asks to analyse an IPO, read an S-1 or F-1, "tear down the prospectus", "is this IPO worth it", or wants the growth, cash, debt, profit quality or valuation inputs of a company going public. Research only: no buy/sell/hold call and no price target.

Related Skills