Agent Skills
› companion-inc/feynman
› preview
preview
GitHub提供 Markdown、LaTeX、PDF 及代码文件的预览功能,支持浏览器渲染与 PDF 导出。当内置命令不可用时,自动降级使用 shell 或浏览器工具打开文件,便于用户快速审阅文档和报告。
Trigger Scenarios
需要预览生成的文档内容
查看渲染后的 Markdown 或 PDF 文件
导出报告为 PDF
Install
npx skills add companion-inc/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


