Sec13f Data Format logo

Sec13f Data Format

Organization
cxcscmu
sec13f-data-format

Understanding SEC 13-F filing data structure, TSV format, and key tables for hedge fund analysis

Overview

Publishercxcscmu
RepositorySkillLearnBench
Skill namesec13f-data-format
Stars
91
Forks
7
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by cxcscmu on GitHub. Read the source before you install it.

Installation

Install the Sec13f Data Format 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/cxcscmu/SkillLearnBench/tree/main/skills/b1-one-shot-claude-haiku-4-5/financial-analysis/sec13f-data-format
  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/cxcscmu/SkillLearnBench.git /tmp/SkillLearnBench
mkdir -p .claude/skills
cp -r /tmp/SkillLearnBench/skills/b1-one-shot-claude-haiku-4-5/financial-analysis/sec13f-data-format .claude/skills/sec13f-data-format
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sec13f Data Format 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 Sec13f Data Format 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 Sec13f Data Format 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 13-F Data Format and Structure

Overview

SEC 13-F filings provide quarterly snapshots of large institutional investment holdings. The data is distributed as tab-separated value (TSV) files organized by reporting quarters.

Key Data Files

COVERPAGE.tsv

Purpose: Fund/Manager information and filing metadata Key Columns:

  • ACCESSION_NUMBER: Unique identifier for the filing (use to link with holdings)
  • FILINGMANAGER_NAME: Name of the fund or investment manager
  • REPORTCALENDARORQUARTER: Reporting date (e.g., "30-JUN-2025")
  • DATEREPORTED: When the filing was reported
  • REPORTTYPE: Type of 13-F report

Usage Example:

python
import pandas as pd

# Load fund information
coverpage = pd.read_csv('/root/2025-q3/COVERPAGE.tsv', sep='\t')

# Find a specific fund by name
fund_info = coverpage[coverpage['FILINGMANAGER_NAME'].str.contains('Renaissance', case=False, na=False)]
accession_number = fund_info['ACCESSION_NUMBER'].values[0]

INFOTABLE.tsv

Purpose: Detailed holdings data for all funds Key Columns:

  • ACCESSION_NUMBER: Links to the fund (from COVERPAGE)
  • NAMEOFISSUER: Company name of the stock
  • CUSIP: Committee on Uniform Security Identification Procedures code (unique stock identifier)
  • VALUE: Market value of holdings in thousands (USD)
  • SSHPRNAMT: Number of shares held (integer)
  • SSHPRNAMTTYPE: Share amount type (usually "SH" for shares)

Usage Example:

python
# Load all holdings
holdings = pd.read_csv('/root/2025-q3/INFOTABLE.tsv', sep='\t')

# Get holdings for a specific fund
fund_holdings = holdings[holdings['ACCESSION_NUMBER'] == 'specific_accession_number']

# Get count of stocks held
stock_count = len(fund_holdings)

# Find a specific stock
palantir = holdings[holdings['NAMEOFISSUER'].str.contains('PALANTIR', case=False, na=False)]

SUMMARYPAGE.tsv

Purpose: Summary-level information per fund Key Columns:

  • ACCESSION_NUMBER: Fund identifier
  • TABLE_OF_CONTENTS: Summary metadata
  • Other aggregate information

Data Characteristics

Value Representation

  • All monetary values in INFOTABLE are in thousands of USD
  • To get actual dollar value: actual_value = VALUE_FROM_TSV * 1000
  • Share counts are exact integers

Date Formats

  • Dates typically in format "DD-MMM-YYYY" (e.g., "30-JUN-2025")
  • Convert using: pd.to_datetime(df['date_column'], format='%d-%b-%Y')

Data Types

python
# Common data type conversions
df['VALUE'] = pd.to_numeric(df['VALUE'], errors='coerce')
df['SSHPRNAMT'] = pd.to_numeric(df['SSHPRNAMT'], errors='coerce')
df['CUSIP'] = df['CUSIP'].astype(str)

Loading and Initial Data Exploration

python
import pandas as pd

def load_13f_data(quarter_path):
    """Load all 13-F data for a quarter"""
    return {
        'coverpage': pd.read_csv(f'{quarter_path}/COVERPAGE.tsv', sep='\t'),
        'infotable': pd.read_csv(f'{quarter_path}/INFOTABLE.tsv', sep='\t'),
        'summarypage': pd.read_csv(f'{quarter_path}/SUMMARYPAGE.tsv', sep='\t')
    }

# Usage
q2_data = load_13f_data('/root/2025-q2')
q3_data = load_13f_data('/root/2025-q3')

# Find number of unique funds
num_funds = q3_data['coverpage']['ACCESSION_NUMBER'].nunique()
print(f"Number of unique funds in Q3: {num_funds}")

Common Analysis Patterns

Get Fund AUM (Assets Under Management)

AUM is typically found in SUMMARYPAGE.tsv:

python
summarypage = q3_data['summarypage']
# Look for AUM-related fields (may vary by filing)

Get Fund Holdings Count

python
fund_accession = 'specific_accession_number'
fund_holdings = q3_data['infotable'][q3_data['infotable']['ACCESSION_NUMBER'] == fund_accession]
num_holdings = len(fund_holdings)

Cross-Quarter Comparison

python
# Get same fund's holdings from two quarters
q2_holdings = q2_data['infotable'][q2_data['infotable']['ACCESSION_NUMBER'] == accession]
q3_holdings = q3_data['infotable'][q3_data['infotable']['ACCESSION_NUMBER'] == accession]

# Merge and compare
comparison = pd.merge(
    q2_holdings[['CUSIP', 'VALUE', 'SSHPRNAMT', 'NAMEOFISSUER']],
    q3_holdings[['CUSIP', 'VALUE', 'SSHPRNAMT']],
    on='CUSIP',
    suffixes=('_q2', '_q3'),
    how='outer'
).fillna(0)

# Calculate changes
comparison['value_change'] = comparison['VALUE_q3'] - comparison['VALUE_q2']
comparison = comparison.sort_values('value_change', ascending=False)

Notes

  • ACCESSION_NUMBER is the critical linking key between all tables
  • CUSIP is the universal stock identifier
  • Multiple funds can have the same stock in their portfolios
  • Data is case-sensitive in some fields, use .str.lower() or str.contains(..., case=False) for case-insensitive matching

Frequently asked questions

What does the Sec13f Data Format AI skill do?

Understanding SEC 13-F filing data structure, TSV format, and key tables for hedge fund analysis

Why use Sec13f Data Format on TypingMind?

Because you install it once and use it with any model. Sec13f Data Format 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 Sec13f Data Format in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cxcscmu/SkillLearnBench/tree/main/skills/b1-one-shot-claude-haiku-4-5/financial-analysis/sec13f-data-format. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Sec13f Data Format?

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 Sec13f Data Format?

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

Is the Sec13f Data Format AI skill free?

Yes. It is published on GitHub by cxcscmu under the MIT license. 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 👇