Skill: jack4world/x-recap (version 2026.2.25)

--- name: x-recap description: Monitor and recap official X (Twitter) updates using actionbook-rs screenshots. Use when the user asks to track/recap X posts (especially official accounts like @AnthropicAI/@claudeai), set up or fix cron-based X monitoring, troubleshoot X login/spinner blank timelines, or standardize the “fetch → screenshot → recap” workflow. --- # X Recap (actionbook-rs) Use **actionbook-rs** (`/Users/daboluo/.openclaw/workspace/bin/actionbook`) with `--profile x` to open X pages and save screenshots, then read screenshots to produce a recap. ## Canonical workflow (keep cron + scripts consistent) ### 0) Ensure X login (profile=x) If timeline screenshots are blank/spinner-only, re-login: ```bash cd /Users/daboluo/.openclaw/workspace ./bin/actionbook --profile x browser open https://x.com/home ``` ### 1) Fetch (single source of truth) - **Breaking (full-page)**: run `skills/x-recap/scripts/fetch_official_breaking.sh` - **Daily (lightweight)**: run `skills/x-recap/scripts/fetch_official_daily.sh` Do not re-implement fetch logic inside cron payloads; cron should only call these scripts. ### 2) Recap from screenshots Output rules (suggested): - If “major update”: emit 【快报】 + <=5 bullets + impacted **software stock categories** (no tickers) + 1–2 trading-framework ideas. - If not major: either one-liner “无重大官方更新” or stay silent (depending on user preference). ## Resources - Runbook (login + common failure modes): `references/runbook.md`

path: references/runbook.md
content: # X Recap runbook (actionbook-rs + profile=x)

## One-time / whenever X breaks: login

```bash
cd /Users/daboluo/.openclaw/workspace
./bin/actionbook --profile x browser open https://x.com/home
```

If screenshots are blank / spinner-only / no timeline:
- assume login expired → re-run login above.

## Fetch scripts (single source of truth)

- Breaking (full-page): `skills/x-recap/scripts/fetch_official_breaking.sh`
  - Output: `output/x-claude-breaking/`
- Daily (viewport): `skills/x-recap/scripts/fetch_official_daily.sh`
  - Output: `output/x-claude/`

## Common failure / easy-to-forget pain points

### 1) Blank / spinner-only timeline screenshots
Symptoms:
- Screenshot is empty, only a loading spinner, or no timeline content.

Cause:
- X login/session expired for actionbook `--profile x`.

Fix:
```bash
cd /Users/daboluo/.openclaw/workspace
./bin/actionbook --profile x browser open https://x.com/home
```

### 2) Gateway timeout when triggering cron runs
Symptoms:
- cron run errors like: gateway timeout / ws://127.0.0.1:18789 not responding.

Fix:
```bash
openclaw gateway restart
```

### 3) Rate limits / bot detection / consent walls (intermittent)
Symptoms:
- Timeline loads partially, then stops; or content differs run-to-run.

Mitigation:
- Prefer official profile pages (no search).
- Reduce fetch frequency if it becomes flaky.
- Re-login (often clears the state).

### 4) Consistency drift (scripts vs cron text)
Rule:
- Fetch logic MUST live in `skills/x-recap/scripts/*.sh` only.
- Cron payloads should only call those scripts + recap from screenshots.


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)