Markdown Preview logo

Markdown Preview

Organization
zenobi-us
markdown-preview

Preview any local Markdown file in a browser, when an agent or user needs a quick rendered view, by running the bundled skill script on a free port and printing its URL

Overview

Publisherzenobi-us
Repositorydotfiles
Skill namemarkdown-preview
Stars
67
Forks
6
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zenobi-us on GitHub. Read the source before you install it.

Installation

Install the Markdown Preview AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zenobi-us/dotfiles.git /tmp/dotfiles
mkdir -p .claude/skills
cp -r /tmp/dotfiles/files/devtools/agent/bundles/agent-core/skills/documents/markdown-preview .claude/skills/markdown-preview
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Markdown Preview in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Markdown Preview on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Markdown Preview is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Markdown Preview

Use the bundled scripts/markdown-preview.js skill script to serve one local Markdown file as HTML. It runs directly with Bun through mise and does not need a global command.

Resolve the script path relative to this SKILL.md file. Do not require a global md-preview command.

Procedure

  1. Run the skill script with the Markdown file path.
  2. Open the URL that the script prints to standard output.
  3. Keep the script process active while the preview is in use.
  4. Stop the process with Ctrl-C when the preview is no longer necessary.
sh
<skill-directory>/scripts/markdown-preview.js path/to/file.md

Use <skill-directory>/scripts/markdown-preview.js doctor to check the Bun runtime.

The script MUST read the file without changing it. The script MUST select a free local port. The script MUST render the Markdown in the HTTP response. The script MUST print one URL to standard output after the server starts. The script MUST print failures to standard error and return a non-zero exit code.

Input

The script accepts a file path as its only positional argument. The path can be relative or absolute. The file can have any name, but it MUST contain Markdown text.

Output

The server listens on 127.0.0.1. The root URL serves the rendered document. The response has Content-Type: text/html; charset=utf-8. The script does not create an output file.

Common Errors

  • If the path is missing, read the usage text and pass a file path.
  • If the file cannot be read, correct the path or file permissions.
  • If the browser cannot connect, keep the script process active.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Markdown Preview AI skill do?

Preview any local Markdown file in a browser, when an agent or user needs a quick rendered view, by running the bundled skill script on a free port and printing its URL

Why use Markdown Preview on TypingMind?

Because you install it once and use it with any model. Markdown Preview is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Markdown Preview in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zenobi-us/dotfiles/tree/master/files/devtools/agent/bundles/agent-core/skills/documents/markdown-preview. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Markdown Preview?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Markdown Preview?

As many as you like. As long as a model supports skills, you can use Markdown Preview with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Markdown Preview AI skill free?

Yes. It is published on GitHub by zenobi-us under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇