Command Palette

Search for a command to run...

Назад к скиллам
скилл № 75850

npx-ownership-panel

ALWAYS use before building anything that joins proxy votes to ownership — 'build the N-PX panel', 'proxy voting panel', 'how did index funds vote on this…

БесплатноЗапускает вложенные скрипты
edwinhuот edwinhu★ 28 звёзд на GitHub

Установить npx-ownership-panel в Claude Code и Claude Desktop

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

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

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

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

N-PX × Ownership Panel

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)"

Builds out.pass_npx — item-level ownership joined to each item's per-block observed For/Against/Abstain split — entirely on the WRDS grid.

Verified end-to-end from a clean checkout. One bash command, WRDS credentials, nothing else: 34m 46s wall at full scale, zero errors, out.pass_npx at 2,018,866 rows. Cold from nothing — including building the crosswalk and the 13F holdings — is ≈47 min. Both are in Verification; the one-command claim is measured, not asserted.

Why this exists as a skill

npx_agreement.sas sat in one project for five months doing exactly what another project needed, and nothing surfaced it. The second project rebuilt it locally in Python and shipped 144,376,253 rows to a laptop for want of a leg that already existed. The failure was findability, not capability.

The one command

scp -r scripts/* wrds:~/projects/myproject/          # + npx_link.csv (see below)
ssh wrds "cd ~/projects/myproject && bash run_pipeline.sh"

It submits the whole DAG with qsub -hold_jid and returns. SGE sequences the chain; nothing local stays alive. Disconnect, come back, collect the panel.

Output Grain What it is
out.pass_npx (itemonagendaid, block) the deliverable — ownership panel + per-block vote direction
out.pass itemonagendaid item-level ownership panel alone

The four legs

# Leg Script Depends on
1 Mutual-fund holdings split_s12.sas → tfn_holdings_parallel.sas ×N —
2 Institutional holdings build_inst_own.py (SEC EDGAR 13F) — canonical. build_inst_own.sas (Thomson S34) is fallback-only —
3 N-PX fund votes build_npx.sas (SGE array, one task per year) leg 4
4 ISS→CRSP crosswalk npx_linking/ → stage_npx_link.sas —
5 Short interest build_short_interest.py — comp.sec_shortint × CCM, feeds ior_net —

Legs 1, 2, 4 start together. Leg 4 hard-gates leg 3 — the array hash-merges the crosswalk; without it every task opens a missing dataset and exits 0 having written nothing.

Which leg needs a fund link, and which does not. Leg 2 (13F) answers institutional ownership of a STOCK and aggregates to permno × quarter — no fund-level link is needed for it, so work spent linking N-PX filers to 13F filers does not serve it. Leg 1 (S12) is what estimates shares voted by index funds, and that is the leg wficn serves. Route link work to leg 1.

wficn is in leg 1 only because the holdings come from S12. Its three jobs are: bridge S12 fundno → crsp_fundno for crsp.portnomap's index_fund_flag/et_flag; act as the (wficn, rqdate, cusip8) dedup key; and supply count(distinct wficn) as num_mf_owners. crsp_portno can do all three — portnomap already carries both flags, dedup on crsp_portno is already the house rule, and crsp.holdings is keyed on it. Sourcing leg 1 from crsp.holdings drops wficn, mflink1/2, mfl2 and mfl3 from the chain and moves coverage from 87.33% to 93.54% of the 229,787,146-row vote universe. Before switching, check crsp.holdings' start date against the panel start (S12 reaches 1980; votes start 2003-07-01) and reconcile shares between the two sources — coverage parity with a shares disagreement is worse than the status quo.

Before linking anything to 13F, check which question you have. N-PX, N-Q and N-PORT are all '40 Act filings from the same registrant, so the registrant CIK — parsed from the N-PX filing path — is already the join key, and 1,374 of 1,377 panel registrant CIKs (99.8%) file N-Q or N-PORT, covering 99.11% of the vote universe. Stock-level institutional ownership comes from 13F collapsed to cusip × quarter and needs NO fund link; shares held by a fund come from N-PORT balance per <seriesId>, which is the same identifier the vote panel carries, also with NO link. An ISS→13F crosswalk is needed only when the question is explicitly about a MANAGER's own reported book. Caveat: N-PORT is structured XML from 2019-04 (41.19% of the panel's vote rows); N-Q covers 2003-2021 but carries no series id and is unstructured, so earlier holdings are registrant-level and need parsing.

If you do need an ISS-institution → 13F-manager link, do not match on the ISS name. The deterministic linker is npx-reconcile/src/link13f/ (92.37% of the

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

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

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

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

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

  • references/linking.md
  • references/npx-crsp-linking.md
  • references/pipeline.md
  • scripts/build_inst_own.py
  • scripts/build_inst_own.sas
  • scripts/build_meetings.sas
  • scripts/build_mflinks.sas
  • scripts/build_npx.sas
  • scripts/build_short_interest.py
  • scripts/canonical_dump.sas
  • scripts/canonical_hash.py
  • scripts/dq_panel.py
  • scripts/freeze.sas
  • scripts/import_inst_own.sas
  • scripts/merge_panel.sas
  • scripts/npx_link_to_csv.py
  • scripts/npx_linking/__init__.py
  • scripts/npx_linking/__main__.py
  • scripts/npx_linking/_config.py
  • scripts/npx_linking/build_fundid_seriesid.py
  • scripts/npx_linking/build_header_series_master.py
  • scripts/npx_linking/build_npx_crsp_link.py
  • scripts/npx_linking/build_npx_crsp_link_gap.py
  • scripts/npx_linking/build_npx_crsp_link_gap2.py
  • scripts/npx_linking/build_npx_crsp_link_headers.py
  • scripts/npx_linking/build_npx_crsp_link_ticker.py
  • scripts/npx_linking/build_sec_series_master.py
  • scripts/npx_linking/claim_check.py
  • scripts/npx_linking/config_obs.py
  • scripts/npx_linking/coverage.py
  • scripts/npx_linking/download_sec_series_class.py
  • scripts/npx_linking/family_overlay.example.csv
  • scripts/npx_linking/judge_matches.py
  • scripts/npx_linking/matching.py
  • scripts/npx_linking/pipeline.py
  • scripts/npx_linking/pull_crsp_funds.py
  • scripts/npx_linking/pull_npx_funds.py
  • scripts/npx_linking/smoke_test.sh
  • scripts/npx_panel_scripts_test.py
  • scripts/pipeline_config.sas

FAQ

Что делает скилл npx-ownership-panel?

ALWAYS use before building anything that joins proxy votes to ownership — 'build the N-PX panel', 'proxy voting panel', 'how did index funds vote on this item', 'passive vs active voting', 'fund-level votes with ownership attached', 'voting by block', 'link ISS funds to CRSP', 'risk.voteanalysis_npx', 'N-PX votes by meeting/agenda item', 'institutional ownership per proposal', '13F or S12 holdings joined to votes', 'build the ownership panel'. Use proactively instead of writing a local pipeline — the panel already exists end-to-end on the WRDS grid. NEGATIVE ROUTING: querying the underlying ISS, Thomson or 13F tables directly, WRDS connection patterns, and the data-defect reference are the wrds skill; generic data building, merging and profiling with no proxy-vote leg is ds — this skill owns the assembled panel and its DAG, not raw table access.

Как установить скилл npx-ownership-panel?

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

Скилл npx-ownership-panel запускает скрипты?

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

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

Сравнить npx-ownership-panel с