Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sk-create-diff

БесплатноБез исполняемых скриптовНе проверен

Local, Git-free before/after review of an edited document (text, Markdown, HTML, DOCX, text PDF) as a self-contained HTML report.

MichelKerkmeesterот MichelKerkmeester★ 40 звёзд на GitHub

Об этом скилле

Create Diff

create-diff is the sk-doc workflow packet for reviewing what changed in a locally edited document. It works outside Git and without a hosted service. It captures a baseline before an edit, compares the before and after versions, then renders one self-contained, accessible HTML report. The comparison engine ships with this packet as scripts/create_diff.py. Everything runs on the machine: no network, no upload and no telemetry, and source files are never modified.

Supported formats and fidelity tiers: plain text and Markdown (full text fidelity), HTML and DOCX (visible/structural text), and text-layer PDF (conditional on a local extractor). Each report states its fidelity tier so a comparison is never trusted beyond what the extractor can actually see.

This packet owns diff authoring and its two scripts. It uses shared sk-doc standards from ../shared/ for surrounding-document quality. It must not add packet-local advisor metadata such as graph-metadata.json or description.json.


1. WHEN TO USE

Activation Triggers

Use this packet when the request asks to:

  • Review what an AI (or anyone) changed in a locally edited document.
  • Produce a before/after report for a Markdown, text, HTML, DOCX, or PDF file that is not in Git.
  • Capture a baseline of a document before editing it, so the change can be reviewed afterward.
  • Compare two explicit versions of a document (an old file and a new file).

Keyword triggers: create diff report, document before/after review, before/after document diff, document change report, review document edits, docx diff, pdf diff.

When NOT to Use

Route elsewhere when:

  • The files are code or already tracked in Git — use git/sk-git for source diffs.
  • The comparison is visual or design-oriented (layout, pixels, screenshots) — out of scope; create-diff compares extracted text only.
  • The task is auditing, scoring, or validating a single existing document rather than comparing two states — use create-quality-control.
  • The deliverable is a README, skill, command, agent, changelog, or flowchart — use the matching create-* packet.

If the target document or output path is unknown and acting would be a guess, ask before writing.


2. SMART ROUTING

The sk-doc hub resolves a document before/after review through mode-registry.json. hub-router.json scores the request, the winning workflowMode is sk-create-diff, and the hub loads this SKILL.md first. A request to review what an AI or a person changed in a locally edited document, to capture a baseline before an edit or to compare two explicit versions selects this packet. Two shapes exist: an automatic snapshot-backed baseline and an explicit pair. The comparison reads extracted text only, so a visual or design comparison is out of scope.

references/README.md is the route map and the fallback load, and references/cli-reference.md holds the commands and exit codes.

A request that matches no registered mode returns UNKNOWN_FALLBACK, never a silent default.

Read ROUTER.md before selecting skill-local resources; open only the matched files.


3. HOW IT WORKS

All comparison, extraction, snapshotting, and rendering are done by scripts/create_diff.py. Run it from this packet directory (or give an absolute path to it). The invariant is: capture the baseline before the edit — a diff needs a real before-state.

Automatic flow (snapshot-backed)

# 0. (optional) confirm what is supported and at what fidelity
python3 scripts/create_diff.py capabilities

# 1. BEFORE the edit — capture a baseline (copies the file into a local .create-diff/ store;
#    never touches the source)
python3 scripts/create_diff.py snapshot path/to/doc.md

# 2. ... let the edit happen (AI or human) ...

# 3. AFTER the edit — compare the current file against its latest baseline and render the report
python3 scripts/create_diff.py compare path/to/doc.md --report review.html

Explicit-pair flow (fallback — no stored state needed)

Use this when there is no baseline, when comparing two arbitrary versions, or when the automatic store is unavailable:

python3 scripts/create_diff.py compare-pair --before old.md --after new.md --report review.html

Pre-composed aggregate pairs

compare-pair can also review a pre-composed pair containing two or more files. Wrap every file in both inputs with the same ordered, unique markers:

===== BEGIN FILE: docs/first.md =====
[file content]
===== END FILE: docs/first.md =====
===== BEGIN FILE: docs/second.md =====
[file content]
===== END FILE: docs/second.md =====

When both inputs contain a balanced matching envelope, the report renders every start and end as an explicit full-width boundary band. Boundaries stay visible through collapsed context, later files receive a 32px canvas gap before their start band, and transitions reset Markdown section labels between files. This does not

Полный SKILL.md на GitHub

Установить sk-create-diff в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Grep
Glob

Вложенные файлы

README.mdROUTER.mdchangelog/v1.0.0.0.mdchangelog/v1.1.0.0.mdchangelog/v1.1.1.0.mdchangelog/v1.1.10.0.mdchangelog/v1.1.2.0.mdchangelog/v1.1.3.0.mdchangelog/v1.1.4.0.mdchangelog/v1.1.5.0.mdchangelog/v1.1.6.0.mdchangelog/v1.1.7.0.mdchangelog/v1.1.8.0.mdchangelog/v1.1.9.0.mdfeature-catalog/comparison-engine/deterministic-diffing.mdfeature-catalog/comparison-engine/multi-format-extraction.mdfeature-catalog/comparison-engine/self-contained-report.mdfeature-catalog/feature-catalog.mdfeature-catalog/safety-and-capabilities/capability-tier-reporting.mdfeature-catalog/safety-and-capabilities/report-safety-validation.mdfeature-catalog/snapshot-lifecycle/baseline-snapshot-and-compare.mdfeature-catalog/snapshot-lifecycle/explicit-pair-comparison.mdfeature-catalog/snapshot-lifecycle/snapshot-state-management.mdmanual-testing-playbook/comparison/docx-text-comparison.mdmanual-testing-playbook/comparison/html-visible-text-comparison.mdmanual-testing-playbook/comparison/markdown-before-after-review.mdmanual-testing-playbook/comparison/pdf-text-comparison.mdmanual-testing-playbook/manual-testing-playbook.mdmanual-testing-playbook/safety/capability-and-unsupported-handling.mdmanual-testing-playbook/safety/hostile-content-escaped.mdmanual-testing-playbook/safety/self-contained-zero-js-report.mdmanual-testing-playbook/safety/source-never-mutated.mdmanual-testing-playbook/snapshot/baseline-capture-then-compare.mdmanual-testing-playbook/snapshot/missing-baseline-fallback.mdmanual-testing-playbook/snapshot/snapshot-status-and-cleanup.mdreferences/README.mdreferences/accessibility-contract.mdreferences/capabilities-and-fidelity.mdreferences/cli-reference.mdreferences/worked-example.md

FAQ

Что делает скилл sk-create-diff?

Local, Git-free before/after review of an edited document (text, Markdown, HTML, DOCX, text PDF) as a self-contained HTML report.

Как установить скилл sk-create-diff?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sk-create-diff запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sk-create-diff с