twitter

Read and post tweets, timelines, and search results from the CLI.

5|Updated May 2, 2026
One-click install
npx skills add https://github.com/vanducng/skills --skill twitter-vanducng
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: twitter
Source: https://github.com/vanducng/skills/tree/main/skills/twitter
Command: npx skills add https://github.com/vanducng/skills --skill twitter-vanducng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires twikit, cryptography, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Read and post on X/Twitter from the CLI — fetch tweets, timelines, and search; post tweets, replies, threads, and media. Cookie-based auth via twikit, bootstrapped from the local Dia browser session, secrets stored in gopass. Auto-falls back to agent-browser when twikit hits internal-API drift or X's "looks automated" Error 226. Use whenever the user asks to read a tweet/profile/search, post/reply/thread, delete a tweet, or run twitter doctor / import-from-dia / login to manage credentials.

Core Features & Use Cases

  • Read tweets, timelines, user feeds, and perform searches from the command line.
  • Post tweets, replies, threads, and media with optional community and visibility controls.
  • Manage credentials with Dia cookies and gopass, and recover with a browser fallback when anti-bot checks are triggered.

Quick Start

Read a tweet or post a tweet from the CLI using the twitter skill.

Frequently Asked Questions about twitter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I post tweets and threads from the command line?▼

Post tweets, replies, threads, and media from the command line using a patched twikit client. This Skill authenticates via Dia cookies and gopass to publish content directly without needing the X web interface.

Can I read X timelines and search results without using a browser?▼

Yes, fetch tweets, user timelines, and search results directly from the CLI. It uses cookie-based authentication via twikit to retrieve timeline data and search results without opening a browser.

Does this CLI tool require gopass and Dia cookies to work?▼

Yes, credential management relies on Dia cookies to bootstrap the browser session and gopass to store secrets. You run companion scripts like import-from-dia and login to manage these credentials.

What happens when Twitter's API drift breaks twikit or triggers Error 226?▼

When twikit hits internal-API drift or X's anti-bot Error 226, the system auto-falls back to an agent-browser. This browser fallback ensures reliability for reading and posting when automated requests are blocked.

How do I manage credentials and fix authentication issues for Twitter CLI access?▼

Manage credentials and fix issues using companion scripts under scripts/ for login, import-from-dia, and safety checks. Run the twitter doctor command to diagnose and recover authentication state.