agent/skills/knowledge/markdown-rendering/SKILL.md
Renders markdown to self-contained HTML with a custom dark stylesheet and opens in browser. Use when previewing markdown documents, generating styled HTML from README or report files.
npx skillsauth add knoopx/pi markdown-renderingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Convert any markdown file to a styled, self-contained HTML document and open it in the default browser.
nix run nixpkgs#pandoc -- \
--from=markdown-implicit_figures --to=html --embed-resources --standalone \
--css="$HOME/.pi/agent/skills/knowledge/markdown-rendering/assets/style.css" \
input.md -o output.html && xdg-open output.html
Pandoc accepts - as the input filename to read from stdin. Use this when generating markdown on the fly:
echo '# Hello World' | nix run nixpkgs#pandoc -- \
--from=markdown-implicit_figures --to=html --embed-resources --standalone \
--css="$HOME/.pi/agent/skills/knowledge/markdown-rendering/assets/style.css" \
- -o output.html && xdg-open output.html
The stylesheet lives at assets/style.css and is derived from ~/.nix/modules/nixos/defaults/colors.nix (base16 palette). It provides:
#191033) with light text (#f8f8f8)#fad000)#80fcff) and green code strings (#a5ff90)nix run nixpkgs#pandoc — do not assume pandoc is on PATH--embed-resources --standalone so the HTML is fully portable (no external CSS/JS dependencies)--css=<path> pointing to assets/style.css for consistent stylingxdg-open after rendering — the user expects to see the result-) instead of writing a temp file — pandoc reads stdin nativelytools
Inform the user what is happening — skip passive lookups
testing
Programmatic hunk selection for Jujutsu — split, commit, or squash specific hunks without interactive prompts. Use when making partial commits or selective squashes.
content-media
Manage version control with Jujutsu (jj) — no staging area, immediate changes, smart rebasing. Use when navigating history, squashing, or pushing to Git remotes.
development
Gather facts from the web using evidence-first approach with mandatory citations. Use when researching topics, answering factual questions, or any task requiring web-sourced evidence.