Open a mentioned Markdown file in a Herdr split pane as terminal/TUI preview when running inside Herdr. Use when user asks to preview, render, show, or open a `.md`/Markdown file in Herdr, terminal, split pane, side pane, or TUI instead of browser preview. Especially for requests like "preview this md in herdr", "open markdown in split pane", "show README beside editor", or "render mentioned md file in terminal".
Ships in herdr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Open terminal Markdown preview for mentioned .md file in Herdr split pane with one helper command.
If target Markdown path is unambiguous, run helper immediately:
~/.dotfiles/scripts/herdr-md-preview <path-to-md-file>
Do not preflight HERDR_ENV, glow, helper existence, or file existence with separate commands. Helper already validates:
herdr on PATHglow on PATHOnly ask user when target Markdown file is ambiguous.
Use fallback only if helper script is unavailable:
FILE="/absolute/path/to/file.md"
printf -v QUOTED_FILE '%q' "$FILE"
NEW_PANE=$(herdr pane split --current --direction right --ratio 0.45 --no-focus --cwd "$(dirname "$FILE")" | python3 -c 'import json,sys; print(json.load(sys.stdin)["result"]["pane"]["pane_id"])')
herdr pane run "$NEW_PANE" "while true; do clear; glow $QUOTED_FILE || cat $QUOTED_FILE; sleep 1; done"
Prefer helper over fallback. Helper is source of truth for quoting, validation, and live refresh behavior.
After success, say which file was opened and which pane was created.
If blocked, surface exact helper error (HERDR_ENV!=1, missing file, missing glow, etc.).
.md file, preview it. If ambiguous, ask which file.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/herdr:markdown-preview-splitfrom herdr
npx claudepluginhub dxta/claude-code-skills --plugin herdr