文件对比

diff

by BytesAgain

Compare files and directories, merge changes, and generate patches. Use when comparing versions, merging changes, generating patch files.

4.5k效率与工作流未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain3/diff

文档

Diff

A devtools logging and tracking toolkit. Record, search, and export entries across multiple development categories — check, validate, generate, format, lint, explain, convert, template, diff, preview, fix, and report. Each command stores timestamped entries locally and maintains a full activity history.

Commands

check — Record or view check entries

Log a check result or review recent check entries. Called with no arguments, shows the last 20 entries.

bash
bash scripts/script.sh check "build passed for commit abc123"
bash scripts/script.sh check "unit tests: 42 passed, 0 failed"
bash scripts/script.sh check

validate — Record or view validation entries

Log validation results (schema checks, input validation, data integrity).

bash
bash scripts/script.sh validate "JSON schema valid against draft-07"
bash scripts/script.sh validate "input validation: 3 fields missing constraints"
bash scripts/script.sh validate

generate — Record or view generation entries

Track code generation, scaffold creation, or output generation tasks.

bash
bash scripts/script.sh generate "generated TypeScript types from GraphQL schema"
bash scripts/script.sh generate "scaffolded new microservice: order-processor"

format — Record or view formatting entries

Log code formatting operations.

bash
bash scripts/script.sh format "ran gofmt on pkg/ — 8 files reformatted"
bash scripts/script.sh format

lint — Record or view lint entries

Track linting results and code quality checks.

bash
bash scripts/script.sh lint "golangci-lint: 0 errors, 2 warnings"
bash scripts/script.sh lint "shellcheck: all scripts clean"

explain — Record or view explanation entries

Save explanations of code behavior, error messages, or design decisions.

bash
bash scripts/script.sh explain "diff algorithm: Myers O(ND) used for line-level comparison"
bash scripts/script.sh explain "merge conflict in config.yaml — both branches added same key"

convert — Record or view conversion entries

Track format conversions and data transformations.

bash
bash scripts/script.sh convert "converted unified diff to side-by-side format"
bash scripts/script.sh convert "transformed XML config to YAML"

template — Record or view template entries

Log template creation or usage.

bash
bash scripts/script.sh template "created diff report template for PR reviews"
bash scripts/script.sh template "applied changelog template to release notes"

diff — Record or view diff entries

Track diff comparisons and change summaries.

bash
bash scripts/script.sh diff "config v1 vs v2: 3 keys added, 1 removed, 2 changed"
bash scripts/script.sh diff "schema migration: 5 columns added across 3 tables"

preview — Record or view preview entries

Log preview/dry-run results before applying changes.

bash
bash scripts/script.sh preview "merge preview: 12 files changed, 3 conflicts detected"
bash scripts/script.sh preview "patch dry-run: applies cleanly to target branch"

fix — Record or view fix entries

Track bug fixes and patches.

bash
bash scripts/script.sh fix "resolved merge conflict in routes.ts"
bash scripts/script.sh fix "patched off-by-one in line number calculation"

report — Record or view report entries

Log report generation or summary observations.

bash
bash scripts/script.sh report "PR diff summary: +342 -128 across 14 files"
bash scripts/script.sh report "weekly change report: 23 commits, 8 PRs merged"

stats — Summary statistics

Show entry counts per category, total entries, data size, and earliest recorded activity.

bash
bash scripts/script.sh stats

export — Export all data

Export all logged entries to JSON, CSV, or plain text format.

bash
bash scripts/script.sh export json
bash scripts/script.sh export csv
bash scripts/script.sh export txt

search — Search across all entries

Search all log files for a keyword (case-insensitive).

bash
bash scripts/script.sh search "merge"
bash scripts/script.sh search "conflict"

recent — View recent activity

Show the last 20 entries from the global activity history.

bash
bash scripts/script.sh recent

status — Health check

Display version, data directory, total entries, disk usage, and last activity timestamp.

bash
bash scripts/script.sh status

help / version

bash
bash scripts/script.sh help
bash scripts/script.sh version

Data Storage

All data is stored locally in ~/.local/share/diff/:

  • Per-command logs: check.log, validate.log, generate.log, format.log, lint.log, explain.log, convert.log, template.log, diff.log, preview.log, fix.log, report.log
  • Activity history: history.log — global log of all operations with timestamps
  • Exports: export.json, export.csv, or export.txt (generated on demand)

Each entry is stored as YYYY-MM-DD HH:MM|<value> with pipe-delimited fields.

Requirements

  • bash 4+
  • grep, wc, du, tail, head, cat, date, basename (standard coreutils)
  • No external dependencies

When to Use

  1. Code review documentation — Use check, validate, and report to log PR review findings and change summaries
  2. Change tracking — Record file and schema diffs with diff to maintain a history of what changed and when
  3. Merge conflict resolution — Log conflicts found (preview), how they were resolved (fix), and explanations (explain)
  4. Release management — Track formatting, linting, and validation before each release with a full audit trail
  5. Template-driven workflows — Use template and generate to log scaffolding and code generation across projects

Examples

bash
# Log a code review workflow
bash scripts/script.sh check "PR #301: all tests passing"
bash scripts/script.sh lint "eslint clean, no new warnings"
bash scripts/script.sh diff "PR #301: +89 -23 across 5 files"
bash scripts/script.sh report "approved PR #301 with minor suggestions"

# Track a merge conflict resolution
bash scripts/script.sh preview "merge develop→main: 2 conflicts in api/routes.ts"
bash scripts/script.sh fix "resolved conflict: kept develop version of auth middleware"
bash scripts/script.sh explain "conflict caused by parallel refactor of auth flow"

# View stats and export
bash scripts/script.sh stats
bash scripts/script.sh export json

# Search for historical entries
bash scripts/script.sh search "conflict"
bash scripts/script.sh recent

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

相关 Skills

技能工坊

by anthropics

Universal
热门

覆盖 Skill 从创建到迭代优化全流程:起草能力、补测试提示、跑评测与基准方差分析,并持续改写内容和描述,提升效果与触发准确率。

技能工坊把技能从创建、迭代到评测串成闭环,方差分析加描述优化,特别适合把触发准确率打磨得更稳。

效率与工作流
未扫描139.0k

PPT处理

by anthropics

Universal
热门

处理 .pptx 全流程:创建演示文稿、提取和解析幻灯片内容、批量修改现有文件,支持模板套用、合并拆分、备注评论与版式调整。

涉及PPTX的创建、解析、修改到合并拆分都能一站搞定,连备注、模板和评论也能处理,做演示文稿特别省心。

效率与工作流
未扫描139.0k

PDF处理

by anthropics

Universal
热门

遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。

PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。

效率与工作流
未扫描139.0k

相关 MCP 服务

文件系统

编辑精选

by Anthropic

热门

Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。

这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。

效率与工作流
86.1k

by wonderwhy-er

热门

Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。

这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。

效率与工作流
6.1k

EdgarTools

编辑精选

by dgunning

热门

EdgarTools 是无需 API 密钥即可解析 SEC EDGAR 财报的开源 Python 库。

这个工具解决了金融数据获取的痛点——直接让 AI 读取结构化财报,比如让 Claude 分析苹果的 10-K 文件。适合量化分析师或金融开发者快速构建数据管道。但注意,它依赖 SEC 网站稳定性,高峰期可能延迟。

效率与工作流
2.2k

相关资讯

SANA-WM是一个仅26亿参数的开源世界模型,原生训练用于一分钟视频生成,在720p分辨率下合成高保真、分钟级视频,并支持精确相机控制。该模型仅使用约21.3万公开视频片段,在64块H100上训练15天,相比现有方法效率提升36倍,同时视觉质量可媲美大规模工业基线。

深度·5月20日·28 分钟

本文提出因果强制++(Causal Forcing++),一种可扩展的少步自回归(AR)扩散蒸馏方法,用于实时交互视频生成。通过引入因果一致性蒸馏(causal CD)来初始化少步AR学生模型,无需预计算完整PF-ODE轨迹,在帧级2步设置下超越现有最先进的4步块级方法,VBench总分数提升0.1,推理延迟降低50%,训练成本减少约4倍。该方法进一步拓展到动作条件世界模型生成,为实时交互视频生成提供了高效解决方案。

深度·5月20日·47 分钟

Cola DLM 提出了一种层次化潜在扩散语言模型,通过文本VAE学习稳定的文本到潜在映射,利用块因果DiT在连续空间中建模全局语义先验,最后通过条件解码生成文本。实验表明,该模型在8个基准测试中与约2B参数的GPT-2和LLaDA基线相当或更优,且具有良好的扩展性,为非自回归文本生成提供了新范式。

深度·5月9日·354 分钟

评论