This converts X posts and articles to markdown files with YAML front matter, saving them locally with a clean file structure organized by username and tweet ID. It uses a reverse-engineered API, so there's a consent flow before first use that warns about potential breakage and account risks. The interesting part is the media handling: you can configure it to always download images and videos locally, never download them, or ask each time. Authentication pulls from environment variables or falls back to opening Chrome to grab cookies. It includes a first-time setup that asks where you want to save preferences and how to handle media by default. Useful when you want to archive threads or articles from X without dealing with the official API.
npx skills add https://github.com/freestylefly/canghe-skills --skill canghe-danger-x-to-markdown