bengous/agents-skills/github-md-preview
Claude Code and agent skill by bengous/agents-skills
- community
Checking that the SKILL.md file is still in the repository.
USER-INVOKED ONLY. Use only when the user explicitly invokes $github-md-preview, /github-md-preview, or explicitly names this skill. Never invoke implicitly. Preview a local markdown file with real GitHub rendering (official markdown API plus GitHub CSS) served on localhost, without committing or pushing, to check mermaid diagrams, tables, or alerts before pushing. Requires network access to api.github.com and the gh CLI.
Install
npx vskill@latest install bengous/agents-skills/github-md-previewSKILL.md
The same SKILL.md was published earlier as bengous/agents-skills/github-md-preview.
GitHub Markdown Preview
Render a local markdown file exactly as github.com would, on localhost. The gh-markdown-preview gh extension sends the file to GitHub's official markdown API and wraps the result in CSS extracted from github.com. Live reload included. Nothing is committed, pushed, or leaves the machine except the file content sent to the rendering API.
One-Time Setup
Check, then install if missing:
Only gh is required. No token needed; the markdown API is public but rate limited.
Serve the Preview
- Start the server in the background so it survives across turns:
``bash gh markdown-preview README.md --disable-auto-open ``
- Read the server output for the URL. Default:
http://localhost:3333/. A
taken port increments automatically.
- Give the URL to the user.
--disable-auto-openstops the tool from
grabbing the browser; drop the flag to auto-open instead.
The server watches the file and live-reloads the page on every save. Leave it running while the user reviews. Stop it when they are done: kill the background task or Ctrl-C.
Options
| Flag | Effect | |
|---|---|---|
--dark-mode / --light-mode | Force a color scheme | |
-p <port> | Fixed port (default 3333) | |
--disable-reload | No live reload |
One served file per invocation. Pipe stdin for one-off snippets:
What This Validates
GitHub renders GFM: tables, task lists, alerts (> [!NOTE]), emoji shortcodes, and `mermaid fences. If a mermaid diagram shows an error block in the preview, the fence syntax is wrong; fix the markdown source and the page reloads. A clean preview means a clean render after push.
Limits and Alternatives
- Needs network: rendering happens through
api.github.com. - Unauthenticated rate limits apply; for heavy use, Grip
(joeyespo/grip) offers the same API-based approach with credential support.
- Fully offline alternatives: ghore (CLI,
mermaid support) and GHMD (VS Code extension).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggithub-md-preview/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bengous/agents-skills/github-md-preview)