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.mdsource content
Preview
Use the
/preview command to render and open artifacts.
Commands
| Command | Description |
|---|---|
| Preview the most recent artifact in the browser |
| Preview a specific file |
| Force browser preview |
| Export to PDF via pandoc + LaTeX |
| 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