sec-filing-puller
БесплатноЗапускает вложенные скриптыНе проверенPulls financial statement numbers for US public companies straight from SEC EDGAR's free official XBRL APIs (companyfacts, companyconcept, frames…
от OneWave-AI★ 454 звезды на GitHubОб этом скилле
SEC Filing Puller
Analysts lose a day prompting for 10-K numbers and still distrust the result. Models get these numbers wrong in predictable ways: they mix fiscal years, blend restated and originally reported figures, confuse quarterly with YTD or TTM, and slip on units. Do not recall financials from memory and do not scrape them from websites. Run the scripts. They read SEC's structured data and attach a filing citation to every number. Spend your own effort on judgment: whether the periods line up, whether the definitions match, and what the XBRL cannot tell you.
Setup (once)
SEC requires a declared User-Agent with contact info. Without one, requests get HTTP 403. Ask the user for their name/company and email if you don't have them, then run:
export SEC_USER_AGENT="Acme Research [email protected]" # the user's own contact, never a made-up one
pip install pandas # the only dependency; everything else is stdlib
The scripts stay under SEC's 10 requests/second limit and cache responses in ~/.cache/sec-filing-puller (override with SEC_CACHE_DIR, bypass with --refresh). Endpoint details are in references/edgar-api.md.
Workflow
1. Resolve the company
python3 scripts/sec_pull.py resolve "BRK.B" # ticker, CIK or a name fragment
The command resolves the company to a CIK through SEC's company_tickers.json. If the name is ambiguous it lists the candidates, so ask the user which one they mean. Delisted companies are not in the ticker file, so use the CIK instead.
2. Pull
python3 scripts/sec_pull.py pull AAPL # last 3 FYs + latest quarter + TTM, all metrics
python3 scripts/sec_pull.py pull MSFT --metrics revenue,net_income --years 5 --quarters 4
python3 scripts/sec_pull.py pull WMT --all-periods --format all --out ./sec # full history for a model
python3 scripts/compare.py AAPL MSFT WMT --out ./comps # side-by-side comps
Metrics: revenue, gross_profit, operating_income, net_income, eps_diluted, diluted_shares, operating_cash_flow, capex, total_assets, cash, lt_debt_noncurrent, lt_debt_current, short_term_borrowings, shares_outstanding.
Output is a markdown table on stdout. With --out, the tool also writes a tidy CSV/JSON with one row per metric and period. Each row has these columns: value (raw units), unit, basis (reported / derived / not in XBRL), formula, tag, form, accn, filed, filing_index_url, document_url, original_value, original_accn, revised and notes.
3. Check before presenting
Read the > WARNING lines and the notes column. They carry the parts that matter:
- Fiscal alignment. AAPL's year ends in late September, MSFT's on June 30 and WMT's on January 31. "FY2025" covers a different 12 months for each, and compare.py prints the exact dates. For comps, lead with TTM, or say plainly that the fiscal years are offset.
- Derived values. Q4 is almost never tagged, so it is computed as FY minus the 9M YTD figure. 10-Q cash flows are YTD-only, so Q2 and Q3 cash flow is derived. Present derived numbers as derived and show the formula. EPS and share counts are never derived because they are not additive.
- Restatements. By default the tool uses the latest-filed value.
revised=Truemeans a later filing changed the number, and the originally reported value and accession are kept next to it. Use--as-reportedwhen the user wants what the company said at the time, for example to check an old model or a guidance comparison. - Tag and definition differences. Walmart's revenue is
Revenues(total, including membership income) while Apple and Microsoft useRevenueFromContract...(net sales). The note gives the alternative value. When a comp mixes definitions, say so. The pitfalls for each metric are inreferences/xbrl-concepts.md. - Coverage. If the tool warns that a newer 10-K/10-Q/20-F exists without XBRL facts, the table is stale for that company. Read the newer filing and cite it. Do not present the older period as the latest.
- Currency. Foreign filers report in their own currency (TSMC in TWD). Never label those numbers USD, and convert before comparing, stating the rate and its source.
4. Present with citations
Keep the source on every number in the answer, not only in a footnote. Show the form, fiscal period, filed date and a linked accession, for example: Revenue FY2025 $416,161M (10-K, filed 2025-10-31, 0000320193-25-000079, us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax). Give the period dates next to fiscal labels. Round consistently (millions by default) and state the unit once.
When the stakes are high (a credit memo, a board slide, a number someone will quote), spot-check one or two values against the filing text. Open document_url and find the line in the inc
Установить sec-filing-puller в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sec-filing-puller?
Pulls financial statement numbers for US public companies straight from SEC EDGAR's free official XBRL APIs (companyfacts, companyconcept, frames, submissions) into a cited table. Every value carries its accession number, form, fiscal period, filed date, XBRL tag and a link to the filing, and the tool handles fiscal-year ends, quarterly vs YTD vs TTM, derived Q4, restatements and units. Use this whenever the user wants 10-K numbers or 10-Q numbers, says "pull financials for", asks for public company revenue, net income, EPS, cash, debt or capex, wants comps or a competitor side-by-side, a credit check, prospect research, or model inputs, or mentions SEC filings or EDGAR, even if they never say XBRL. Free and primary-source, no paid data terminal needed. Do not use it for private companies, stock prices or valuation multiples.
Как установить скилл sec-filing-puller?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sec-filing-puller запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic