Skill 技能

Web Monitor

Web Monitor 是一套面向一人公司的通用 playbook,帮助你用更少的人力完成更稳的增长、交付与决策。

更新于 2026年4月1日 One Person Company 编辑团队 Skill 执行系统

中文导读

Web Monitor 是一套面向一人公司的通用 playbook,帮助你用更少的人力完成更稳的增长、交付与决策。

说明: 原始步骤、命令与 API 名称保留英文,以避免参数和接口名称失真。

概览

Track web pages for changes. Stores snapshots, computes diffs, supports CSS selectors.

Add a URL to watch

uv run --with beautifulsoup4 python scripts/monitor.py add "https://example.com" --name "Example"

Add with CSS selector (monitor specific section)

uv run --with beautifulsoup4 python scripts/monitor.py add "https://example.com/pricing" -n "Pricing" -s ".pricing-table"

Check all watched URLs for changes

uv run --with beautifulsoup4 python scripts/monitor.py check

Check one specific URL

uv run --with beautifulsoup4 python scripts/monitor.py check "Example"

List watched URLs

uv run --with beautifulsoup4 python scripts/monitor.py list

View last diff

uv run --with beautifulsoup4 python scripts/monitor.py diff "Example"

View current snapshot

uv run --with beautifulsoup4 python scripts/monitor.py snapshot "Example" --lines 50

Remove

uv run --with beautifulsoup4 python scripts/monitor.py remove "Example" Commands CommandArgsDescriptionadd<url> [-n name] [-s selector]Add URL to watch, take initial snapshotremove<url-or-name>Stop watching a URLlist[-f json]List all watched URLs with statscheck[url-or-name] [-f json]Check for changes (all or one)diff<url-or-name>Show last recorded diffsnapshot<url-or-name> [-l lines]Show current snapshot Output Symbols 🔔 CHANGED — page content changed (shows diff preview) ✅ No changes 📸 Initial snapshot taken ❌ Error fetching Data

Stored in ~/.web-monitor/ (override with WEB_MONITOR_DIR env var):

  • watches.json — watch list config
  • snapshots/ — stored page content + diffs
  • Tips
  • Use --selector to monitor specific elements (prices, article lists, etc.)
  • Use --format json for programmatic checking (heartbeat integration)
  • CSS selectors require beautifulsoup4 (included via --with flag)
  • Text is normalized to reduce noise from timestamps, whitespace, ads

SKILL.md 原文件

内嵌文档查看器 SKILL.md
Markdown 源文件

预览原始 SKILL.md. 下面可以直接查看完整原文。可滚动阅读、检查结构,再下载精确的 SKILL.md 原文件。

# web-monitor

Web Monitor
Track web pages for changes. Stores snapshots, computes diffs, supports CSS selectors.
Quick Start
# Add a URL to watch
uv run --with beautifulsoup4 python scripts/monitor.py add "https://example.com" --name "Example"
# Add with CSS selector (monitor specific section)
uv run --with beautifulsoup4 python scripts/monitor.py add "https://example.com/pricing" -n "Pricing" -s ".pricing-table"
# Check all watched URLs for changes
uv run --with beautifulsoup4 python scripts/monitor.py check
# Check one specific URL
uv run --with beautifulsoup4 python scripts/monitor.py check "Example"
# List watched URLs
uv run --with beautifulsoup4 python scripts/monitor.py list
# View last diff
uv run --with beautifulsoup4 python scripts/monitor.py diff "Example"
# View current snapshot
uv run --with beautifulsoup4 python scripts/monitor.py snapshot "Example" --lines 50
# Remove
uv run --with beautifulsoup4 python scripts/monitor.py remove "Example"
Commands
CommandArgsDescriptionadd<url> [-n name] [-s selector]Add URL to watch, take initial snapshotremove<url-or-name>Stop watching a URLlist[-f json]List all watched URLs with statscheck[url-or-name] [-f json]Check for changes (all or one)diff<url-or-name>Show last recorded diffsnapshot<url-or-name> [-l lines]Show current snapshot
Output Symbols
🔔 CHANGED — page content changed (shows diff preview)
✅ No changes
📸 Initial snapshot taken
❌ Error fetching
Data
Stored in ~/.web-monitor/ (override with WEB_MONITOR_DIR env var):
watches.json — watch list config
snapshots/ — stored page content + diffs
Tips
Use --selector to monitor specific elements (prices, article lists, etc.)
Use --format json for programmatic checking (heartbeat integration)
CSS selectors require beautifulsoup4 (included via --with flag)
Text is normalized to reduce noise from timestamps, whitespace, ads

评论与讨论

添加评论