Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

md-to-twitter

БесплатноЗапускает вложенные скриптыНе проверен

Convert Markdown for X Articles, Premium long posts, or threads. Article mode exports HTML prose with visible code fences, or optional native-code…

j3ffyangот j3ffyang275 установок в других каталогах

Об этом скилле

md-to-twitter — Markdown for X Articles and posts

Choose the editor first

Use the conversation or editor screenshot to identify the target. If the target is unclear, ask before conversion.

Target Mode Result
X Articles --article --clip HTML prose with visible code fences and media placeholders
X Articles with native code panels --article --article-code native --clip HTML prose with code and media placeholders
Premium long post --limit 25000 Plain text with attachment notes
Thread Default 280-character mode Split plain-text posts with attachment notes

Prefer the Article workflow for the full technical-article task verified below. Use thread mode only when requested.

Get approval before generating output. Get separate approval before posting, committing, pushing, or publishing the skill.

X Articles: accepted workflow

Generate the Article export from the repository root:

uv run .opencode/skills/md-to-twitter/scripts/md2twitter.py \
  docs/261119-backup-opencode-sqlite-sessions-zh-hans.md --article --clip

The first H1 becomes the separate article title. The body retains headings, paragraphs, emphasis, lists, and links.

Code appears between visible Markdown fences inside HTML <pre><code>. Shell fences use the bash label.

These are literal fences, not native code panels. They do not provide syntax highlighting or a code-copy button.

Images and table screenshots remain manual uploads. Their numbered placeholders mark their positions in the body.

Verified in X Articles on 2026-11-28

The user accepted the full Simplified-Chinese SQLite backup article after a normal HTML paste. It contained 11 fenced code blocks and four media placeholders.

Test Observed result
Plain-text newlines Large paragraph gaps
Shift+Enter in the editor Tight line spacing
HTML <p> and <br> Paragraph separation and tight internal line breaks
HTML <pre><code> without fences Ordinary text, not a native code panel
<blockquote><pre><code> Quote border with an unwanted final blank line
<blockquote><p> with internal <br> Compact quote without a final blank line
Native panel copied back into X Plain text, not a reconstructed panel
Literal fences inside <pre><code> Visible fences, language label, and tightly grouped code
Insert → Code → Bash Native panel with highlighting and a copy button

Keep the accepted fenced format as the default. Do not replace it with blockquotes.

These results describe the tested editor. They do not prove that every future X editor handles HTML identically.

Outputs

For a source in docs/, output goes to exports/. The source Markdown stays unchanged.

Output Purpose
<source>-twitter-article.html Paste body with fenced code and media placeholders
<source>-twitter-article-instructions.md Title and ordered assembly instructions
<source>-twitter-article.json Title, code mode, and ordered asset manifest
<source>-twitter-article-assets/code-01.txt Plain-text reference copy of a code block
<source>-twitter-article-assets/table-01.png Table screenshot for upload

Code files preserve indentation and internal line breaks. The converter omits fence markers and trailing newlines from their content.

In default mode, code files are reference copies. No manual code insertion is needed.

The default HTML contains no code placeholders. It still contains media placeholders until their images are uploaded.

Copy and paste

  1. Enter the reported title in X's article title field.
  2. Click inside an empty article body.
  3. Paste with Ctrl+V.
  4. Replace each media placeholder through Insert → Media.
  5. Upload the corresponding file from the assembly instructions.
  6. Check headings, code spacing, indentation, long lines, and images.
  7. Remove all remaining placeholders before publishing.

Use normal paste, not Ctrl+Shift+V. Plain-text paste discards the HTML structure used by this workflow.

If the clipboard expires, reload the existing HTML without regenerating assets:

wl-copy --foreground --type text/html \
  < exports/261119-backup-opencode-sqlite-sessions-zh-hans-twitter-article.html

Keep that terminal running until the paste finishes. Then press Ctrl+C in the terminal to stop the clipboard owner.

For the browser fallback, open the HTML file. Copy the rendered page, not its source. Keep the tab open until you paste.

The converter's --clip option also starts a clipboard owner. If that process disappears, use the foreground command above.

Optional native-code panels

Use this mode only when the user accepts manual insertion for every code block:

uv run .opencode/skills/md-to-twitter/scripts/md2twitter.py \
  docs/261119-backup-opencode-sqlite-sessions-zh-hans.md \
  --article --article-code native --clip

For each code placeholder:

  1. Delet
Полный SKILL.md на ClawHub

Установить md-to-twitter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл md-to-twitter?

Convert Markdown for X Articles, Premium long posts, or threads. Article mode exports HTML prose with visible code fences, or optional native-code placeholders. Use when the user asks to prepare an article for X or Twitter, preserve code formatting, attach images, or create posts.

Как установить скилл md-to-twitter?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл md-to-twitter запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить md-to-twitter с