Back to Skills
    🦞

    proactive-research

    Monitor topics of interest and proactively alert

    By @robbyczgw-cla
    View on GitHub
    SKILL.md
    ---
    name: proactive-research
    description: Monitor topics of interest and proactively alert when important developments occur. Use when user wants automated monitoring of specific subjects (e.g., product releases, price changes, news topics, technology updates). Supports scheduled web searches, AI-powered importance scoring, smart alerts vs weekly digests, and memory-aware contextual summaries.
    ---
    
    # Proactive Research
    
    **Monitor what matters. Get notified when it happens.**
    
    Proactive Research transforms your assistant from reactive to proactive by continuously monitoring topics you care about and intelligently alerting you only when something truly matters.
    
    ## Core Capabilities
    
    1. **Topic Configuration** - Define subjects with custom parameters
    2. **Scheduled Monitoring** - Automated searches at configurable intervals
    3. **AI Importance Scoring** - Smart filtering: immediate alert vs digest vs ignore
    4. **Contextual Summaries** - Not just linksβ€”meaningful summaries with context
    5. **Weekly Digest** - Low-priority findings compiled into readable reports
    6. **Memory Integration** - References your past conversations and interests
    
    ## Quick Start
    
    ```bash
    # Initialize config
    cp config.example.json config.json
    
    # Add a topic
    python3 scripts/manage_topics.py add "Dirac Live updates" \
      --keywords "Dirac Live,room correction,audio" \
      --frequency daily \
      --importance medium
    
    # Test monitoring (dry run)
    python3 scripts/monitor.py --dry-run
    
    # Set up cron for automatic monitoring
    python3 scripts/setup_cron.py
    ```
    
    ## Topic Configuration
    
    Each topic has:
    
    - **name** - Display name (e.g., "AI Model Releases")
    - **query** - Search query (e.g., "new AI model release announcement")
    - **keywords** - Relevance filters (["GPT", "Claude", "Llama", "release"])
    - **frequency** - `hourly`, `daily`, `weekly`
    - **importance_threshold** - `high` (alert immediately), `medium` (alert if important), `low` (digest only)
    - **channels** - Where to send alerts (["telegram", "discord"])
    - **context** - Why you care (for AI contextual summaries)
    
    ### Example config.json
    
    ```json
    {
      "topics": [
        {
          "id": "ai-models",
          "name": "AI Model Releases",
          "query": "new AI model release GPT Claude Llama",
          "keywords": ["GPT", "Claude", "Llama", "release", "announcement"],
          "frequency": "daily",
          "importance_threshold": "high",
          "channels": ["telegram"],
          "context": "Following AI developments for work",
          "alert_on": ["model_release", "major_update"]
        },
        {
          "id": "tech-news",
          "name": "Tech Industry News",
          "query": "technology startup funding acquisition",
          "keywords": ["startup", "funding", "Series A", "acquisition"],
          "frequency": "daily",
          "importance_threshold": "medium",
          "channels": ["telegram"],
          "context": "Staying informed on tech trends",
          "alert_on": ["major_funding", "acquisition"]
        },
        {
          "id": "security-alerts",
          "name": "Security Vulnerabilities",
          "query": "CVE critical vulnerability security patch",
          "keywords": ["CVE", "vulnerability", "security", "patch", "critical"],
          "frequency": "hourly",
          "importance_threshold": "high",
          "channels": ["telegram", "email"],
          "context": "DevOps security monitoring",
          "alert_on": ["critical_cve", "zero_day"]
        }
      ],
      "settings": {
        "digest_day": "sunday",
        "digest_time": "18:00",
        "max_alerts_per_day": 5,
        "deduplication_window_hours": 72,
        "learning_enabled": true
      }
    }
    ```
    
    ## Scripts
    
    ### manage_topics.py
    
    Manage research topics:
    
    ```bash
    # Add topic
    python3 scripts/manage_topics.py add "Topic Name" \
      --query "search query" \
      --keywords "word1,word2" \
      --frequency daily \
      --importance medium \
      --channels telegram
    
    # List topics
    python3 scripts/manage_topics.py list
    
    # Edit topic
    python3 scripts/manage_topics.py edit eth-price --frequency hourly
    
    # Remove topic
    python3 scripts/manage_topics.py remove eth-price
    
    # Test topic (preview results without saving)
    python3 scripts/manage_topics.py test eth-price
    ```
    
    ### monitor.py
    
    Main monitoring script (run via cron):
    
    ```bash
    # Normal run (alerts + saves state)
    python3 scripts/monitor.py
    
    # Dry run (no alerts, shows what would happen)
    python3 scripts/monitor.py --dry-run
    
    # Force check specific topic
    python3 scripts/monitor.py --topic eth-price
    
    # Verbose logging
    python3 scripts/monitor.py --verbose
    ```
    
    **How it works:**
    1. Reads topics due for checking (based on frequency)
    2. Searches using web-search-plus or built-in web_search
    3. Scores each result with AI importance scorer
    4. High-importance β†’ immediate alert
    5. Medium-importance β†’ saved for digest
    6. Low-importance β†’ ignored
    7. Updates state to prevent duplicate alerts
    
    ### digest.py
    
    Generate weekly digest:
    
    ```bash
    # Generate digest for current week
    python3 scripts/digest.py
    
    # Generate and send
    python3 scripts/digest.py --send
    
    # Preview without sending
    python3 scripts/digest.py --preview
    ```
    
    Output format:
    ```markdown
    # Weekly Research Digest - [Date Range]
    
    ## πŸ”₯ Highlights
    
    - **AI Models**: Claude 4.5 released with improved reasoning
    - **Security**: Critical CVE patched in popular framework
    
    ## πŸ“Š By Topic
    
    ### AI Model Releases
    - [3 findings this week]
    
    ### Security Vulnerabilities
    - [1 finding this week]
    
    ## πŸ’‘ Recommendations
    
    Based on your interests, you might want to monitor:
    - "Kubernetes security" (mentioned 3x this week)
    ```
    
    ### setup_cron.py
    
    Configure automated monitoring:
    
    ```bash
    # Interactive setup
    python3 scripts/setup_cron.py
    
    # Auto-setup with defaults
    python3 scripts/setup_cron.py --auto
    
    # Remove cron jobs
    python3 scripts/setup_cron.py --remove
    ```
    
    Creates cron entries:
    ```cron
    # Proactive Research - Hourly topics
    0 * * * * cd /path/to/skills/proactive-research && python3 scripts/monitor.py --frequency hourly
    
    # Proactive Research - Daily topics  
    0 9 * * * cd /path/to/skills/proactive-research && python3 scripts/monitor.py --frequency daily
    
    # Proactive Research - Weekly digest
    0 18 * * 0 cd /path/to/skills/proactive-research && python3 scripts/digest.py --send
    ```
    
    ## AI Importance Scoring
    
    The scorer uses multiple signals to decide alert priority:
    
    ### Scoring Signals
    
    **HIGH priority (immediate alert):**
    - Major breaking news (detected via freshness + keyword density)
    - Price changes >10% (for finance topics)
    - Product releases matching your exact keywords
    - Security vulnerabilities in tools you use
    - Direct answers to specific questions you asked
    
    **MEDIUM priority (digest-worthy):**
    - Related news but not urgent
    - Minor updates to tracked products
    - Interesting developments in your topics
    - Tutorial/guide releases
    - Community discussions with high engagement
    
    **LOW priority (ignore):**
    - Duplicate news (already alerted)
    - Tangentially related content
    - Low-quality sources
    - Outdated information
    - Spam/promotional content
    
    ### Learning Mode
    
    When enabled (`learning_enabled: true`), the system:
    1. Tracks which alerts you interact with
    2. Adjusts scoring weights based on your behavior
    3. Suggests topic refinements
    4. Auto-adjusts importance thresholds
    
    Learning data stored in `.learning_data.json` (privacy-safe, never shared).
    
    ## Memory Integration
    
    Proactive Research connects to your conversation history:
    
    **Example alert:**
    > πŸ”” **Dirac Live Update**
    > 
    > Version 3.8 released with the room correction improvements you asked about last week.
    > 
    > **Context:** You mentioned struggling with bass response in your studio. This update includes new low-frequency optimization.
    > 
    > [Link] | [Full details]
    
    **How it works:**
    1. Reads references/memory_hints.md (create this file)
    2. Scans recent conversation logs (if available)
    3. Matches findings to past context
    4. Generates personalized summaries
    
    ### memory_hints.md (optional)
    
    Help the AI connect dots:
    
    ```markdown
    # Memory Hints for Proactive Research
    
    ## AI Models
    - Using Claude for coding assistance
    - Interested in reasoning improvements
    - Comparing models for different use cases
    
    ## Security
    - Running production Kubernetes clusters
    - Need to patch critical CVEs quickly
    - Interested in zero-day disclosures
    
    ## Tech News
    - Following startup ecosystem
    - Interested in developer tools space
    - Tracking potential acquisition targets
    ```
    
    ## Alert Channels
    
    ### Telegram
    
    Requires OpenClaw message tool:
    
    ```json
    {
      "channels": ["telegram"],
      "telegram_config": {
        "chat_id": "@your_username",
        "silent": false,
        "effects": {
          "high_importance": "πŸ”₯",
          "medium_importance": "πŸ“Œ"
        }
      }
    }
    ```
    
    ### Discord
    
    Webhook-based:
    
    ```json
    {
      "channels": ["discord"],
      "discord_config": {
        "webhook_url": "https://discord.com/api/webhooks/...",
        "username": "Research Bot",
        "avatar_url": "https://..."
      }
    }
    ```
    
    ### Email
    
    SMTP or API:
    
    ```json
    {
      "channels": ["email"],
      "email_config": {
        "to": "you@example.com",
        "from": "research@yourdomain.com",
        "smtp_server": "smtp.gmail.com",
        "smtp_port": 587
      }
    }
    ```
    
    ## Advanced Features
    
    ### Alert Conditions
    
    Fine-tune when to alert:
    
    ```json
    {
      "alert_on": [
        "price_change_10pct",
        "keyword_exact_match",
        "source_tier_1",
        "high_engagement"
      ],
      "ignore_sources": [
        "spam-site.com",
        "clickbait-news.io"
      ],
      "boost_sources": [
        "github.com",
        "arxiv.org",
        "official-site.com"
      ]
    }
    ```
    
    ### Regex Patterns
    
    Match specific patterns:
    
    ```json
    {
      "patterns": [
        "version \\d+\\.\\d+\\.\\d+",
        "\\$\\d{1,3}(,\\d{3})*",
        "CVE-\\d{4}-\\d+"
      ]
    }
    ```
    
    ### Rate Limiting
    
    Prevent alert fatigue:
    
    ```json
    {
      "settings": {
        "max_alerts_per_day": 5,
        "max_alerts_per_topic_per_day": 2,
        "quiet_hours": {
          "start": "22:00",
          "end": "08:00"
        }
      }
    }
    ```
    
    ## State Management
    
    ### .research_state.json
    
    Tracks:
    - Last check time per topic
    - Alerted URLs (deduplication)
    - Importance scores history
    - Learning data (if enabled)
    
    Example:
    ```json
    {
      "topics": {
        "eth-price": {
          "last_check": "2026-01-28T22:00:00Z",
     
    
    ... (truncated)