跳到正文
Skillpedia
分析与电子表格31k · #9275

data-research

它能做什么

这项技能从邮件或网络来源中收集特定信息,并汇总到一个跟踪页面中。它可以跟踪投资人更新、开支、公司指标或你定义的其他项目。

适用场景

  • ✓当你想从邮件中跟踪投资人更新、开支或公司指标的时候。
  • ✓当你想把分散在邮件或网页中的数据整理成一个跟踪页面时。
  • ✓当你想设置定期的数据收集任务,例如定期检查时。

技能链接

https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-daily/skills/data-research/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-daily/skills/data-research/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请从我的邮件中查找上一季度的投资人更新,并把关键数字添加到我的跟踪表中。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会在来源中搜索匹配的邮件,提取你选定的字段,并保存原始来源以供参考。它会去除重复内容,并用链接更新跟踪页面,链接指向相关的人员和公司。

技术内容(原始 SKILL.md)

作者在 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:

  1. Save raw source immediately (before any extraction)
  2. Extract fields using deterministic regex first, LLM fallback
  3. When summarizing batch results: re-read from saved files
  4. 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_data for email bodies, API responses
  • file_upload for PDF attachments, documents
  • Create .redirect.yaml pointers 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/):

  1. investor-updates — extract MRR, ARR, growth, burn, runway, headcount from investor update emails
  2. expense-tracker — extract amounts, recipients, platforms from receipt emails (subscriptions, services, recurring charges)
  3. 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_upload is 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_entry returns revision_conflict or write_pending: re-read and merge for the first; poll gbrain 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
常见问题

我可以使用自己的跟踪格式吗?

可以。你可以用自己的搜索查询、字段和页面布局来定义自定义配方。

它会保留原始邮件吗?

会。原始来源会被归档,使每条跟踪记录都能追溯到出处。

它能定期运行吗?

能。可以用 cron 配方设置定期收集。

详情

作者的原始描述

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

热度

GitHub 星标
31k
排名
#9275
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能