Skip to content
Back to skills

Preview

ASecurity

Preview or export Markdown, PDF, HTML, or code artifacts using shell/browser tools. Use when the user wants to review a written artifact, export a report, or view a rendered document.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 7, 2026
ai-agentsshellbash

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 7, 2026

npx -y skills add Yichen-ZJU/claude-for-research --skill preview --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Preview?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Preview
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yichen-zju-preview/badge)](https://www.skillsdirectory.com/skills/yichen-zju-preview)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: preview
description: Preview or export Markdown, PDF, HTML, or code artifacts using shell/browser tools. Use when the user wants to review a written artifact, export a report, or view a rendered document.
---

# Preview

Render or open artifacts with shell/browser tools.

## Linux (this machine)

```bash
xdg-open <file.md>          # opens in default app
xdg-open <file.pdf>         # opens in PDF viewer

# Markdown -> HTML
pandoc input.md -o output.html --standalone --metadata title="Report"

# Markdown -> PDF (needs a LaTeX engine)
pandoc input.md -o output.pdf
pandoc input.md -o output.pdf --pdf-engine=xelatex   # better for CJK
```

## Headless alternatives

When no display is available or the export is the artifact itself:

```bash
pandoc input.md -o output.html   # always works offline
wc -l output.html && ls -la output.html
```

## Rules

- Verify the output file exists and is non-trivial (`stat`, `wc`) before saying the export succeeded.
- If `pandoc` or a PDF engine is missing, say so and offer the HTML fallback or `pip install`/`apt` options.
- For figures, open or export the actual image file; do not claim a render you did not produce.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.