# Insider Signal Reader: Form 4 and MAR trades that count

> Strip grants, exercises and 10b5-1 noise from insider filings; classify routine vs opportunistic; US Form 4 script plus EU sources.

Insider Signal Reader: Form 4 and MAR trades that count is a free AI agent skill on Agensi by Ignasi, in Finance & Accounting. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ignasi](https://www.agensi.io/creators/ignasi)
- Category: [Finance & Accounting](https://www.agensi.io/skills/finance-accounting)
- Version: 1.0.0
- Last updated: 2026-12-03
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/insider-signal-reader-form-4-and-mar-trades-that-count
- Tags: trading-investing, finance, sec-edgar, insider-trading, research

## About this skill

Insider filings are mostly noise: grants, option exercises, tax withholding, scheduled plan sales and buying that happens every September. Insider Signal Reader teaches your agent to separate those from the few trades that carry information, and to say "unknown" when the data cannot tell.

### What it does

- Pulls a company's SEC Form 4 filings (script, standard library only) and keeps open-market purchases and sales; drops grants, exercises, tax withholding, gifts and the sale that funds an exercise.
- Flags 10b5-1 plan sales from the filing checkbox and footnotes.
- Classifies each insider routine or opportunistic using the Cohen-Malloy-Pomorski (2012) calendar-month test, and refuses to classify when the history it read is too short.
- Weighs by role tier, size against the insider's own holding, and clusters of distinct buyers.
- Covers Europe: MAR Article 19 managers' transactions, with the BaFin and CNMV endpoints, field quirks, and what each source misses; notes for France, the UK and Canada.

### What you get

| File | Contents |
|---|---|
| SKILL.md | Procedure, order and reasons, hard rules |
| scripts/form4_insiders.py | EDGAR Form 4 puller and classifier |
| scripts/sample_form4.xml | 18 synthetic filings for a no-network trial |
| references/us-form4.md | Codes, XML fields, EDGAR endpoints and traps |
| references/classification-method.md | Routine rule, coverage rule, wording |
| references/eu-and-other-sources.md | BaFin, CNMV, UK, Canada, France |
| templates/insider-note.md | Write-up block |

### Who it's for

Investors and analysts who check insider activity before or during a position review, and anyone building an agent that answers "are insiders buying?" without counting vesting events as conviction.

### Scope

Covered: US issuers filing Form 4 (automated); German and Spanish registers (endpoints and field notes).
Not covered: automated European fetching, derivative-table lines, Form 3 and 5, return backtests. The script needs your own contact address in SEC_USER_AGENT; it refuses to run without it.

Not investment advice.

## Requires

- Python 3.9+
- SEC_USER_AGENT env var (name and contact email) for EDGAR
- Internet access to sec.gov for live runs

## Known limitations

The script covers US Form 4 only and reads non-derivative lines. The 10b5-1 checkbox is per filing, so mixed filings can over-flag. European sources are described, not fetched. The live EDGAR run could not be recorded in the build environment (no contact address available); the parser and classifier were tested on synthetic documents.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Insider Signal Reader: Form 4 and MAR trades that count skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Do I need an API key?

No key. The SEC asks every client to identify itself, so set SEC_USER_AGENT to your name and an email address. The script refuses to run without it.

### Does the script fetch European data?

No. It is US-only. The references give the real BaFin and CNMV endpoints, columns and traps so an agent can fetch them; France, the UK and Canada are notes only.

### How long does a run take?

The first run on a large company downloads several hundred filings at about six a second, so one to a few minutes. Parsed filings are cached; reruns are instant. --quick skips history.

### Why are some trades 'unclassified'?

The routine test needs a trade in each of the three prior calendar years. Without that record, or with history cut short, the script says unclassified rather than guessing.

### Is this investment advice?

No. It describes public filings and a published research method.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
