đŚ ClawHub
X Timeline Digest
by @seandong
Build a deduplicated digest from X (Twitter) For You and Following timelines using bird. Outputs a payload for upstream delivery.
TERMINAL
clawhub install x-timeline-digestđ About This Skill
name: x-timeline-digest version: 1.0.2 description: Build a deduplicated digest from X (Twitter) For You and Following timelines using bird. Outputs a payload for upstream delivery. homepage: https://github.com/seandong metadata: {"openclaw":{"emoji":"đŚ","requires":{"bins":["bird"]}}}
x-timeline-digest
Overview
This skill uses bird to read X/Twitter timelines and build a high-signal digest. Sources:Configuration
All config is read from: skills.entries["x-timeline-digest"].configConfig fields
| Name | Type | Default | Description | |----|----|----|----| | intervalHours | number | 6 | Interval window in hours | | fetchLimitForYou | number | 100 | Tweets fetched from For You | | fetchLimitFollowing | number | 60 | Tweets fetched from Following | | maxItemsPerDigest | number | 25 | Max tweets in one digest | | similarityThreshold | number | 0.9 | Near-duplicate similarity threshold | | statePath | string | ~/.openclaw/state/x-timeline-digest.json | State file path |Dependencies
Usage
1. Basic (Raw JSON)
Run the digest generator to get a clean, deduplicated JSON payload:node skills/x-timeline-digest/digest.js
2. Intelligent Digest (Recommended)
To generate the "Smart Brief" (Categorized, Summarized, Denoised): 1. Run the script:node skills/x-timeline-digest/digest.js > digest.json
2. Read the prompt template: read skills/x-timeline-digest/PROMPT.md
3. Send the prompt to your LLM, injecting the content of digest.json where {{JSON_DATA}} is.*Note: The script automatically applies heuristic filtering (removes "gm", ads, short spam) before outputting JSON.*
Bird Commands Used
For You timeline: bird home -nState Management
State is persisted to statePath.State structure
{ "lastRunAt": "2026-02-01T00:00:00+08:00", "sentTweetIds": { "123456789": "2026-02-01T00:00:00+08:00" } }Rules
Processing Pipeline
1. Fetch from For You and Following 2. Incremental filter using lastRunAt 3. Hard deduplication by tweet id 4. Near-duplicate merge using text similarity 5. Rank and trim to maxItemsPerDigest 6. Generate a Categorized Chinese Digest (via PROMPT.md + LLM) - Categories: đ¤ AI & Tech, đ° Crypto & Markets, đĄ Insights, đď¸ Other - Language: Simplified Chinese - Format: Author: Summary - Denoising: Remove ads and low-value contentOutput
The skill returns one JSON object: { "window": { "start": "2026-02-01T00:00:00+08:00", "end": "2026-02-01T06:00:00+08:00", "intervalHours": 6 }, "counts": { "forYouFetched": 100, "followingFetched": 60, "afterIncremental": 34, "afterDedup": 26, "final": 20 }, "digestText": "ä¸ććčŚĺ 厚", "items": [ { "id": "123456", "author": "@handle", "createdAt": "2026-02-01T02:15:00+08:00", "text": "tweet text", "url": "https://x.com/handle/status/123456", "sources": ["following"] } ] }đĄ Examples
1. Basic (Raw JSON)
Run the digest generator to get a clean, deduplicated JSON payload:node skills/x-timeline-digest/digest.js
2. Intelligent Digest (Recommended)
To generate the "Smart Brief" (Categorized, Summarized, Denoised): 1. Run the script:node skills/x-timeline-digest/digest.js > digest.json
2. Read the prompt template: read skills/x-timeline-digest/PROMPT.md
3. Send the prompt to your LLM, injecting the content of digest.json where {{JSON_DATA}} is.*Note: The script automatically applies heuristic filtering (removes "gm", ads, short spam) before outputting JSON.*
âď¸ Configuration
All config is read from: skills.entries["x-timeline-digest"].config