chrome-history

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Chrome History Query Skill

Chrome浏览历史查询Skill

Search and filter your Chrome browsing history using natural language queries.
使用自然语言查询和筛选你的Chrome浏览历史。

What It Does

功能介绍

  1. Parses natural language queries to understand date ranges and filters
  2. Queries Chrome's SQLite history database
  3. Filters out noise (social media, email, redirects)
  4. Groups results by type (reading, research, tools, events)
  5. Returns formatted markdown with links
  1. 解析自然语言查询,理解日期范围和筛选条件
  2. 查询Chrome的SQLite历史数据库
  3. 过滤无效内容(社交媒体、邮件、重定向链接)
  4. 按类型分组结果(阅读内容、研究资料、工具网站、活动相关)
  5. 返回带链接的格式化markdown结果

Supported Queries

支持的查询类型

Date Range

日期范围

  • "yesterday" → previous day only
  • "today" → today only
  • "last week" → past 7 days
  • "last month" → past 30 days
  • "last 2 weeks" → past 14 days
  • "yesterday" → 仅查询前一天
  • "today" → 仅查询今天
  • "last week" → 查询过去7天
  • "last month" → 查询过去30天
  • "last 2 weeks" → 查询过去14天

Content Filters

内容筛选

  • "articles I read" → reading cluster (news, blogs, essays)
  • "scientific articles" → research cluster (papers, docs)
  • "code/research" → GitHub, Stack Overflow, docs
  • "articles I read" → 阅读类内容(新闻、博客、随笔)
  • "scientific articles" → 研究类内容(论文、文档)
  • "code/research" → GitHub、Stack Overflow、技术文档

Keyword Filtering

关键词筛选

  • "articles about AI" → finds pages mentioning AI
  • "scientific articles about climate" → finds research pages mentioning climate
  • "articles about AI" → 查找提及AI的页面
  • "scientific articles about climate" → 查找提及气候的研究页面

Site-Specific

特定网站

  • "reddit threads" → reddit.com only
  • "on medium" → medium.com only
  • "twitter posts" → twitter.com only
  • "reddit threads" → 仅查询reddit.com
  • "on medium" → 仅查询medium.com
  • "twitter posts" → 仅查询twitter.com

Example Queries

查询示例

"articles I read yesterday"
"articles about AI I read yesterday"
"scientific articles for the last week"
"research about machine learning this week"
"reddit threads last month"
"code repos I visited yesterday"
"on medium this week"
"articles I read yesterday"
"articles about AI I read yesterday"
"scientific articles for the last week"
"research about machine learning this week"
"reddit threads last month"
"code repos I visited yesterday"
"on medium this week"

Usage

使用方法

Run directly with a query:
bash
python3 ~/.claude/skills/chrome-history/chrome_history_query.py "articles I read yesterday"
Or integrate into Claude Code when user asks:
  • "Show me articles I read yesterday"
  • "What scientific papers did I look at last week?"
  • "Show reddit threads I visited last month"
  • "Articles about AI from yesterday?"
直接运行脚本并传入查询语句:
bash
python3 ~/.claude/skills/chrome-history/chrome_history_query.py "articles I read yesterday"
或集成到Claude Code中,当用户提问时触发:
  • "Show me articles I read yesterday"
  • "What scientific papers did I look at last week?"
  • "Show reddit threads I visited last month"
  • "Articles about AI from yesterday?"

Configuration

配置信息

  • Chrome History:
    ~/Library/Application Support/Google/Chrome/Default/History
  • Vault Location:
    /Users/glebkalinin/Brains/brain
  • Filtered Sites: Social media, email, Google redirect wrappers
  • Clustering: Automatic by domain type (reading, research, tools, events)
  • Chrome历史文件路径:
    ~/Library/Application Support/Google/Chrome/Default/History
  • 存储位置:
    /Users/glebkalinin/Brains/brain
  • 过滤网站: 社交媒体、邮件、Google重定向包装链接
  • 分组规则: 按域名类型自动分组(阅读、研究、工具、活动)

Exclusions

自动排除内容

Automatically filters out:
  • Social media: Facebook, Instagram, Twitter, TikTok, Reddit, LinkedIn
  • Email: Gmail, Outlook
  • Shopping: Amazon, eBay
  • Google redirects: google.com/url wrappers
  • Utility sites: FreeFeed, YouTube
自动过滤以下类型网站:
  • 社交媒体:Facebook、Instagram、Twitter、TikTok、Reddit、LinkedIn
  • 邮件:Gmail、Outlook
  • 购物:Amazon、eBay
  • Google重定向链接:google.com/url包装链接
  • 实用工具类网站:FreeFeed、YouTube

Output Format

输出格式

Results grouped by content type with timestamps:
undefined
结果按内容类型分组并附带时间戳:
undefined

Chrome History: articles about AI yesterday

Chrome History: articles about AI yesterday

Found 5 items
Found 5 items

Reading (3)

Reading (3)

  • 14:22 The more that people use AI...
  • 16:38 AI makes you smarter but...
  • 14:22 The more that people use AI...
  • 16:38 AI makes you smarter but...

Research (2)

Research (2)

  • 11:23 GitHub: AI project
undefined
  • 11:23 GitHub: AI project
undefined