Agent skill

Capitoltrades CLI

by ItamarZand88 in ItamarZand88/CLI-Anything-WEB

Use cli-web-capitoltrades to query US congressional stock trades, politicians, issuers, and insight articles from capitoltrades.com.

MITAuto-check passed

Install Capitoltrades CLI

skills CLI
$ npx skills add ItamarZand88/CLI-Anything-WEB --skill capitoltrades-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ItamarZand88/CLI-Anything-WEB capitoltrades-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ItamarZand88/CLI-Anything-WEB.git skills-src && mkdir -p .claude/skills && cp -r skills-src/capitoltrades/agent-harness/cli_web/capitoltrades/skills .claude/skills/capitoltrades-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
capitoltrades-cli
GitHub stars
231
Token cost
~1.8k tokens
SKILL.md length
580 words
Files
1
Skills in repo
42
Repo updated
First seen
Licence
MIT

At a glance

Use cli-web-capitoltrades to query US congressional stock trades, politicians, issuers, and insight articles from capitoltrades.com.

  • Asks about congressional trading
  • SKILL.md covers Quick Start, Commands, Agent Patterns and Data Model Notes, plus 2 more sections
  • Calls python
  • Senator/representative stock trades

What it does

Capitoltrades CLI is an agent skill from ItamarZand88/CLI-Anything-WEB. Use cli-web-capitoltrades to query US congressional stock trades, politicians, issuers, and insight articles from capitoltrades.com. Invoke this skill whenever the user asks about congressional trading, senator/representative stock trades, STOCK Act filings, insider trades by politicians, specific tickers (e.g. "what did Pelosi buy"), or US Capitol Trades data. Always prefer cli-web-capitoltrades over manually fetching the website — no auth is required and the CLI returns structured JSON.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Claude Code plugin that generates production-grade Python CLIs for any web app. 20 CLIs and counting. The licence is MIT.

When your agent uses it

  • Asks about congressional trading
  • Senator/representative stock trades
  • STOCK Act filings
  • Insider trades by politicians

Example prompts

  • “what did Pelosi buy”
  • “/capitoltrades-cli”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 931e201. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Capitoltrades CLI loads about 1.8k tokens when it runs. Until then it costs about 128 tokens; SKILL.md has 580 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~128
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ItamarZand88/CLI-Anything-WEB at commit 931e201, republished under its MIT licence (© ItamarZand88). 580 words, ~1,840 tokens.

Download SKILL.mdSave it as .claude/skills/capitoltrades-cli/SKILL.md (or your agent's skills folder).
name
capitoltrades-cli
description
Use cli-web-capitoltrades to query US congressional stock trades, politicians, issuers, and insight articles from capitoltrades.com. Invoke this skill whenever the user asks about congressional trading, senator/representative stock trades, STOCK Act filings, insider trades by politicians, specific tickers (e.g. "what did Pelosi buy"), or US Capitol Trades data. Always prefer cli-web-capitoltrades over manually fetching the website — no auth is required and the CLI returns structured JSON.

cli-web-capitoltrades

Browse US congressional stock trades tracked on capitoltrades.com (by 2iQ Research). Installed at: cli-web-capitoltrades.

The site is a fully public data aggregator covering STOCK Act disclosures: ~35,000 trades, ~200 politicians, ~3,000 issuers. No authentication required.

Quick Start

bash
# Latest trades across Congress
cli-web-capitoltrades --json trades list --page-size 20

# Trades by a specific politician (bioguide ID)
cli-web-capitoltrades --json trades list --politician P000197

# Trades for a ticker (auto-resolves via BFF)
cli-web-capitoltrades --json trades by-ticker NVDA --page-size 20

# Only large-size trades ($1M-$5M)
cli-web-capitoltrades --json trades list --size 1M-5M

# Top politicians by trade volume
cli-web-capitoltrades --json politicians top --by volume --page-size 10

# Aggregate stats (total trades, volume, politicians)
cli-web-capitoltrades --json trades stats

# Rich issuer data (sector, market cap, 1-year price history, #politicians holding)
cli-web-capitoltrades --json issuers search nvidia

Always pass --json when parsing output programmatically.


Commands

trades list

List trades, paginated and filterable.

bash
cli-web-capitoltrades trades list [options] --json

Key options:

  • --page N / --page-size N — pagination (default 1, 12)
  • --politician <bioguide_id> — e.g. P000197 (Pelosi)
  • --issuer <issuer_id> — e.g. 429725 (Amgen)
  • --party republican|democrat|independent
  • --chamber house|senate
  • --tx-type buy|sell|exchange
  • --sector <name> (e.g. health-care, information-technology)
  • --size <bracket> — one of <1K, 1K-15K, 15K-50K, 50K-100K, 100K-250K, 250K-500K, 500K-1M, 1M-5M, 5M-25M, 25M-50M
  • --sort traded|pubDate|filedAfter|tradeSize — sort column
  • --sort-direction asc|desc (default desc)

Output fields: trade_id, politician_id, politician_name, politician_party, politician_chamber, politician_state, issuer_id, issuer_name, ticker, tx_type, size, price, traded, published, filed_after_days, owner.

trades get <trade_id>

Get full detail for a single trade (adds price, shares, filing_url, comment, reporting_gap).

trades by-ticker <SYM>

Convenience: resolve a ticker (e.g. NVDA, AMGN) via BFF search, then list trades for that issuer. Accepts --party, --tx-type, --page, --page-size. Returned meta.resolved_issuer includes name, ticker, sector, issuer_id.

trades stats

Overview stats from the /trades landing page. Returns trades, filings, volume, politicians, issuers.

politicians list

List politicians with filters.

Key options: --party republican|democrat|independent, --chamber house|senate, --state <ST>.

Output fields: politician_id (bioguide), name, party, state, trades_count, issuers_count, volume, last_traded.

politicians top

Leaderboard of politicians ranked by recent activity.

Key options: --by trades|volume (default trades), --page-size N, --party, --chamber.

politicians get <bioguide_id>

Politician detail + recent trades table. Example: cli-web-capitoltrades politicians get Y000067.

issuers list

List issuers (companies, funds, treasuries). Output: issuer_id, name, ticker.

issuers get <issuer_id>

Issuer detail + recent trades. Example: cli-web-capitoltrades issuers get 435544 (US Treasury Bills).

issuers search <query>

Richest endpoint. Uses the BFF JSON API — returns sector, market cap, 1-year price history (performance.eodPrices), trailing returns, and stats.countPoliticians / countTrades / volume / dateFirstTraded. Use --full to include the full eodPrices array.

articles list / articles get <slug>

List or view insight articles. Slug format: kebab-title-YYYY-MM-DD.

buzz list / buzz get <slug>

Third-party news snippets curated by Capitol Trades (Twitter, external articles about companies and politicians). Same slug format as articles.

Show full SKILL.md (241 more words)Show less
press list / press get <slug>

Press coverage about Capitol Trades data and congressional trading news (articles published by external publications like CNN, Forbes, Politico).


Agent Patterns

bash
# Find all buys of NVIDIA this year by Republicans
cli-web-capitoltrades --json issuers search nvidia | \
  python -c "import json, sys; d=json.load(sys.stdin); print(d['data'][0]['_issuerId'])"
# → take the issuer_id, then:
cli-web-capitoltrades --json trades list --issuer 433382 --party republican --tx-type buy --page-size 50

# Summary of a politician's most active tickers
cli-web-capitoltrades --json politicians get P000197 | \
  python -c "import json, sys, collections; d=json.load(sys.stdin); \
    trades=d['data']['recent_trades']; \
    print(collections.Counter(t['ticker'] for t in trades).most_common(5))"

# Today's biggest trades
cli-web-capitoltrades --json trades list --page-size 50 | \
  python -c "import json, sys; d=json.load(sys.stdin); \
    for t in d['data'][:10]: print(f\"{t['traded']}  {t['tx_type']:<5} {t['politician_name']:<25} {t['ticker']:<10} {t['size']}\")"

Data Model Notes

  • Bioguide IDs (politician_id): 7 chars, [A-Z]\d{6}, the same ID used by bioguide.congress.gov
  • Issuer IDs: numeric strings assigned by 2iQ Research
  • Trade IDs: 11-digit numeric strings
  • Trade sizes are ranges (1K–15K, 15K–50K, 50K–100K, 100K–250K, 250K–500K, 500K–1M, 1M–5M, 5M–25M, 25M–50M, >50M) — the STOCK Act only requires range disclosure, not exact amounts
  • owner = Self, Spouse, Child, Joint, Undisclosed, Dependent, etc.
  • filed_after_days = days between trade and disclosure (45 days = late, per STOCK Act)

Notes

  • Auth: None — fully public site
  • Rate limits: Site is served via AWS CloudFront; the CLI uses curl_cffi with Chrome 136 TLS fingerprinting, which is what makes the BFF accessible. No observed rate limits in normal use.
  • Freshness: Data is typically <24h behind actual filings. Politician disclosures may lag up to 45 days (legal requirement) after the trade date.
  • Exit codes: 0 success, 1 user error (not found / invalid arg), 2 system error (network / 5xx).
  • BFF quirks: Only /issuers?search=... is exposed publicly. Other endpoints on bff.capitoltrades.com return 503.

Known limitations

  • No full politician search in the BFF — use politicians list with filters, or browse the paginated list.
  • No trades search by ticker directly — search the issuer by ticker first, take its _issuerId, then filter trades by --issuer <id>.
  • Reading large result sets (--page-size 100) may take a few seconds per page (HTML scraping).

© ItamarZand88, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in capitoltrades/agent-harness/cli_web/capitoltrades/skills of ItamarZand88/CLI-Anything-WEB.

Open the folder on GitHubat commit 931e201

Compare with similar skills

Capitoltrades CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Capitoltrades CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Capitoltrades CLI this skillItamarZand88/CLI-Anything-WEB231—~1.8kAutomated safety check: PassMIT
Multi-Symbol Market Scannertradesdontlie/tradingview-mcp6.8k2 repos~447Automated safety check: PassCustom licence
Pine Script Development Looptradesdontlie/tradingview-mcp6.8k2 repos~617Automated safety check: PassCustom licence
CCXT Crypto Exchange Library2025Emma/vibe-coding-cn23k1 repos~4.4kAutomated safety check: PassMIT
TqSdk Trading and Datashinnytech/tqsdk-python5.1k—~2kAutomated safety check: PassApache-2.0
Trader Memory Coretradermonty/claude-trading-skills3k2 repos~4.3kAutomated safety check: PassMIT

Similar skills

  • Multi-Symbol Market Scanner

    tradesdontlie/tradingview-mcp

    Scans a list of trading symbols in TradingView for setups, patterns or strategy results and reports them as a ranked comparison table.

    6.8k GitHub starsUsed in 2 repos~447 tokens
    Business, Finance & HRAuto-check passed
  • Pine Script Development Loop

    tradesdontlie/tradingview-mcp

    Runs a write, compile, fix and verify loop for TradingView Pine Script indicators and strategies, pushing code into the Pine Editor and checking it on the chart.

    6.8k GitHub starsUsed in 2 repos~617 tokens
    Business, Finance & HRAuto-check passed
  • CCXT Crypto Exchange Library

    2025Emma/vibe-coding-cn

    Reference help for the CCXT library covering crypto exchange APIs, market data, trading and order management across 150+ exchanges in JavaScript, Python and PHP.

    23k GitHub starsUsed in 1 repo~4.4k tokens
    Business, Finance & HRAuto-check passed
  • TqSdk Trading and Data

    shinnytech/tqsdk-python

    Answers TqSdk Python questions on market data, accounts, orders, margin trials, simulation and backtesting, using the library's own docs and examples.

    5.1k GitHub stars~2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Trader Memory Core

    tradermonty/claude-trading-skills

    Track investment theses across their lifecycle — from screening idea to closed position with postmortem.

    3k GitHub starsUsed in 2 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Connects an agent to the AI-Trader platform's API to publish trading signals and follow traders, routing to child skills for copy trading, trade sync and market data.

    23k GitHub stars~8.5k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed

More from ItamarZand88/CLI-Anything-WEB

All 42 skills in this repo
  • Standards

    ItamarZand88/CLI-Anything-WEB

    Runs Phase 4 review/publish/verify for a cli-web- CLI: implementation review by 3 parallel agents, the tiered quality checklist (Tier 1 critical fail-fast, then comprehensive), pip install + smoke…

    231 GitHub stars~4.2k tokensUpdated 8 days ago
    Auto-check passed
  • Airbnb CLI

    ItamarZand88/CLI-Anything-WEB

    Searches Airbnb from the terminal via cli-web-airbnb — find stays by location, dates, and filters; get listing details, guest reviews, and availability calendars; autocomplete location names.

    231 GitHub stars~801 tokensUpdated 8 days ago
    Auto-check passed
  • Amazon CLI

    ItamarZand88/CLI-Anything-WEB

    Searches Amazon from the terminal via cli-web-amazon — product search, product details by ASIN, Best Sellers by category, and autocomplete suggestions.

    231 GitHub stars~570 tokensUpdated 8 days ago
    Auto-check passed
  • Booking CLI

    ItamarZand88/CLI-Anything-WEB

    Searches Booking.com from the terminal via cli-web-booking — find hotels, apartments, and hostels by destination, dates, and guests; get property details by slug; resolve destination names to IDs.

    231 GitHub stars~776 tokensUpdated 8 days ago
    Auto-check passed
  • Booking CLI

    ItamarZand88/CLI-Anything-WEB

    Use cli-web-booking to search Booking.com for hotels, apartments, hostels, and accommodations by destination, dates, and filters.

    231 GitHub stars~970 tokensUpdated 8 days ago
    Auto-check passed
  • Capitoltrades CLI

    ItamarZand88/CLI-Anything-WEB

    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…

    231 GitHub stars~971 tokensUpdated 8 days ago
    Auto-check passed

Questions about Capitoltrades CLI

What does Capitoltrades CLI do?

Use cli-web-capitoltrades to query US congressional stock trades, politicians, issuers, and insight articles from capitoltrades.com. Capitoltrades CLI is an agent skill from ItamarZand88/CLI-Anything-WEB.com.

When should I use Capitoltrades CLI?

Capitoltrades CLI fits situations like: asks about congressional trading; senator/representative stock trades; STOCK Act filings; insider trades by politicians.

How do I install Capitoltrades CLI in Claude Code?

Run `npx skills add ItamarZand88/CLI-Anything-WEB --skill capitoltrades-cli -a claude-code`. Or copy the skill folder (capitoltrades/agent-harness/cli_web/capitoltrades/skills in ItamarZand88/CLI-Anything-WEB) into .claude/skills/capitoltrades-cli in your project. Claude Code loads it when a task matches its description.

How do I install Capitoltrades CLI in Codex?

Run `npx skills add ItamarZand88/CLI-Anything-WEB --skill capitoltrades-cli -a codex`. Or copy the skill folder (capitoltrades/agent-harness/cli_web/capitoltrades/skills in ItamarZand88/CLI-Anything-WEB) into .agents/skills/capitoltrades-cli in your project. Codex loads it when a task matches its description.

Can I use Capitoltrades CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ItamarZand88/CLI-Anything-WEB --skill capitoltrades-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/capitoltrades-cli, .gemini/skills/capitoltrades-cli, .github/skills/capitoltrades-cli and .opencode/skills/capitoltrades-cli in your project.

What does Capitoltrades CLI need to run?

Going by SKILL.md and its folder, Capitoltrades CLI needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Capitoltrades CLI access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Capitoltrades CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Capitoltrades CLI use?

Capitoltrades CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Capitoltrades CLI use?

About 1.8k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Capitoltrades CLI?

Skills that share tags, products or a category with Capitoltrades CLI: Multi-Symbol Market Scanner (tradesdontlie/tradingview-mcp, 6.8k stars), Pine Script Development Loop (tradesdontlie/tradingview-mcp, 6.8k stars), CCXT Crypto Exchange Library (2025Emma/vibe-coding-cn, 23k stars) and TqSdk Trading and Data (shinnytech/tqsdk-python, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Capitoltrades CLI?

ItamarZand88 (a GitHub user) maintains it in ItamarZand88/CLI-Anything-WEB, which has 231 GitHub stars. The repository holds 42 skills in this directory. The repository was last updated on October 1, 2026.

Source: ItamarZand88/CLI-Anything-WEB on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.