en un clic
preview-diff
// Git diff preview tool with GitHub-style formatting and interactive features
// Git diff preview tool with GitHub-style formatting and interactive features
Render and preview CSV files in browser with interactive sorting, filtering, and column statistics
Create interactive 2D data visualizations using D3.js with zoom, pan, and custom rendering
Render and preview JSON files in browser with syntax highlighting, collapsible tree view, and search
Create interactive maps with markers, routes, and geographic data using Leaflet
Render and preview Markdown files in browser with GitHub-flavored formatting and syntax highlighting
Render and preview Mermaid diagrams in browser with support for flowcharts, sequence diagrams, class diagrams, and more
| name | preview-diff |
| description | Git diff preview tool with GitHub-style formatting and interactive features |
| user-invocable | true |
Internal tool for previewing git changes with GitHub-style formatting. Accessed via /preview-diff command.
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.
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