canghe-post-to-x

Post text, images, and videos to X via CDP-controlled Chrome.

429|102|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/freestylefly/canghe-skills --skill canghe-post-to-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canghe-post-to-x
Source: https://github.com/freestylefly/canghe-skills/tree/main/skills/canghe-post-to-x
Command: npx skills add https://github.com/freestylefly/canghe-skills --skill canghe-post-to-x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires front-matter, highlight.js, marked, remark-cjk-friendly, remark-parse, remark-stringify, unified, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Posts content to X (Twitter) using a real Chrome browser controlled by CDP, enabling reliable posts that bypass common automation blockers and manual retry.

Core Features & Use Cases

  • Post text, images, and videos to X
  • Create and publish X Articles (long-form Markdown)
  • Quote tweets with comments and optional immediate publish
  • Maintains a persistent Chrome profile for login sessions across runs
  • Supports manual review after drafting posts or articles

Quick Start

Post a text update to X with an attached image.

Frequently Asked Questions about canghe-post-to-x

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

FAQPage Schema
How do I automate posting to X using a real Chrome browser?

Automating posts to X with a real Chrome browser involves controlling the browser via CDP to bypass automation detection. This approach orchestrates scripts to handle text, media uploads, and article publishing reliably within X's editor.

Can I publish long-form Markdown articles to X without manual copy-pasting?

Publishing long-form Markdown articles to X can be done directly by orchestrating editor scripts. The skill converts Markdown content and publishes it as an X Article, bypassing the need to manually paste content into the platform.

Do I need a specific runtime environment to automate X posts via CDP?

Automating X posts via CDP requires a Chrome-capable environment and the Bun runtime. The skill maintains a persistent Chrome profile to keep login sessions active across multiple automated runs.

How do I automate quote tweets with comments and immediate publishing?

Automating quote tweets with comments involves using orchestrated scripts to draft the post and attach the target tweet. The workflow supports immediate publishing or manual review after drafting the quote tweet.

Why does my automated Twitter posting get blocked by automation detection?

Automated Twitter posting gets blocked when standard APIs or headless browsers trigger detection. Using a real Chrome browser controlled by CDP bypasses these common automation blockers, ensuring reliable text and media posting.

What is the best way to maintain login sessions when automating social media posts to X?

Maintaining login sessions for automated X posts requires a persistent Chrome profile. The skill manages this profile locally, ensuring that your authenticated state persists across different posting and media upload runs.