Feynman preview

Preview Markdown, LaTeX, PDF, or code artifacts in the browser or as PDF. Use when the user wants to review a written artifact, export a report, or view a rendered document.

install
source · Clone the upstream repo
git clone https://github.com/getcompanion-ai/feynman
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/getcompanion-ai/feynman "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/preview" ~/.claude/skills/getcompanion-ai-feynman-preview && rm -rf "$T"
manifest: skills/preview/SKILL.md
source content

Preview

Use the

/preview
command to render and open artifacts.

Commands

CommandDescription
/preview
Preview the most recent artifact in the browser
/preview --file <path>
Preview a specific file
/preview-browser
Force browser preview
/preview-pdf
Export to PDF via pandoc + LaTeX
/preview-clear-cache
Clear rendered preview cache

Fallback

If the preview commands are not available, use bash:

open <file.md>          # macOS — opens in default app
open <file.pdf>         # macOS — opens in Preview