Logo: Robinhood

Robinhood

Communautéit
uzairansaruzi
robinhood

Robinhood portfolio advisor — read-only access to positions, quotes, fundamentals, news, earnings, analyst ratings, dividends, and options via MCP. Includes cache-first strategy, entity page workflows, and optional Obsidian vault integration.

Iwwersiicht

Editeuruzairansaruzi
Repositoryrobinhood-agent-skill
Skill-Nummrobinhood
Stären
39
Forks
8
Matgeliwwert Dateien
10
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 10 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    uzairansaruzi huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Robinhood an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/uzairansaruzi/robinhood-agent-skill/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/uzairansaruzi/robinhood-agent-skill.git \
  .claude/skills/robinhood
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Robinhood an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Robinhood automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Robinhood net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Robinhood Portfolio Advisor

Read-only access to your Robinhood portfolio via the robinhood-mcp server. Provides live data for positions, quotes, fundamentals, news, earnings, analyst ratings, dividends, and options.

Prerequisites

1. Robinhood Account

You need a Robinhood account (free at robinhood.com).

2. MCP Server Installation

The robinhood-mcp package provides the MCP server. Install it with one of:

bash
# Recommended — runs via uvx (no global install needed, auto-managed)
# Just add to your agent config and it works. uvx installs it on first run.

# Alternative — global pip install
pip install robinhood-mcp

Note: uvx is provided by the uv Python package manager. Install it first: curl -LsSf https://astral.sh/uv/install.sh | sh

3. Environment Variables

Set these in your agent's .env file or shell profile:

VariableRequiredDescription
ROBINHOOD_USERNAMEYesYour Robinhood email
ROBINHOOD_PASSWORDYesYour Robinhood password
ROBINHOOD_TOTP_SECRETOnly if using authenticator appThe TOTP secret from your authenticator setup. Not needed if using SMS verification.

4. Agent Configuration

See the templates/ directory for copy-paste config snippets for your agent. Quick reference:

Hermes Agent (~/.hermes/config.yaml):

yaml
mcp_servers:
  robinhood:
    command: uvx
    args:
      - robinhood-mcp
    env:
      ROBINHOOD_USERNAME: "${ROBINHOOD_USERNAME}"
      ROBINHOOD_PASSWORD: "${ROBINHOOD_PASSWORD}"
      # ROBINHOOD_TOTP_SECRET: "${ROBINHOOD_TOTP_SECRET}"  # Uncomment for authenticator app
    timeout: 60
    connect_timeout: 30

Other agents — see templates/ directory for Claude Desktop, Claude Code, Codex, OpenCode, Cline, and Windsurf.

After adding config, restart your agent. Verify with: hermes mcp test robinhood (Hermes) or check your agent's MCP status.

Available MCP Tools

These tools are registered as mcp_robinhood_* in Hermes Agent (prefix varies by agent):

ToolDescription
robinhood_get_portfolioPortfolio value, equity, buying power, day change
robinhood_get_positionsAll holdings with cost basis, current value, P&L
robinhood_get_positionSingle holding by ticker (faster for one symbol)
robinhood_get_watchlistStocks in your watchlists
robinhood_get_quoteReal-time price, bid/ask, volume
robinhood_get_fundamentalsP/E ratio, market cap, dividend yield, 52-week range
robinhood_get_historicalsOHLCV price history (5min, 10min, hour, day, week)
robinhood_get_newsRecent news articles for a symbol
robinhood_get_earningsEarnings dates, EPS estimates, actuals
robinhood_get_ratingsAnalyst buy/hold/sell ratings
robinhood_get_dividendsDividend payment history
robinhood_get_options_positionsCurrent options positions
robinhood_search_symbolsSearch stocks by name or ticker

Local Cache

Portfolio data is cached locally at ~/.hermes/data/robinhood/portfolio_cache.json (Hermes) or ~/.robinhood-mcp/cache.json (other agents).

Cache-First Strategy

Always check the cache first. Only call MCP tools when:

  1. Cache is older than 15 minutes AND the user needs live data
  2. User explicitly asks for a refresh ("refresh my portfolio", "get latest prices")
  3. User asks about a specific ticker not in cache
  4. User asks for rapidly changing data (news, real-time quotes)

Updating the Cache

bash
# Hermes Agent users
python3 scripts/refresh_cache.py

# With custom paths
python3 scripts/refresh_cache.py --cache-dir ~/my-data --vault-path ~/my-vault

# JSON output only (no Obsidian)
python3 scripts/refresh_cache.py --json-only

# Force refresh even if cache is fresh
python3 scripts/refresh_cache.py --force

The agent can also update the cache inline during any portfolio query by calling MCP tools and writing results to the cache file.

Portfolio Query Workflow

When the user asks about their portfolio:

  1. Read cache for context (portfolio value, positions, allocations)
  2. If data is stale (>15 min) or user wants live data, call MCP tools
  3. Update cache after any MCP fetch
  4. Answer with context of their actual holdings — not generic advice
  5. Reference their cost basis, unrealized P&L, and allocation when relevant
  6. For options questions, cross-reference with the user's strategy if known

When the user asks about a specific ticker:

  1. Check if wiki/entities/<ticker>.md exists (if using Obsidian)
  2. Read it for existing thesis and research history
  3. Fetch live data (quote, fundamentals, news, ratings) via MCP
  4. Respond with synthesis of wiki knowledge + live data
  5. Append a Research Notes entry to the entity page (if using Obsidian)
  6. If ticker not in portfolio, track it in a research queue

When to Use MCP vs Cache

ScenarioUse
"What's my portfolio worth?"Cache (if fresh enough)
"How's my NVDA doing?"Cache first, MCP if stale or ticker missing
"Give me a full portfolio update"MCP (always get live data)
"Any news on TSLA?"MCP (news changes constantly)
"What are analyst ratings for AAPL?"MCP (research data is always live)
"Show me my options positions"Cache first, MCP if stale
"What dividends have I received?"Cache first
"Refresh my data"MCP then update cache

Research-to-Entity Workflow (Optional — Requires Obsidian)

Problem: Research queries about stocks get lost in chat sessions. Solution: Every holding or researched ticker gets a persistent entity page. Research is appended, not forgotten.

Entity Page Structure

Each ticker gets a page at wiki/entities/<ticker>.md:

markdown
---
title: Company Name
created: YYYY-MM-DD
updated: YYYY-MM-DD
type: entity
tags: [ticker, sector, ...]
---

# Company Name (TICKER)

Brief overview...

## Key Facts
...

## Investment Thesis
...

## Position History
> Updated automatically. Do not edit manually.

### Current Position
| Metric | Value |
|--------|-------|
| Quantity | 50 |
| Avg Cost | $40.69 |
| Current Price | $45.20 |
| Total Return | +10.8% |

### Position Updates
- **[2026-04-24]** 50 shares @ $40.69 avg

## Research Notes
> Agent appends dated entries after each research query.

### [2026-04-24] Should I add to HIMS at $30?
Key points: [bullet summary]
Decision: [if user stated one]

When to Update Entity Pages

  1. On every portfolio pull — Update position data for each holding
  2. After every research query — Append a dated Research Notes entry
  3. When creating a new entity — Fetch fundamentals, create page, add to wiki index

Research Queue

wiki/concepts/research-queue.md tracks tickers being evaluated but not yet purchased:

TickerSourceThesis (1-line)StatusAddedNotes
ABCYouTube videoEV battery playresearching2026-04-24Mentioned by MKBHD

Status values: researching → ready to buy → (removed when purchased) or passed

Obsidian Vault Integration (Optional)

Every portfolio pull can write two files to your Obsidian vault:

FileBehavior
_ephemeral/portfolio/snapshots/YYYY-MM-DD-HHMM.mdImmutable — one per pull, full data
_ephemeral/portfolio/latest.mdOverwritten — current state + deltas vs previous

Frontmatter for Dataview

Both files include YAML frontmatter:

yaml
---
snapshot_time: 2026-04-24T18:58:02Z
date: 2026-04-24
time: 14:58
total_equity: 42700.94
day_change: -834.73
day_change_pct: -1.92
positions_count: 16
options_count: 1
dividends_ytd: 1.68
type: portfolio-snapshot
---

This enables Dataview queries like:

dataview
TABLE date, total_equity, day_change_pct
FROM "_ephemeral/portfolio/snapshots"
SORT snapshot_time DESC

Delta Computation

The latest.md compares against the most recent snapshot and highlights:

  • 🆕 New positions (bought since last pull)
  • ❌ Closed positions (sold since last pull)
  • 📊 Significant moves (>5% price change OR >1% allocation shift)
  • Equity change since last snapshot

To enable Obsidian integration, set the --vault-path argument when running refresh_cache.py, or set the ROBINHOOD_VAULT_PATH environment variable.

Advisory Guidelines

  1. Always answer with context of the user's actual holdings — not generic advice
  2. Reference cost basis, unrealized P&L, and allocation percentages when relevant
  3. For options questions, understand the user's strategy (e.g., 0DTE breakout)
  4. When recommending actions, show the math (current allocation, risk/reward)
  5. Never suggest trades unless the user explicitly asks for recommendations
  6. Flag concentration risk when a single position exceeds 20% of portfolio
  7. Cross-reference news with fundamentals — don't react to headlines alone

Security & Privacy

  • No credentials stored in the skill — auth is via environment variables in MCP config
  • Read-only access — the MCP server cannot execute trades or modify account settings
  • Local processing — credentials are used locally to authenticate; session tokens cached in ~/.tokens/robinhood.pickle
  • Cache is local only — ~/.hermes/data/robinhood/ is never transmitted
  • Obsidian vault — snapshots are written to the user's local vault only

Troubleshooting

IssueSolution
"Not logged in"Verify ROBINHOOD_USERNAME and ROBINHOOD_PASSWORD env vars are set correctly
"Non-base32 digit found"ROBINHOOD_TOTP_SECRET contains invalid characters — only A-Z and digits 2-7. Remove this var if using SMS verification
Rate limiting (429 errors)robin_stocks has no built-in rate limiting. Pause activity for several minutes and retry
MCP server won't startEnsure uvx is installed (pip install uv or curl -LsSf https://astral.sh/uv/install.sh | sh). Run uvx robinhood-mcp manually to test
Cache script failsEnsure robin_stocks and pyotp are installed: pip install robin_stocks pyotp
Stale quotesRobinhood quotes are point-in-time, not live streaming. Refresh via MCP for latest data

Related

  • robinhood-mcp — The underlying MCP server
  • robin_stocks — Unofficial Robinhood API wrapper
  • portfolio-obsidian-bridge — Generic Obsidian sync for any brokerage
  • llm-wiki — Wiki architecture for persistent research
  • obsidian — Obsidian vault operations

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Robinhood?

Robinhood portfolio advisor — read-only access to positions, quotes, fundamentals, news, earnings, analyst ratings, dividends, and options via MCP. Includes cache-first strategy, entity page workflows, and optional Obsidian vault integration.

Firwat Robinhood op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Robinhood besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Robinhood an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/uzairansaruzi/robinhood-agent-skill/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Robinhood benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Robinhood benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Robinhood domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Robinhood gratis?

Jo. uzairansaruzi huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇