timeline-viewing

timeline-viewing is a skill for Claude Code, Codex from nirholas/XActions. It costs 44 tokens per session (643 once invoked), scanned A, original, Apache-2.0.

A set of browser scripts for switching between X's For You and Following timelines, scrolling through posts, collecting them, and exporting the results as JSON files. X is the social network formerly known as Twitter.

In plain words
What is it for?
Use it to collect posts from either timeline, automatically scroll through the feed, limit the number of posts, and export the collected timeline data for later analysis.
Why use it?
It avoids manually switching timelines, scrolling, copying posts, and saving the collected information. Settings control which timeline is viewed, how many posts are collected, and when scrolling stops.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to collect posts from either timeline, automatically scroll through the feed, limit the number of posts, and export the collected timeline data for later analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/xactions/timeline-viewing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nirholas/XActions --skill timeline-viewing
Clone the repo
git clone --depth 1 https://github.com/nirholas/XActions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for timeline-viewing

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/xactions/timeline-viewing/github.svg)](https://agentmods.dev/skills/nirholas/xactions/timeline-viewing)
Your own site
<a href="https://agentmods.dev/skills/nirholas/xactions/timeline-viewing"><img src="https://agentmods.dev/badge/skills/nirholas/xactions/timeline-viewing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for timeline-viewing

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/xactions/timeline-viewing"><img src="https://agentmods.dev/badge/skills/nirholas/xactions/timeline-viewing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00643
Opus 5.5 $0.00018 $0.00257
Sonnet 5.5 $0.00009 $0.00129
Haiku 4.5 $0.00004 $0.00064

Measured 10d ago against content hash 8e8e1702d87e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

timeline-viewing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/timeline-viewing/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Timeline Viewing & Scraping

Browser console scripts for viewing, switching, and collecting posts from your X timeline.

Script Selection

Goal File Navigate to
Switch timeline, auto-scroll, export posts browser/timelineViewer.js x.com/home
Scrape timeline posts into structured data browser/timelineScraper.js x.com/home

Quick Start

  1. Go to x.com/home
  2. Open DevTools (F12) → Console
  3. Paste browser/timelineViewer.js → Enter
  4. JSON file auto-downloads when complete

Configuration (timelineViewer.js)

const CONFIG = {
  timeline: 'for-you',       // 'for-you' or 'following'
  autoSwitch: true,           // Automatically switch to selected timeline
  collectPosts: true,         // Scroll and collect posts
  maxPosts: 100,              // Max posts to collect
  exportData: true,           // Auto-download JSON when done
  scrollDelay: 2000,          // ms between scroll actions
  delayBetweenActions: 1500, // ms between UI actions
  maxScrollRetries: 8,        // Empty scrolls before stopping
};

Available Functions

// timelineViewer.js
XActions.switchTo('for-you')     // Switch to For You timeline
XActions.switchTo('following')   // Switch to Following timeline
XActions.collect()               // Start collecting posts
XActions.export()                // Export collected posts as JSON
XActions.abort()                 // Stop collection

// timelineScraper.js
XActions.scrape({ maxPosts: 200 }) // Scrape with custom limit
XActions.results()                  // Get collected results
XActions.download()                 // Download as JSON

Output Data Structure

Each collected post includes:

  • Tweet ID, author, handle, avatar
  • Tweet text, timestamp
  • Likes, retweets, replies, views counts
  • Media URLs (if any)
  • Is retweet / is quote tweet

Notes

  • Timeline data is only what's visible/scrolled in your browser session
  • for-you content is personalized; following shows only accounts you follow
  • Increase maxPosts for deeper scrapes (slower, more scroll rounds)
  • Different from twitter-scraping which targets specific profiles, not your feed

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed 8e8e1702d87e
  2. 3mo ago First seen · 80 lines · 44 tokens per session scan A 8f397b9e8e79

Subscribe to this mod's changes

timeline-viewing is a skill published in the GitHub repository nirholas/XActions (671 stars, last pushed 3d ago), licensed Apache-2.0. It adds 44 tokens to every session and 643 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

timeline-viewing compared with skills from other repositories

timeline-viewing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
timeline-viewingnirholas/XActionsSkill6713d agoApache-2.0A44Claude Code, Codex
Xnotforyou23/home23Skill115d agoMITA33Claude Code, Codex
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60ktodayApache-2.0A31Claude Code
social-x-post-cardnexu-io/open-designSkill110ktodayApache-2.0A31Claude Code, Codex
card-twitternexu-io/open-designSkill110ktodayApache-2.0A15Claude Code, Codex
social-x-post-cardnexu-io/html-anythingSkill17kyesterdayApache-2.0A33Claude Code, Codex
twitter-clipublic-clis/twitter-cliSkill3.0k2d agoApache-2.0A43Claude Code, Codex