agentleFS
ItamarZand88ItamarZand88/CLI-Anything-WEB/.claude/skills/capitoltrades-cli/SKILL.md

capitoltrades-cli

Skill215 starsChanged 3 months agoMITView on GitHub

Queries US congressional stock trades (STOCK Act disclosures) on capitoltrades.com via the cli-web-capitoltrades command-line tool — trades with rich filters, politician profiles and leaderboards, issuer lookup with price history, plus insight articles, buzz, and press. Use when the user asks about congress trades, politician stock trades, STOCK Act disclosures, Capitol Trades, insider trading by politicians, or which stocks members of Congress are buying or selling. Prefer this CLI over fetching the Capitol Trades website. No authentication required.

  • Installs packages

The file

Files
SKILL.md

cli-web-capitoltrades

Query Capitol Trades — US congressional stock-trade disclosures (read-only, no auth, CloudFront bypass built in). Install: pip install cli-web-capitoltrades

Commands

CommandPurposeKey options
trades listBrowse/filter trades--politician ID, --issuer ID, --party, --chamber, --tx-type buy|sell|exchange, --sector, --size, --sort traded|pubdate|filedafter|tradesize, --sort-direction, --page, --page-size
trades by-ticker TICKERTrades for a ticker (e.g. NVDA)--party, --tx-type, --page, --page-size
trades get TRADE_IDSingle trade detail
trades statsAggregate stats from the trades overview
politicians listPoliticians tracked on the site--party, --chamber, --state CA, --page, --page-size
politicians topLeaderboard by trade count or volume--by trades|volume, --party, --chamber, --page-size
politicians get POLITICIAN_IDProfile by bioguide ID (e.g. Y000067)
issuers listList issuers (companies, bonds, funds)--sector, --page, --page-size
issuers search QUERYSearch issuers; returns price history, stats, sector--full (full price history)
issuers get ISSUER_IDIssuer detail by internal ID (e.g. 435544)
articles list / articles get SLUGCapitol Trades insight articles--page, --page-size
buzz list / buzz get SLUGCurated stock-market news snippets--page, --page-size
press list / press get SLUGPress coverage about Capitol Trades--page, --page-size

ID conventions: politicians use bioguide IDs (Y000067), issuers use internal numeric IDs (435544) — issuers search and trades by-ticker resolve tickers for you.

Examples

# Latest congressional trades
cli-web-capitoltrades --json trades list --page-size 25

# Who's trading NVDA? Buys only, by Democrats
cli-web-capitoltrades --json trades by-ticker NVDA --tx-type buy --party democrat

# Most active senators by traded volume
cli-web-capitoltrades --json politicians top --by volume --chamber senate

# All trades by a specific politician (bioguide ID from politicians list/top)
cli-web-capitoltrades --json trades list --politician P000197 --sort traded

# Issuer lookup with price history and stats
cli-web-capitoltrades --json issuers search "Apple" --full

JSON output

--json is a top-level flag and goes before the command group: cli-web-capitoltrades --json trades list (not after the subcommand). Success responses are {"success": true, "data": ...}; errors are {"error": true, "code": "...", "message": "..."}.

Utilities

cli-web-capitoltrades doctor [--json] self-diagnoses the local setup (install, auth, dependencies). cli-web-capitoltrades mcp-serve serves the commands as MCP tools over stdio.

Agent tips

  • --size brackets for trade value: <1k, 1k-15k, 15k-50k, 50k-100k, 100k-250k, 250k-500k, 500k-1m, 1m-5m, 5m-25m, 25m-50m.
  • Workflow for "what is politician X trading": politicians list --state ... or politicians top → take the bioguide ID → trades list --politician ID.
  • Running with no subcommand opens an interactive REPL.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.