OpenParable
Skip to content
← Back to skills

Preview

Documents
preview

Preview is an Agent Skill for documents published in the companion-inc/feynman repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/companion-inc/feynman/blob/HEAD/skills/preview/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/preview, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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

CommandDescription
/previewPreview the most recent artifact in the browser, when available
/preview --file <path>Preview a specific file, when available
/preview-browserForce browser preview, when available
/preview-pdfExport to PDF via pandoc + LaTeX, when available
/preview-clear-cacheClear 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