markdown-rendering

Opens markdown files in cmux right panes while avoiding the blank-render move-surface bug.

60|11|Updated Jun 15, 2026
One-click install
npx skills add https://github.com/matyasstoch/david-skills --skill markdown-rendering-matyasstoch
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: markdown-rendering
Source: https://github.com/matyasstoch/david-skills/tree/main/skills/markdown-rendering
Command: npx skills add https://github.com/matyasstoch/david-skills --skill markdown-rendering-matyasstoch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Opening a markdown file in a cmux right pane often fails: cmux markdown open spawns a new pane every time, and moving that surface into an existing right pane with move-surface causes the viewer to render completely blank. This Skill documents the only two reliable approaches so you never end up with a stray pane or an empty viewer. ## Core Features & Use Cases - Blank-Render Bug Avoidance: Explains why move-surface on a markdown viewer breaks rendering and forbids that path entirely. - Two Reliable Workflows: Option A opens the markdown correctly the first time with --direction right; Option B closes unused right panes first, then opens a fresh right pane. - Safe Pane Management: Provides exact commands (list-panes, list-pane-surfaces, close-surface) anchored to $CMUX_WORKSPACE_ID so you never close a pane the user is working in. - Use Case: You want to show a generated report.md beside your terminal in cmux. Instead of moving surfaces and getting a blank viewer, you close the stale right pane and run cmux markdown open /abs/path/report.md --direction right --focus false. ## Quick Start Open my markdown file in a cmux right pane without triggering the blank-render bug, closing any unused right panes first if needed.

Frequently Asked Questions about markdown-rendering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I open a markdown file in a cmux right pane?▼

Run `cmux markdown open /abs/path/file.md --direction right --focus false` and let cmux create the pane where it lands. Do not move the resulting surface afterward, since moving a markdown viewer causes it to render blank.

Why does my cmux markdown viewer render blank after move-surface?▼

Moving a markdown surface into an existing pane with `move-surface` triggers a bug where the viewer keeps type=markdown but displays nothing. The fix is to never move markdown viewers; instead close the conflicting right pane and open the file fresh.

How do I fix a blank markdown pane in cmux?▼

Close the broken or unused right pane by listing its surfaces with `cmux list-pane-surfaces --pane pane:NN` and closing each with `cmux close-surface`. Then reopen the file with `cmux markdown open --direction right` to get a clean new pane.

Can I verify a cmux markdown surface rendered correctly?▼

No, you cannot screenshot or read a markdown surface programmatically to confirm it rendered. If you are unsure whether the content displayed, ask the user to confirm visually.

When should I close existing right panes in cmux before opening markdown?▼

Close existing right panes only when they are unused or irrelevant and blocking your new markdown view. Always anchor commands to $CMUX_WORKSPACE_ID and never close a pane the user is actively working in.