Agent Skills
› advaitpaliwal/feynman
› preview
preview
GitHub用于预览 Markdown、LaTeX、PDF 或代码等工件。支持通过专用命令在浏览器中渲染,或提供 Pandoc 转换及系统打开命令作为降级方案,便于用户查看和导出报告。
Trigger Scenarios
需要预览文档内容
将文件转换为 PDF 或 HTML
在浏览器中查看渲染结果
Install
npx skills add advaitpaliwal/feynman --skill preview -g -y
SKILL.md
Frontmatter
{
"name": "preview",
"description": "Preview Markdown, LaTeX, PDF, or code artifacts when preview commands are visible, or fall back to shell\/browser tools. Use when the user wants to review a written artifact, export a report, or view a rendered document."
}
Preview
Use /preview only when that command is visible in the active session. If preview commands are unavailable, render or open artifacts with shell/browser tools and report that the preview package is not installed.
Commands
| Command | Description |
|---|---|
/preview |
Preview the most recent artifact in the browser, when available |
/preview --file <path> |
Preview a specific file, when available |
/preview-browser |
Force browser preview, when available |
/preview-pdf |
Export to PDF via pandoc + LaTeX, when available |
/preview-clear-cache |
Clear rendered preview cache, when available |
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
pandoc input.md -o output.html
pandoc input.md -o output.pdf
Version History
- 54d08a3 Current 2026-07-25 07:16


