AgentStack
SKILL verified MIT Self-run

Preview Diff

skill-veelenga-preview-skills-preview-diff · by veelenga

Git diff preview tool with GitHub-style formatting and interactive features

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add skill-veelenga-preview-skills-preview-diff

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Preview Diff? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Git Diff Preview Tool

Internal tool for previewing git changes with GitHub-style formatting. Accessed via /preview-diff command.

Features

Visual Design

  • Beautiful gradient header with clear stats summary
  • GitHub-style formatting using diff2html library
  • Modern UI with rounded corners and smooth transitions
  • Enhanced readability with optimized fonts and spacing

Functionality

  • Accordion-style files: Click headers to expand/collapse
  • Smart defaults: First file expanded, others collapsed
  • Expand/Collapse All button for quick control
  • Real-time search: Filter files by name
  • View switching: Toggle between unified and split view
  • Unified view (default): Traditional line-by-line diff
  • Split view: Side-by-side comparison
  • Change statistics: Files changed, additions, deletions
  • Line numbers and syntax highlighting
  • View persistence across sessions
  • Shows all changes: tracked, staged, and untracked files

Agent Usage

When the user asks to preview a diff, DO NOT build HTML manually. Use the Bash tool to execute this skill's run.sh script:

# Preview current changes
git diff HEAD | ./run.sh

# Preview specific branch comparison
git diff main..feature-branch | ./run.sh

The script handles all HTML generation and automatically opens the result in the browser. Do NOT open the file manually to avoid duplicate tabs.

Options

The script works with sensible defaults but supports these flags for flexibility:

  • -o, --output PATH - Custom output path
  • --no-browser - Skip browser, output file path only

Technology

  • diff2html: GitHub-style diff rendering
  • git diff: Unified diff format
  • JavaScript/CSS: Browser-based rendering

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.