AgentSkillsCN

x-timeline-reporter

分析 X(Twitter)时间线,并将报告保存至 Obsidian 保险库。适用于用户要求查看 X/Twitter 趋势、创建时间线报告,或希望进行社交媒体分析时使用。

SKILL.md
--- frontmatter
name: x-timeline-reporter
description: Analyze X (Twitter) timeline and save reports to Obsidian vault. Use when user asks to check X/Twitter trends, create a timeline report, or wants SNS analysis.

X Timeline Reporter

Collect posts from X (Twitter) timeline, analyze trends, save reports to Obsidian vault, and notify via Slack.

Prerequisites

  • OpenClaw managed browser with X login session
  • Obsidian vault with x-reports folder
  • Slack channel configured in OpenClaw

Workflow

1. Open X Timeline

Use managed browser (no manual Chrome attachment needed):

code
browser action=open profile=openclaw targetUrl="https://x.com/home"

2. Collect Timeline Data

Take snapshot after page loads:

code
browser action=snapshot profile=openclaw targetId=<id>

Extract from the snapshot:

  • Post content (text)
  • Author (@handle, display name)
  • Engagement metrics (likes, reposts, replies, views)
  • Post URLs (from status link)
  • Timestamp

3. Scroll for More Posts

To collect more posts:

code
browser action=act profile=openclaw targetId=<id> request={"kind":"press","key":"End"}

Then snapshot again. Repeat until target post count reached (default: 10-15).

4. Close Browser

Close the tab and stop the browser completely:

code
browser action=close profile=openclaw targetId=<id>
browser action=stop profile=openclaw

This ensures Chrome is fully terminated after the task.

5. Analyze Trends

Analyze collected posts for:

  • Key Topics: Main themes being discussed
  • Tech Trends: Technology-related topics
  • Notable Posts: High-engagement or interesting posts
  • Sentiment: Overall mood
  • Emerging Discussions: New or growing topics

6. Format Report (Markdown for Obsidian)

Structure:

markdown
# X Timeline Report - YYYY-MM-DD HH:MM

**収集時刻**: YYYY-MM-DD HH:MM JST
**投稿数**: N件

---

## 📝 投稿サマリー(全件)

### 1. Author Name (@handle) - 時間
> Post content summary

- 💬 replies | 🔁 reposts | ❤️ likes | 👁️ views
- 🔗 https://x.com/handle/status/id

[Repeat for all posts]

---

## 📈 トレンド分析

### 🔥 主要トピック
- Topic 1: Description
- Topic 2: Description

### 🛠️ 技術トレンド
- Trend 1: Details
- Trend 2: Details

### 📊 エンゲージメント分析
- Top by Views: ...
- Top by Engagement Rate: ...

### 💭 センチメント
- Category 1: Trend
- Category 2: Trend

### 🎯 アクションアイテム
- Suggestion 1
- Suggestion 2

---
*Generated by Molty 🫠*

7. Save to Obsidian Vault

Get the vault path:

code
exec command="obsidian-cli print-default --path-only"

Save the report as a markdown file:

code
write path="<vault-path>/x-reports/YYYY-MM-DD_HHMM.md" content="[formatted report]"

Filename format: YYYY-MM-DD_HHMM.md (e.g., 2026-02-12_1130.md)

8. Notify via Slack

Send a brief notification to Slack (NOT the full report):

code
message action=send channel=slack channelId=<channel_id> message="[notification]"

Notification format:

code
📊 X Timeline Report 完了

**収集時刻**: YYYY-MM-DD HH:MM JST
**投稿数**: N件
**保存先**: x-reports/YYYY-MM-DD_HHMM.md

主要トピック: Topic1、Topic2、Topic3

Keep the notification concise — full details are in the Obsidian note.

Parameters

ParameterDefaultDescription
count10Number of posts to collect (max: 30)
langjaReport language (ja/en)
dry-runfalsePreview without saving/notifying

Example Triggers

  • "Xのタイムラインをチェックしてレポートして"
  • "X Timeline Report を作成して"
  • "Twitterのトレンドを分析して"
  • "Check my X timeline and report"

Notes

  • Managed browser session persists login state
  • No need to keep Chrome open manually
  • Can be scheduled via cron for periodic reports
  • Reports are saved as plain Markdown — searchable in Obsidian
  • Slack notification is just a heads-up; open Obsidian for full analysis