Posts text, images, videos, and long-form articles to X using a real Chrome browser with CDP to dodge anti-automation detection. The workflow is semi-automated: scripts fill in your content and open the browser, then you review and hit publish yourself. Includes separate scripts for regular posts, video posts, quote tweets, and X Articles with Markdown support. First run requires manual login, but the session persists. The pre-flight check is thorough about catching Chrome conflicts and clipboard permissions, which matters since paste operations need system accessibility on macOS. Handles up to 4 images per post and converts Markdown to HTML for long-form articles. Works across macOS, Linux, and Windows.

skills.sh installs
488
GitHub stars
474
last updated
Aug 21, 2026

Install

$ npx -y skills add freestylefly/canghe-skills --skill canghe-post-to-x --agent claude-code

Installs into .claude/skills of the current project.

Files

Post to X (Twitter)

Posts text, images, videos, and long-form articles to X via real Chrome browser (bypasses anti-bot detection).

Script Directory

Important: All scripts are located in the scripts/ subdirectory of this skill.

Agent Execution Instructions:

  1. Determine this SKILL.md file's directory path as SKILL_DIR
  2. Script path = ${SKILL_DIR}/scripts/<script-name>.ts
  3. Replace all ${SKILL_DIR} in this document with the actual path

Script Reference:

ScriptPurpose
scripts/x-browser.tsRegular posts (text + images)
scripts/x-video.tsVideo posts (text + video)
scripts/x-quote.tsQuote tweet with comment
scripts/x-article.tsLong-form article publishing (Markdown)
scripts/md-to-html.tsMarkdown → HTML conversion
scripts/copy-to-clipboard.tsCopy content to clipboard
scripts/paste-from-clipboard.tsSend real paste keystroke
scripts/check-paste-permissions.tsVerify environment & permissions

Preferences (EXTEND.md)

Use Bash to check EXTEND.md existence (priority order):

Sponsors

Details

Repository
github.com/freestylefly/canghe-skills
Categories
Release Management, Automation & Workflows
First seen
Jun 3, 2026

More from freestylefly/canghe-skills

All 29
1mims-harvard avatartooluniversemims-harvard/tooluniverseToolUniverse plugin router. STEP 1 BEFORE ANY ANALYSIS: if the data folder contains `*_executed.ipynb`, run `tu run read_executed_notebook '{"data_folder":"<pat485skills.sh installs
2aj-geddes avatardependency-managementaj-geddes/useful-ai-promptsManage project dependencies across languages including npm install, package versioning, dependency conflicts, security scanning, and lock files. Use when dealin481skills.sh installs
3seefreed avataren-to-zh-translatorseefreed/skillsTranslate English text files (.txt, .md) to Chinese for language learning and translation practice. Use when the user asks to translate a text file to Chinese, 479skills.sh installs
4alirezarezvani avatarfeature-flags-architectalirezarezvani/claude-skillsUse when adding, retiring, or auditing feature flags. Triggers on "add a flag", "ship behind a flag", "rollout plan", "kill switch", "stale flags", "flag debt",477skills.sh installs
5dylanfeltus avatarvisual-qadylanfeltus/skillsUse vision models to self-review screenshots against design intent. Catches spacing issues, alignment problems, color inconsistencies, responsive bugs, and acce477skills.sh installs
6aj-geddes avatargcp-cloud-functionsaj-geddes/useful-ai-promptsDeploy serverless functions on Google Cloud Platform with triggers, IAM roles, environment variables, and monitoring. Use for event-driven computing on GCP.475skills.sh installs