Sec Edgar logo

Sec Edgar

Organization
kansoku-trade
sec-edgar

US SEC EDGAR filings — list 10-K/10-Q/8-K/Form 4/S-1, fetch filing text, parse insider Form 4 transactions.

Overview

Publisherkansoku-trade
Repositorykansoku
Skill namesec-edgar
Stars
329
Forks
40
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kansoku-trade on GitHub. Read the source before you install it.

Installation

Install the Sec Edgar AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kansoku-trade/kansoku/tree/main/.claude/skills/sec-edgar
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kansoku-trade/kansoku.git /tmp/kansoku
mkdir -p .claude/skills
cp -r /tmp/kansoku/.claude/skills/sec-edgar .claude/skills/sec-edgar
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sec Edgar in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sec Edgar on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sec Edgar is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

sec-edgar

Response language: match user input.

When to use

Trigger phrases:

  • 8-K / 10-K / 10-Q / Form 4 / S-1 / proxy / DEF 14A
  • 美股公告 / SEC filing / EDGAR
  • insider trading / 内部人交易 / 高管交易
  • 财报原文 / 招股书 / 风险因素 / MD&A

Not for: 13F holdings analysis (this skill lists 13F filings but does not parse them into holdings — deferred to a future skill).

Workflow

  1. List filings: filings.py <TICKER> (optionally --type 8-K).
  2. Read filing text: pass primary_doc_url from the list output to filing_text.py. Use --max-chars to cap; --section item1a for risk factors, --section mda (Item 7) for MD&A.
  3. Insider trades: insider.py <TICKER> parses Form 4 XML for the past --days window.

Environment auto-loaded; SEC_USER_AGENT is mandatory.

CLI examples

bash
# Latest 5 NVDA 8-Ks
python3 .claude/skills/sec-edgar/scripts/filings.py NVDA --type 8-K --limit 5

# All recent NVDA filings
python3 .claude/skills/sec-edgar/scripts/filings.py NVDA --limit 20

# Read the most recent 8-K (URL from filings.py)
python3 .claude/skills/sec-edgar/scripts/filing_text.py \
  "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000051/nvda-20260520.htm" \
  --max-chars 20000

# Pull Item 1A (Risk Factors) from a 10-K
python3 .claude/skills/sec-edgar/scripts/filing_text.py "<10-K URL>" --section item1a

# Save full text to disk, get metadata only
python3 .claude/skills/sec-edgar/scripts/filing_text.py "<URL>" --save-raw /tmp/nvda-10k.txt

# Insider transactions, past 90 days
python3 .claude/skills/sec-edgar/scripts/insider.py NVDA --days 90

# Insider + amendments
python3 .claude/skills/sec-edgar/scripts/insider.py NVDA --include-amendments

Section keys (10-K)

Key10-K section
item1 / businessItem 1. Business
item1a / riskItem 1A. Risk Factors
item7 / mdaItem 7. MD&A
item7aItem 7A. Quantitative & Qualitative Disclosures
item8Item 8. Financial Statements

meta.confidence returned: high (clean heading match), medium (short slice, may be incomplete), low (heuristic fallback — full text returned with warning).

Output shapes

filings.py:

json
{
  "data": [
    {
      "accession": "0001045810-26-000051",
      "cik": "0001045810",
      "form": "8-K",
      "filed_date": "2026-05-20",
      "primary_doc_url": "https://www.sec.gov/Archives/edgar/data/1045810/...htm",
      "primary_doc_name": "nvda-20260520.htm",
      "description": "8-K",
      "size": 637530,
      "is_xbrl": true
    }
  ],
  "meta": { "cik": "0001045810", "name": "NVIDIA CORP", "count_returned": 1 },
  "ok": true
}

insider.py:

json
{
  "data": [
    {
      "accession": "...",
      "form": "4",
      "filed_date": "2026-05-15",
      "reporter": "JEN-HSUN HUANG",
      "roles": ["officer:CEO", "director"],
      "txn_date": "2026-05-13",
      "security_title": "Common Stock",
      "code": "S",
      "shares": 240000,
      "price": 412.5,
      "acquire_or_dispose": "D",
      "post_holdings": 78000000,
      "ownership_kind": "D",
      "derivative": false,
      "footnote_ids": ["F1"],
      "footnotes_text": ["Sale pursuant to 10b5-1 plan adopted ..."]
    }
  ],
  "meta": { "cik": "...", "name": "...", "filings_scanned": 12, "txns_parsed": 24 },
  "ok": true
}

Error handling

Exit codeMeaningLLM action
0SuccessParse and narrate.
2Missing SEC_USER_AGENTSet in .env at project root.
3HTTP 4xx, ticker not found, or unparseable XMLRead hint. Per-filing parse errors collected in meta.parse_errors.
4NetworkSuggest retry.

Known limitations

  • insider.py only scans the recent window of submissions (typically last ~1000 filings); deep history requires submissions/CIK*-N.json paging, not implemented.
  • filing_text.py uses an HTML-only extractor — XBRL inline tables are stripped to text, not parsed into structured rows.
  • Section slicing is regex-heuristic; trust meta.confidence.
  • 10 req/s throttle applied globally across all *.sec.gov calls.

Related skills

  • longbridge-financial-report for normalised income / balance / cash flow.
  • longbridge-news for curated equity news (faster than reading 8-Ks).
  • quiver for congressional trades (distinct from corporate insiders).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sec Edgar AI skill do?

US SEC EDGAR filings — list 10-K/10-Q/8-K/Form 4/S-1, fetch filing text, parse insider Form 4 transactions.

Why use Sec Edgar on TypingMind?

Because you install it once and use it with any model. Sec Edgar is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sec Edgar in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kansoku-trade/kansoku/tree/main/.claude/skills/sec-edgar. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sec Edgar?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sec Edgar?

As many as you like. As long as a model supports skills, you can use Sec Edgar with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sec Edgar AI skill free?

It is published on GitHub by kansoku-trade. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇