article-sweeperlisted
Install: claude install-skill sebin-gg/article-sweeper
# Article Sweeper
When invoked:
1. Resolve execution mode (scripts default; Browser/Computer Use only on
explicit request — see §0.5).
2. Scope browsers: if the user names browsers ("only chrome and
firefox", "just thorium"), sweep those only. Otherwise sweep every
detected browser. Match names case-insensitively
(`chrome` = Chrome, `edge` = Edge, etc.).
3. Detect browsers, pick Chromium or Firefox reference.
4. Enumerate live tabs. Prefer CDP to session files.
5. Classify each tab: article or leave-open. Dedupe tracking wrappers.
6. Summarize each unique article. Fixed entry format.
7. Append entries to today's file. Modify no other files.
8. Close only summarized tabs. Verify rest stayed open.
## 0. Requirements and portability
Requires: Chromium-family browser and/or Firefox, `curl`, `python3`.
Required python package for Firefox decode: `lz4` (`pip install lz4` —
the old `tail`/`lz4cat` fallback was removed as known-unreliable).
Optional: WebFetch/WebSearch tools.
Deterministic core: `scripts/sweep_lib.py` (URL normalize/dedupe,
classifier baseline, CDP validation, close revalidation, endpoint
identity check, atomic append, redaction). Use it — do not reimplement
its rules in prose.
Scratch dir: `/tmp/opencode` Linux/macOS. Windows: `%TEMP%\opencode`
(Git Bash: `/tmp/opencode` also works). Set `ARTICLE_SWEEPER_SCRATCH` to
override it. Read every `/tmp/opencode` path below as `$SCRATCH` on Windows.
Desktop file: `~/Desktop/` Linux/macOS. Windows: `$USERP