/open-markdown:open-markdownfrom open-markdown
Offer to open markdown documents in mdreader after writing them. Trigger this skill whenever you write or create a markdown file that is a plan, spec, design document, architecture doc, implementation guide, proposal, RFC, or any substantive document meant to be read (not just a config snippet or small edit). Also trigger when the user asks to "open", "view", or "preview" a markdown file. Do NOT trigger for trivial edits to existing files (like fixing a typo in a README), code comments, or CLAUDE.md updates.
Ships in open-markdown. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
After writing a markdown document that's meant to be read as a standalone document, offer to open it in mdreader so the user can read it comfortably in a rendered view.
This skill applies to markdown files that are substantive, standalone documents someone would want to sit down and read. Think:
This skill does NOT apply to:
The distinction is simple: if you just wrote something the user will want to read through, offer to open it. If it's a quick edit they already know about, don't.
Before offering to open anything, verify mdreader is installed:
which mdreader
If mdreader is not found, install it:
brew install rvanbaalen/tap/mdreader
If brew is not available or the install fails, tell the user mdreader couldn't be installed and provide the GitHub link: https://github.com/rvanbaalen/mdreader
After writing or creating a qualifying markdown document, use AskUserQuestion to ask:
Question: "I've written <filename> — would you like to open it in mdreader?"
Options:
Keep it lightweight. One question, two options. Don't over-explain what mdreader is.
If the user says yes, run:
mdreader <absolute-path-to-file>
mdreader runs as a background process (it opens in the user's default browser), so this won't block the session. After opening, continue with whatever comes next — don't wait for confirmation that it opened.
If you write several qualifying documents in quick succession (e.g., a plan and a spec), batch them into a single question rather than asking repeatedly:
Question: "I've written these documents — want to open any in mdreader?"
Options:
If the user explicitly asks to "open", "view", or "preview" a markdown file, skip the question and open it directly with mdreader. They already told you what they want.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rvanbaalen/skills --plugin open-markdown