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★ 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-gitfor 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
Установить sk-create-diff в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic