DiffView

by BytesAgain

Visualize file diffs side-by-side with syntax-highlighted change views. Use when reviewing changes, comparing versions, inspecting merge results.

3.7k编码与调试未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain/diffview

文档

DiffView

A developer-focused toolkit for checking, validating, generating, formatting, linting, explaining, converting, templating, diffing, previewing, fixing, and reporting on code and text artifacts — all from the command line with full history tracking.

Commands

CommandDescription
diffview check <input>Record and review check entries (run without args to see recent)
diffview validate <input>Record and review validation entries
diffview generate <input>Record and review generation entries
diffview format <input>Record and review formatting entries
diffview lint <input>Record and review lint entries
diffview explain <input>Record and review explanation entries
diffview convert <input>Record and review conversion entries
diffview template <input>Record and review template entries
diffview diff <input>Record and review diff entries
diffview preview <input>Record and review preview entries
diffview fix <input>Record and review fix entries
diffview report <input>Record and review report entries
diffview statsShow summary statistics across all log files
diffview export <fmt>Export all data in JSON, CSV, or TXT format
diffview search <term>Search across all logged entries
diffview recentShow the 20 most recent activity entries
diffview statusHealth check — version, data dir, entry count, disk usage
diffview helpShow usage info and all available commands
diffview versionPrint version string

Each data command (check, validate, generate, etc.) works in two modes:

  • With arguments: Logs the input with a timestamp and saves to the corresponding .log file
  • Without arguments: Displays the 20 most recent entries from that command's log

Data Storage

All data is stored locally in ~/.local/share/diffview/. Each command writes to its own log file (e.g., check.log, lint.log, diff.log). A unified history.log tracks all activity across commands with timestamps.

  • Log format: YYYY-MM-DD HH:MM|<input>
  • History format: MM-DD HH:MM <command>: <input>
  • No external database or network access required

Requirements

  • Bash 4+ (uses set -euo pipefail)
  • Standard POSIX utilities: date, wc, du, head, tail, grep, basename, cat
  • No root privileges needed
  • No API keys or external dependencies

When to Use

  1. Tracking code review notes — Use diffview check or diffview report to log observations during code reviews, creating a searchable history of what you've inspected
  2. Recording lint and format decisions — Use diffview lint and diffview format to keep a timestamped record of linting results or formatting choices across sessions
  3. Building a diff journal — Use diffview diff to log file comparison notes over time, then diffview search to find specific changes later
  4. Generating exportable audit trails — Use diffview export json to produce a structured JSON file of all logged activity for compliance or reporting purposes
  5. Quick project health checks — Run diffview status and diffview stats to see how much data has been collected, disk usage, and last activity time at a glance

Examples

Log a check entry and review history

bash
# Record a check
diffview check "Reviewed auth module for SQL injection"

# View recent check entries
diffview check

Use lint and format tracking

bash
# Log a lint finding
diffview lint "ESLint: no-unused-vars in utils.js line 42"

# Log a format action
diffview format "Ran prettier on src/ directory"

# Search across all entries
diffview search "utils.js"

Export data for reporting

bash
# Export everything as JSON
diffview export json

# Export as CSV for spreadsheet import
diffview export csv

# Export as plain text
diffview export txt

View statistics and status

bash
# Summary stats across all log files
diffview stats

# Health check
diffview status

# Recent activity (last 20 entries)
diffview recent

Diff and explain workflow

bash
# Log a diff observation
diffview diff "config.yaml changed: added redis cache block"

# Log an explanation
diffview explain "Redis cache added to reduce DB load on /api/users"

# Generate a report entry
diffview report "Sprint 12 review: 3 config changes, 1 new service"

How It Works

DiffView uses a simple case-dispatch architecture in a single Bash script. Each command maps to a log file under ~/.local/share/diffview/. When called with arguments, the input is appended with a timestamp. When called without arguments, the last 20 lines of that log are displayed. The stats command aggregates counts across all logs, export serializes everything into your chosen format, and search greps across all log files for a given term.

Support


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

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描109.6k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描109.6k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描109.6k

相关 MCP 服务

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
82.9k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
51.5k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
46.2k

评论