Skip to content
Bogleheads Forum Learner logo

Bogleheads Forum Learner

Continuously learns from Bogleheads.org forum to extract investing wisdom and integrate into RL trading engine

SKILL.md

Full skill instructions

Bogleheads Forum Learner Skill

Continuously monitors and learns from Bogleheads.org to extract investing wisdom and integrate insights into the RL trading engine.

Overview

Bogleheads is a community focused on passive investing, index funds, and long-term wealth building (inspired by Jack Bogle, founder of Vanguard). This skill:

  • Monitors forum discussions for investing insights
  • Extracts wisdom about market regimes, risk management, and strategy
  • Stores insights in RAG for retrieval
  • Integrates insights as a factor in RL engine decision-making

Why Bogleheads?

  1. Wisdom of the Crowd: 147,000+ members, 8M+ posts
  2. Long-Term Perspective: Focus on decades, not days
  3. Risk Management: Strong emphasis on diversification and risk control
  4. Market Regime Awareness: Discussions about market conditions
  5. Contrarian Signals: Often identifies when markets are overheated/​oversold

Tools

monitor_bogleheads_forum

Monitor Bogleheads forum for new discussions and insights.

Parameters:

  • topics: List of topics to monitor (default: ["Personal Investments", "Investing - Theory, News & General"])
  • keywords: Keywords to filter for (default: ["market timing", "rebalancing", "risk", "volatility", "bear market", "bull market"])
  • max_posts: Maximum posts to analyze per run (default: 50)
  • min_replies: Minimum replies for post to be considered (default: 5)

Returns:

  • posts_analyzed: Number of posts analyzed
  • insights_extracted: Number of insights extracted
  • topics_found: List of relevant topics found

extract_investing_insights

Extract investing insights from forum posts using Claude.

Parameters:

  • post_content: Forum post content
  • post_metadata: Post metadata (author, replies, date)

Returns:

  • insight_type: Type of insight (market_regime, risk_management, strategy, sentiment)
  • insight_text: Extracted insight
  • confidence: Confidence score (0-1)
  • relevance_score: Relevance to trading (0-1)
  • actionable: Whether insight is actionable

store_insights_to_rag

Store extracted insights in RAG storage for retrieval.

Parameters:

  • insights: List of insight dictionaries
  • embedding_model: Model to use for embeddings (default: "text-embedding-3-small")

Returns:

  • stored_count: Number of insights stored
  • rag_path: Path to RAG storage

get_bogleheads_signal

Get trading signal based on Bogleheads forum wisdom.

Parameters:

  • symbol: Symbol to analyze
  • market_context: Current market context
  • query: Specific query (e.g., "What do Bogleheads say about SPY in current market?")

Returns:

  • signal: BUY/​SELL/​HOLD recommendation
  • confidence: Confidence score (0-1)
  • reasoning: Reasoning based on forum wisdom
  • insights_used: List of insights that informed the signal

analyze_market_regime_bogleheads

Analyze current market regime based on Bogleheads discussions.

Parameters:

  • timeframe: Timeframe to analyze (default: "30d")

Returns:

  • regime: Market regime classification (bull, bear, choppy, uncertain)
  • sentiment: Overall sentiment (bullish, bearish, neutral)
  • key_themes: List of key themes discussed
  • risk_level: Perceived risk level (low, medium, high)

Integration with RL Engine

Bogleheads insights are integrated as a factor in the RL engine:

  1. State Space Enhancement: Adds "bogleheads_sentiment" feature
  2. Signal Weighting: Bogleheads signal contributes 5-10% to ensemble voting
  3. Risk Adjustment: Uses Bogleheads risk perception to adjust position sizing
  4. Regime Detection: Uses Bogleheads regime analysis for context

Usage Example

from claude.skills.bogleheads_learner.scripts.bogleheads_learner import BogleheadsLearner

learner = BogleheadsLearner()

# Monitor forum
results = learner.monitor_bogleheads_forum(
    topics=["Personal Investments", "Investing - Theory"],
    keywords=["market timing", "risk"],
    max_posts=50
)

# Get signal for symbol
signal = learner.get_bogleheads_signal(
    symbol="SPY",
    market_context={"volatility": "high", "trend": "bullish"},
    query="What do Bogleheads recommend for SPY in high volatility?"
)

# Use in RL engine
rl_state["bogleheads_sentiment"] = signal["confidence"]
rl_state["bogleheads_regime"] = signal["regime"]

Continuous Learning Schedule

  • Daily: Monitor new posts (runs at 2 AM UTC)
  • Weekly: Deep analysis of trending topics
  • Monthly: Regime analysis and strategy review

Data Privacy

  • Respects forum terms of service
  • Only analyzes publicly available posts
  • No personal information stored
  • Rate-limited to avoid overloading forum

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View