difftastic
Perform syntax-aware structural diffing on source code using Difftastic (difft). Compares code based on AST structure rather than lines. Use when reviewing…
от siddu1004★ 43 звезды на GitHub
Установить difftastic в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
This skill needs Difftastic, which is installed separately. From this skill's folder, run
python3 scripts/sfp_app.py statusto see whether it is installed and running. If it is not, runpython3 scripts/sfp_app.py installto get the plan (it changes nothing), tell the user what it will do, and run it again with--yesonly after they agree.startruns it when it is installed but stopped.
Difftastic Structural Diff
Structural code diffing powered by Difftastic (difft). Unlike line-by-line diff tools, Difftastic parses source code using tree-sitter grammars to compare abstract syntax trees, ignoring trivial whitespace or formatting changes while highlighting meaningful structural transformations.
Use This Skill When
- Reviewing code changes that include reformatting, renamed variables, or indentation shifts.
- Comparing refactored functions across commits or files to verify AST preservation.
- Diagnosing complex syntax changes across 40+ programming languages.
Step-by-Step Usage
1. Check Installation
difft --version
If not installed:
- Via Cargo:
cargo install --locked difftastic - Via Homebrew:
brew install difftastic
2. Compare Files
# Structural diff of two files
difft old_file.py new_file.py
# Structural diff of a Git revision
git difftool --tool=difft HEAD~1
3. Display Settings for Automation
# Display compact summary with color disabled for agent consumption
difft --color=never --display=inline old.rs new.rs
Checks & Verification
- Verify both files parse cleanly without syntax errors (Difftastic falls back to line-diff if parsing fails).
- Confirm syntax changes are highlighted at the node level (expressions, parameters, blocks).
Sources
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- LICENSE
- scripts/app.json
- scripts/sfp_app.py
FAQ
Что делает скилл difftastic?
Perform syntax-aware structural diffing on source code using Difftastic (difft). Compares code based on AST structure rather than lines. Use when reviewing syntactic changes, inspecting complex refactors, or comparing nested code blocks across files.
Как установить скилл difftastic?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл difftastic запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…