Command Palette

Search for a command to run...

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

sandbox-diff

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

Unified text diffs in a Code node or CodeAct action, with the diff library running on the host

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

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

Text diffs in the sandbox

Specifier: @nodetool-ai/sandbox-diff. Import it at the top of the body.

The diff library schedules with setTimeout, and the guest has no timers, so it cannot be compiled in. This pack is a host module: the import resolves to a generated facade over NodeTool's own implementation.

unified — a unified diff of two texts

import { unified } from "@nodetool-ai/sandbox-diff";

const patch = await unified(inputs.before, inputs.after, {
  oldName: "before.md",
  newName: "after.md",
  context: 5
});
return { patch, changed: patch.includes("@@") };

Options: context (lines of context, 0–100, default 3), oldName, newName. Identical inputs produce a header with no hunks, so includes("@@") is the cheap "did anything change" test — handy in a verify loop.

Gotchas

  • unified is async.
  • 5 MB per side. Larger input is refused by name.
  • Line-oriented. Two texts that differ only in trailing whitespace still diff; normalize first if that is noise.

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

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

package.json

FAQ

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

Unified text diffs in a Code node or CodeAct action, with the diff library running on the host

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

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

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

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

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

Сравнить sandbox-diff с