markdown-rendering – skill Tài liệu & Office cho agent AI
Mở Markdown đáng tin cậy trong cmux pane và khôi phục khi vùng hiển thị bị trống.
Cài skill markdown-rendering bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/markdown-rendering-14477.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /markdown-rendering – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/markdown-rendering-14477.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $markdown-rendering – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/markdown-rendering-14477.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /markdown-rendering – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/markdown-rendering-14477.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /markdown-rendering – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Markdown Rendering in cmux
When to Use
- Use when opening Markdown in cmux shows a blank pane or wrong layout.
- Use when you need to display a Markdown file in a stable cmux right pane.
The Problem
cmux markdown open defaults to spawning a brand-new pane every time, even with --direction right. The common "fix" — moving the new markdown surface into the existing right pane with move-surface — bugs out: the moved viewer renders BLANK. The surface keeps type=markdown and looks healthy, but shows nothing.
So you get stuck: either a stray extra pane, or a blank viewer after moving it.
The Rule
The contributor observed two workarounds for a particular cmux version. Verify the installed command/version; the blank-render issue may have changed. Prefer reopening an owned viewer without altering unrelated panes.
Option A — Open it right on the first try
If there is no usable right pane yet, just let cmux create one and leave it where it lands:
cmux markdown open /abs/path/file.md --direction right --focus falseDo NOT then move it. If it spawned where you want it, you're done.
Option B — Close existing right pane(s), then open fresh
If there are other right panes in the way (and they're unused or irrelevant), close them first, then open the markdown fresh as a new right pane:
# 1. find panes in THIS workspace
cmux list-panes --workspace "$CMUX_WORKSPACE_ID"
# 2. close the unused/irrelevant right pane(s) by closing their surfaces
cmux list-pane-surfaces --pane pane:NN
cmux close-surface --surface surface:XX # repeat per surface in that pane
# 3. THEN open the markdown fresh — it creates its own clean right pane
cmux markdown open /abs/path/file.md --direction right --focus falseHard Rules
- Never
move-surfacea markdown viewer. It renders blank afterward. This is the core bug this skill exists for. - Open it correctly the first time (Option A), OR close the conflicting right pane(s) and open a fresh right pane from scratch (Option B).
- Close only surfaces created for this task or explicitly authorized for closure; apparent irrelevance does not prove they contain no unsaved work.
- Always anchor to
$CMUX_WORKSPACE_ID; never assume the visually focused workspace. - Pass
--focus falseso you don't steal the user's focus. - Use any supported readback/rendered inspection available on the actual host. If it cannot inspect the viewer, report that limit instead of claiming success.
Limitations
- Adapted from
davidondrej/skills; verify local paths, tools, credentials, and agent features before acting. - For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
Skill liên quan
- markstream-install – Cài đặt và cấu hình renderer Markdown streaming Markstream cho Vue, React, Svelte…
- maximalism – Hướng dẫn triển khai Controlled Maximalism cho Web và ứng dụng. Kích hoạt khi người dùng…
- md2video-audio – Chuyển tài liệu Markdown thành video MP4 có thuyết minh, với hình ảnh đồng bộ và giọng…
- mdpr-skill – Rà soát quy trình trình bày Markdown MDPR với gợi ý ngữ nghĩa, kiểm tra trực quan và…
- mock-hunter – Kiểm tra trang web đang chạy qua năm bước (liệt kê, nhấp, theo dõi, phân loại, báo cáo)…
- nanobanana-ppt-skills – Tạo PPT bằng AI với phân tích tài liệu và hình ảnh theo phong cách riêng.
- obsidian-markdown – Tạo và chỉnh sửa Obsidian Flavored Markdown với wikilink, embed, callout, properties và…
- odoo-edi-connector – Hướng dẫn triển khai EDI (Electronic Data Interchange) với Odoo: ánh xạ tài liệu X12…