baoyu-post-to-x
하는 일
이 스킬은 일반 게시물, 인용 게시물, 긴 형식의 글을 포함해 X에 콘텐츠를 게시합니다. 크리에이터와 마케터를 위한 스킬입니다.
사용하는 경우
- ✓이미지나 동영상을 넣어 트윗을 올리고 싶을 때.
- ✓마크다운으로 쓴 긴 X 아티클을 게시하고 싶을 때.
- ✓나만의 코멘트를 붙여 인용 게시물을 공유하고 싶을 때.
스킬 링크
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-post-to-x/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 트윗을 제 이미지와 새 기사 링크와 함께 X에 올려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 브라우저 사용 방식을 고르고, 글과 미디어를 준비한 뒤 크롬의 X 화면에 채워 넣습니다. 사용자가 확인하고 게시합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Post to X (Twitter)
Posts text, images, videos, and long-form articles to X via a real Chrome browser.
In Codex, three distinct browser paths — do not conflate them:
- Codex Chrome plugin /
@chrome/ Chrome Extension: the bundledchrome:Chromeskill and its Node REPL browser client. Required whenever the user says "Codex Chrome plugin", "Codex 自带的 Chrome 插件",@chrome, or similar. - Chrome Computer Use:
mcp__computer_use__.*against the visible Google Chrome UI. - CDP script mode: the bundled scripts; fallback only.
Script Directory
{baseDir} = this SKILL.md's directory; scripts are at {baseDir}/scripts/<script-name>.ts. Resolve ${BUN_X}: bun if installed → else npx -y bun → else suggest installing bun.
| Script | Purpose |
|---|---|
scripts/x-browser.ts |
Regular posts (text + images), CDP fallback |
scripts/x-video.ts |
Video posts (text + video), CDP fallback |
scripts/x-quote.ts |
Quote tweet with comment, CDP fallback |
scripts/x-article.ts |
Long-form article publishing (Markdown), CDP fallback |
scripts/md-to-html.ts |
Markdown → HTML conversion |
scripts/copy-to-clipboard.ts |
Copy content to clipboard |
scripts/paste-from-clipboard.ts |
Send real paste keystroke |
scripts/check-paste-permissions.ts |
Verify environment & permissions |
Execution Mode Selection (Required)
Choose exactly one mode before interacting with X:
- User asks for the Codex Chrome plugin,
@chrome, the Chrome extension, or "Codex 自带的 Chrome 插件" → Codex Chrome Plugin Mode. Do not call Computer Use first. - User asks for Chrome Computer Use → Chrome Computer Use Mode. Do not fall back to CDP, Playwright, the in-app Browser, or the Chrome plugin without telling the user and getting approval.
- User asks for CDP/script mode → CDP Script Mode.
- Otherwise prefer Chrome Computer Use Mode (if available). For Markdown X Articles with local content images, use the toolbar image flow (
Insert→Media→Add photos or video) in "X Articles (UI Modes)". Use CDP Script Mode only when the selected browser-control mode is unavailable or the UI upload/selection flow is unreliable.
Never use the in-app Browser for X publishing. Never switch away from an explicitly requested mode without explaining the blocker and getting approval.
Publish gate (all modes): never click Publish, Post, or any externally visible submit action, and never pass --submit, without explicit final confirmation from the user in the current conversation.
In Codex Chrome Plugin Mode and Chrome Computer Use Mode, use the user's existing Chrome session (profile, cookies, X login); do not launch a separate CDP profile.
Preferences (EXTEND.md)
First found wins:
| Priority | Path | Scope |
|---|---|---|
| 1 | .baoyu-skills/baoyu-post-to-x/EXTEND.md |
Project |
| 2 | ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-post-to-x/EXTEND.md |
XDG |
| 3 | $HOME/.baoyu-skills/baoyu-post-to-x/EXTEND.md |
User home |
None found → use defaults. Supported: default Chrome profile.
Prerequisites
Google Chrome or Chromium; bun. First run: user logs in to X manually (session persists). Works on macOS, Linux, Windows.
Pre-flight Check (Optional)
Before first use, suggest (user can skip):
${BUN_X} {baseDir}/scripts/check-paste-permissions.ts
| Check fails | Fix |
|---|---|
| Chrome | Install Chrome or set X_BROWSER_CHROME_PATH env var |
| Profile dir | Shared profile at baoyu-skills/chrome-profile (see CLAUDE.md Chrome Profile section) |
| Bun runtime | brew install oven-sh/bun/bun (macOS) or npm install -g bun |
| Accessibility (macOS) | System Settings → Privacy & Security → Accessibility → enable terminal app |
| Clipboard copy | Ensure Swift/AppKit available (macOS Xcode CLI tools: xcode-select --install) |
| Paste keystroke (macOS) | Same as Accessibility fix above |
| Paste keystroke (Linux) | Install xdotool (X11) or ydotool (Wayland) |
Post Type Selection
Unless the user specifies:
- Plain text within 10,000 characters → Regular Post (Premium: up to 10,000 characters; non-Premium: 280)
- Markdown file (.md) → X Article (requires X Premium)
Codex Chrome Plugin Mode
Uses the user's real Chrome profile and X login through the bundled Chrome plugin — not Computer Use, not CDP.
Setup
- Load the
chrome:Chromeskill before browser work. - Use
tool_searchfor `node_r
자주 묻는 질문
어떤 브라우저 방식을 사용하나요?
Codex 크롬 플러그인, 크롬 컴퓨터 사용 기능, 또는 대체 수단인 크롬 스크립트를 사용할 수 있습니다.
크롬이 필요한가요?
네. 실제 크롬 브라우저를 통해 작동하므로 컴퓨터에 크롬이 있어야 합니다.
무엇을 게시할 수 있나요?
텍스트와 이미지가 있는 일반 게시물, 동영상 게시물, 인용 게시물, X 아티클을 게시할 수 있습니다.
상세 정보
작성자의 원본 설명
Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). In Codex, honor explicit requests for the Codex Chrome plugin/@chrome by using the Chrome Extension workflow; otherwise use Chrome Computer Use when available and fall back to real Chrome CDP scripts only when allowed. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X".
repo: JimLiu/baoyu-skills
인기도
- GitHub 스타
- 27k
- 순위
- #9962
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
release-skills
27k버전 올리기, 변경 로그 업데이트, GitHub 릴리스나 태그 게시까지, 모든 프로젝트의 릴리스 과정을 에이전트가 안내하도록 합니다.
baoyu-article-illustrator
27k독자에게 도움이 되는 위치를 찾아 글에 삽화를 넣고, 같은 스타일로 그림을 만들도록 에이전트를 돕습니다.
baoyu-comic
27k주제를 설명하는 패널, 그림 스타일, 톤을 갖춘 교육용 만화를 만드는 방법을 에이전트에게 보여 줍니다. 전기나 튜토리얼 같은 형식이 가능합니다.
baoyu-compress-image
27k이미지를 WebP나 PNG로 바꿔 파일 크기를 줄이고, 도구를 자동으로 골라 더 빠르게 불러오도록 에이전트를 돕습니다.