Browsing History banner
glebis glebis

Browsing History

Data community Intermediate

Description

Query browsing history from **all synced Chrome devices** (iPhone, iPad, Mac, desktop) with natural language.

Installation

Installs to ~/.claude/skills/browsing-history/

Terminal
git clone --depth 1 https://github.com/glebis/claude-skills /tmp/claude-skills \ && mkdir -p ~/.claude/skills \ && cp -r /tmp/claude-skills/browsing-history ~/.claude/skills/browsing-history

Clones the whole repository, because a skill folder can carry scripts and resources beside its SKILL.md.

Repository README

This is the README for glebis/claude-skills, shared by 3 entries in this directory. It describes the repository, not this entry specifically.

Browsing History Skill

Query browsing history from **all synced Chrome devices** (iPhone, iPad, Mac, desktop) with natural language.

How It Differs from chrome-history

Feature chrome-history browsing-history
Data source Local Chrome SQLite Synced database (~/data/browsing.db)
Devices Desktop only All synced devices (iPhone, iPad, Mac, etc.)
Timestamps Chrome visit time Actual visit time with fallback
Categorization Domain-based clusters LLM-powered classification
Output formats Markdown only Markdown + JSON
Save to file No Yes

Prerequisites

1. Initialize Database

python3 ~/.claude/skills/browsing-history/scripts/init_db.py

2. Sync Chrome History

For local desktop history:

python3 ~/.claude/skills/browsing-history/scripts/sync_chrome_history.py

For synced devices (iPhone, iPad, etc.), you need a separate sync process that:

  1. Parses Chrome Sync LevelDB data
  2. Extracts URLs with device info and timestamps
  3. Inserts into ~/data/browsing.db

See [AnyBrowserHistory](https://github.com/nickolay/nickolay.github.io/tree/master/AnyBrowserHistory) for Chrome Sync parsing reference.

3. (Optional) LLM Categorization

Install llm CLI for smart categorization:

pip install llm llm-anthropic
llm keys set anthropic  # Enter your API key

Usage

Basic Queries

# Yesterday's history
python3 ~/.claude/skills/browsing-history/browsing_query.py "yesterday"

# Last week from iPhone
python3 ~/.claude/skills/browsing-history/browsing_query.py "last week" --device iPhone

# Search for AI articles
python3 ~/.claude/skills/browsing-history/browsing_query.py "AI" --days 7

Grouping

# Group by domain
python3 ~/.claude/skills/browsing-history/browsing_query.py "today" --group-by domain

# Group by LLM-classified category

...