data-research
What it does
This skill collects specific information from emails or web sources into one tracker page. It can track investor updates, expenses, company metrics, or other items you define.
When to use it
- βWhen you want to track investor updates, expenses, or company metrics from your email.
- βWhen you want to build a tracker page from data scattered across emails or web pages.
- βWhen you want a regular data collection set up, such as a recurring check.
Skill link
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-daily/skills/data-research/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βGo through my email for investor updates from the last quarter and add the key numbers to my tracker.β
5 new skills a week. 1 minute to read.
How it works
The agent searches your sources for matching messages, extracts the fields you chose, and saves the raw source for reference. It removes duplicates and updates the tracker page with links to the people and companies involved.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Data Research
Structured research pipeline: search sources, extract structured data, archive raw, deduplicate, update canonical trackers, backlink entities.
Contract
One skill for any email-to-structured-data pipeline. The only differences between tracking investor updates, expenses, and company metrics are the search queries, extraction schemas, and tracker page format. All three use the same 7-phase pipeline with parameterized recipes.
When to Use
- User wants to track structured data from email, web, or API sources
- User says "research", "track", "extract from email", "build a tracker"
- User mentions investor updates, donations, company metrics, filings
- User wants to set up recurring data collection (with cron recipe)
Phases
Phase 1: Define Research Recipe
Infer the research target from conversation context, recent brain activity, active
tasks (ops/tasks.md), and memory files. If the request is ambiguous, present the
most likely interpretation based on what the user has been working on. Only ask for
clarification if context is genuinely insufficient. Options:
- Pick a built-in recipe: investor-updates, expense-tracker, company-updates
- Define a custom recipe with: source queries, classification rules, extraction schema, tracker page path, tracker format
Recipes are YAML files at ~/.gbrain/recipes/{name}.yaml. Scaffold a new one by
copying a built-in recipe file and editing its fields.
Phase 2: Search Sources
Brain first (maybe we already have this data). Then:
- Email via credential gateway: windowed queries (quarterly, monthly if truncated)
- Web via search: public filings, press releases, regulatory data
- APIs: any structured data source the recipe defines
- Attachments: PDF extraction, HTML stripping
Phase 3: Classify
Deterministic first (regex patterns from recipe), LLM fallback. Log every LLM fallback for future regex improvement (fail-improve loop). Skip marketing, newsletters, noise based on recipe's classification rules.
Phase 4: Extract Structured Data
EXTRACTION INTEGRITY RULE:
- Save raw source immediately (before any extraction)
- Extract fields using deterministic regex first, LLM fallback
- When summarizing batch results: re-read from saved files
- Never trust LLM working memory after batch processing
This prevents a known hallucination bug where batch-processed amounts were 13/13 wrong from LLM working memory while saved files were correct.
Phase 5: Archive Raw Sources
put_raw_datafor email bodies, API responsesfile_uploadfor PDF attachments, documents- Create
.redirect.yamlpointers for large files in storage - Every tracker entry must link back to its raw source
Phase 6: Deduplicate
Before adding to tracker:
- Exact match (same key fields) β skip
- Fuzzy match (same entity + date + similar amount within tolerance) β flag for review
- Different amount for same entity+date β add with note (could be correction)
Phase 7: Update Canonical Tracker + Backlink
- Parse existing tracker page (markdown table)
- Append new entries in correct section (grouped by year/quarter/entity)
- Compute running totals
- Backlink every mentioned entity (person β people/ page, company β companies/ page)
- Uses enrichment service for entity pages
Built-In Recipes
Three example recipes ship with GBrain (see ~/.gbrain/recipes/):
- investor-updates β extract MRR, ARR, growth, burn, runway, headcount from investor update emails
- expense-tracker β extract amounts, recipients, platforms from receipt emails (subscriptions, services, recurring charges)
- company-updates β extract revenue, users, key metrics from portfolio company update emails
When it fails
Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
file_uploadis refused for a path outside the allowed root (remote callers are confined): ask the user to upload from the brain host or pass the content inline.put_page/add_timeline_entryreturnsrevision_conflictorwrite_pending: re-read and merge for the first; pollgbrain write-request <request_id>for the second.- An extraction source rate-limits (
rate_limited): back off for the stated delay and keep the cursor; log the gap instead of guessing the missing rows.
Anti-Patterns
- Trusting LLM working memory for amounts aft
FAQ
Can I use my own tracker format?
Yes. You can define a custom recipe with your own search queries, fields, and page layout.
Does it keep the original emails?
Yes. Raw sources are archived so each tracker entry can be traced back.
Can it run on a schedule?
Yes. A recurring collection can be set up with a cron recipe.
Details
Original description by the author
Structured data research: search sources, extract structured data, archive raw sources, maintain canonical tracker pages, deduplicate. Parameterized via YAML recipes for investor updates, donations, company updates, or any email-to-structured-data pipeline.
repo: garrytan/gbrain
Popularity
- GitHub stars
- 31k
- Ranking position
- #9275
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
gbrain
31kLets your agent search a shared company knowledge brain for facts about people, projects and decisions, and save durable notes to it.
brain-ingest-gate
31kChecks new content against an existing knowledge brain before it is added, to avoid duplicates and resolve named entities first.
brain-link-discipline
31kMakes sure your agent includes a working link to each brain page it reports, in the same message, so you can open it right away.
brain-ops
31kGives your agent the core routine for a knowledge brain: check existing context first, save explicit notes with their source, and link related pages.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.