diff

by BytesAgain

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

3.8k效率与工作流未扫描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 从创建到迭代优化全流程:起草能力、补测试提示、跑评测与基准方差分析,并持续改写内容和描述,提升效果与触发准确率。

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

效率与工作流
未扫描111.1k

表格处理

by anthropics

Universal
热门

围绕 .xlsx、.xlsm、.csv、.tsv 做读写、修复、清洗、格式整理、公式计算与格式转换,适合修改现有表格、生成新报表或把杂乱数据整理成交付级电子表格。

做 Excel/CSV 相关任务很省心,能直接读写、修复、清洗和格式转换,尤其擅长把乱七八糟的表格整理成交付级文件。

效率与工作流
未扫描111.1k

PDF处理

by anthropics

Universal
热门

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

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

效率与工作流
未扫描111.1k

相关 MCP 服务

文件系统

编辑精选

by Anthropic

热门

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

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

效率与工作流
83.0k

by wonderwhy-er

热门

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

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

效率与工作流
5.9k

EdgarTools

编辑精选

by dgunning

热门

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

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

效率与工作流
2.0k

相关资讯

LangSmith Fleet 引入 Assistants 和 Claws 两种智能体授权类型,分别对应“代表用户”和“固定凭证”模式。文章通过入职代理、邮件代理等实例说明应用场景,并展望了未来更细粒度的内存权限管理。

指南LangChain·3月23日·3 分钟

评论