🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

browser-session-archive

by @guobaba1

Extracts and archives chatgpt.com and claude.ai share links to Markdown using Chrome CDP (e.g., ChatGPT or Claude conversations).

Versionv1.0.1
πŸ’‘ Examples

Quick Start

# Copy script to PATH
cp {baseDir}/scripts/extract.sh /usr/local/bin/
chmod +x /usr/local/bin/extract.sh

Run

extract.sh "https://chatgpt.com/share/xxx" extract.sh "https://claude.ai/share/xxx"

Step by Step

# 1. Capture HTML
cd {baseDir}/scripts
CHROME_DEBUG_PORT=9222 TARGET_URL="https://chatgpt.com/share/xxx" \
  node capture-cdp.js

2. Convert to Markdown (use output path from step 1)

node convert-markdown.js --metadata "~/LookBack/$(date +%Y-%m-%d)/ChatGPT/.metadata.json"

βš™οΈ Configuration

1. Chrome Debug Mode: Start Chrome with --remote-debugging-port=9222

   # macOS
   open -a "Google Chrome" --args --remote-debugging-port=9222
   
   # Linux
   google-chrome --remote-debugging-port=9222
   

2. Install Dependencies:

   npm install -g ws
   

View on ClawHub
TERMINAL
clawhub install browser-session-archive

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’