Przejdź do treści
Biblioteka skilli
Programowanie · Konwersja i formaty

render-diff-html

/render-diff-html

Renderuje diffy gita i porównania plików do raportów HTML lub JSON przez diff2html-cli, m.in. dla zmian w working tree, zakresów commitów i patchy.

Repozytorium
zweihander ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
19.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 19.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/render_diff_html.sh

Co robi i kiedy

Renderuje diffy gita i porównania plików do raportów HTML lub JSON przez diff2html-cli, m.in. dla zmian w working tree, zakresów commitów i patchy.

Oryginalny opis (EN)

Render git diffs and file-to-file comparisons as HTML or JSON reports with diff2html-cli. Use when the user asks to get, render, open, export, or show a visual diff; compare staged, unstaged, working tree, commit range, or last commit changes; convert a patch or .diff file; or show differences between two files or directories.

Jak działa

  1. Quick Start
  2. Source Selection
  3. Options
  4. Verification
Sekcje z nagłówków SKILL.md, w oryginale · 63 linii, 311 słów
Podgląd SKILL.md
---
name: render-diff-html
description: Render git diffs and file-to-file comparisons as HTML or JSON reports with diff2html-cli. Use when the user asks to get, render, open, export, or show a visual diff; compare staged, unstaged, working tree, commit range, or last commit changes; convert a patch or .diff file; or show differences between two files or directories.
---

# Render Diff HTML

Generate a visual diff report with `scripts/render_diff_html.sh`, which wraps
`diff2html-cli` and keeps raw diff generation consistent.

## Quick Start

Use the wrapper first. Pass git pathspecs after `--` when narrowing a git diff:

```bash
SCRIPT=plugins/dev-workflow/skills/render-diff-html/scripts/render_diff_html.sh
bash "$SCRIPT" --scope working
bash "$SCRIPT" --scope staged -- README.md
bash "$SCRIPT" --range origin/main...HEAD --style side
bash "$SCRIPT" --files old.txt new.txt
bash "$SCRIPT" --diff-file change.patch
```

Report the absolute output path to the user. If the user asks to preview it,
open that HTML path with the available browser or OS tool after generation.

## Source Selection

Prefer these simple mappings:

| User request | Wrapper option |
|---|---|
| "show my diff", "render the git diff" | `--scope working` |
| "staged changes" | `--scope staged` |
| "unstaged changes" | `--scope unstaged` |
| "last commit" | `--scope last` |
| "diff against main" | `--range origin/main...HEAD` |
| "compare A and B files" | `--files A B` |
| "convert this patch" | `--diff-file path/to/file.patch` |

Use `--output <path>` when the user gives a destination. Otherwise leave the
default `/tmp/codex-diff2html/...` output in place.

Internal diff files use `${ZWEIHANDER_TMP_DIR:-./.tmp/zweihander}/runs/render-diff-html/<run-id>/`.
The wrapper removes that run directory when it exits. This setting does not
change the report destination.

## Options

- Use `--style side` for side-by-side diffs and `--style line` for inline diffs.
- Use `--format html` by default; use `--format json` only when the user asks for machine-readable output.
- Use repeated `--ignore <path>` for noisy generated files such as lockfiles.
- Use `--title <text>` when a named report would help.
- Treat exit code `3` from the wrapper as "no differences found."

Read `references/diff2html-cli.md` only when you need raw `diff2html-cli`
details beyond the wrapper.

## Verification

After generation, verify that the output file exists and is non-empty. For HTML
reports, a basic check is enough:

```bash
test -s /absolute/path/to/report.html
```
Pliki w paczce (4)
  • SKILL.md 2 KB
  • agents/openai.yaml 1 KB
  • references/diff2html-cli.md 1 KB
  • scripts/render_diff_html.sh 6 KB

Wersje

W bazie nie ma innych skilli o nazwie render-diff-html.

Migawka bazy z 13.11.2026 · wersja paczki 286d3035e064 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100pre-commit-review
    Przegląda lokalne zmiany w śledzonych plikach, staged i unstaged, przed commitem lub zanim powstanie pull request.
  • 100review-diff
    Przegląda wskazany zakres diffa, na przykład staged, commit albo zakres commitów, i zapisuje ustalenia jako komentarze w liniach diffa.
  • 86review-changes
    Przegląda lokalne zmiany w Git pod kątem poprawności i ryzyka regresji, na podstawie diffów i pobliskich testów.
  • 100ce-commit
    Tworzy commit git z jasnym komunikatem przekazującym wartość zmiany, dla zmian staged lub unstaged, zgodnie z konwencją repozytorium.
  • 100commit-message-storyteller
    Analizuje diffy i staged zmiany, a potem pisze narracyjne komunikaty Conventional Commits wyjaśniające, dlaczego zmiana powstała, bez uruchamiania git commit.
  • 100visual-review
    Renderuje diff PR jako stronę HTML z adnotacjami zasad lub sprawdza zmianę UI w prawdziwej przeglądarce przez zrzuty ekranu, konsolę i sieć.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.