convez.ai
SkillDevOps & InfraestruturaIniciante
puchkoff

Git Diff HTML

puchkoff/git-diff-html-skill

Visualize diffs Git em HTML lado-a-lado direto no Safari

Ver no GitHub
InicialPluginScore · de 0 a 100

Skill para Claude Code que renderiza diffs do Git como visualização lado-a-lado em HTML e abre automaticamente no Safari. Usa diff2html do CDN para criar uma página auto-contida com headers sticky por arquivo e banner do worktree.

Instalação

$npx convez-ai puchkoff/git-diff-html-skill

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
28%
Último commit
há 2 semanas
Versão
v1.0.0
Issues abertas
0
Contribuidores
1

Casos de uso

  • Revisar mudanças de código com visualização interativa
  • Comparar branches ou ranges de commits de forma clara
  • Debugar diferenças entre versões do código antes de commit

Veredito

Ferramenta prática e leve para desenvolvedores macOS que usam Claude Code. Sem dependências de MCP, integra-se direto ao workflow git com visualização clara de diffs. Limitada ao ecossistema Apple, mas eficiente para seu nicho.

README

A tradução para o português deste README ainda está na fila.

git-diff-html

A Claude Code skill that renders git diff as a side-by-side HTML page and opens it in Safari. No MCP server required.

It captures the diff, builds a self-contained HTML page with diff2html (loaded from CDN), adds a light-blue worktree banner plus sticky per-file headers, and launches Safari.

Install

Copy the skill into your Claude Code skills directory:

mkdir -p ~/.claude/skills/git-diff-html
cp SKILL.md render_git_diff.py ~/.claude/skills/git-diff-html/

Usage

In Claude Code, say /git-diff-html, gdh, or "show diff in safari". Or run the script directly from inside the repo you want to diff:

python3 ~/.claude/skills/git-diff-html/render_git_diff.py "$@"

$@ accepts anything valid after git diff:

  • (no args) → defaults to HEAD (staged + unstaged)
  • --staged / --cached → staged only
  • main..HEAD → branch diff
  • HEAD~3 -- apps/frontend → range scoped to a path
  • --no-open → write the file but don't launch Safari

The script prints the output path and file count, or No changes to diff. when the diff is empty.

Behavior

  • Writes to ~/.local/share/git-diff-html/diff.html, overwriting each run.
  • Read-only: runs git diff only — never stages, commits, or touches the working tree.
  • Self-contained except for the diff2html CDN bundle (needs network to render).

Requirements

  • macOS (opens Safari)
  • Python 3
  • Network access for the diff2html CDN bundle

License

MIT

Ver o original no GitHub

Bom para

Relacionados