← 返回
数据分析 中文

X Timeline Digest

Build a deduplicated digest from X (Twitter) For You and Following timelines using bird. Outputs a payload for upstream delivery.
使用bird构建X (Twitter)‘为你推荐’和‘关注’时间线的去重摘要,并输出用于上游投递的载荷。
seandong
数据分析 clawhub v1.0.2 1 版本 99833.6 Key: 无需
★ 9
Stars
📥 2,820
下载
💾 157
安装
1
版本
#latest

概述

x-timeline-digest

Overview

This skill uses bird to read X/Twitter timelines and build a high-signal digest.

Sources:

  • For You timeline
  • Following timeline

What it does:

  1. Fetch recent tweets
  2. Filter incrementally (avoid reprocessing)
  3. Deduplicate (ID + near-duplicate text)
  4. Rank and trim
  5. Generate a Chinese digest
  6. Output a structured payload

> Delivery (Telegram, email, etc.) is NOT handled here.

> Upstream OpenClaw workflows decide how to notify users.


Configuration

All config is read from: skills.entries["x-timeline-digest"].config

Config fields


Dependencies

NameTypeDefaultDescription
----------------
intervalHoursnumber6Interval window in hours
fetchLimitForYounumber100Tweets fetched from For You
fetchLimitFollowingnumber60Tweets fetched from Following
maxItemsPerDigestnumber25Max tweets in one digest
similarityThresholdnumber0.9Near-duplicate similarity threshold
statePathstring~/.openclaw/state/x-timeline-digest.jsonState file path
  • bird must be installed and available in PATH
  • bird must already be authenticated (cookie login)
  • Read-only usage

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 -n --json

Following timeline:

bird home --following -n --json


State 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

  • Tweets already in sentTweetIds must not be included again
  • After a successful run:
  • Update lastRunAt
  • Add pushed tweet IDs to sentTweetIds
  • Keep IDs for at least 30 days

  • 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 content

    • Output

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"]

}

]

}

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-28 12:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,463
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,120
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,016