diff-previewer SKILL.md skillA

diff-previewer from chainlesschain/chainlesschain is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add chainlesschain/chainlesschain/diff-previewer@v1.0.0

Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
chainlesschain/chainlesschain
Path
desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/diff-previewer/SKILL.md
Versions recorded
4
Latest version
v1.0.0, committed Aug 28, 2026
First version recorded
Jun 3, 2026
Size
4,605 bytes
Repository stars
11
License
a license file GitHub does not identify

多文件差异预览器 - 在应用AI变更前展示丰富的diff预览,支持部分接受和变更地图.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 差异预览器技能

## 描述

多文件差异预览器,在应用AI变更前提供丰富的diff预览。支持查看git暂存/未暂存差异、比较任意两个文件、生成变更统计和变更地图。提供token估算帮助优化AI上下文窗口使用。

## 使用方法

```
/diff-previewer <mode> [arguments]
```

## 模式

| 模式         | 说明                                     |
| ------------ | ---------------------------------------- |
| `--staged`   | 显示git暂存区的差异(git diff --cached) |
| `--unstaged` | 显示工作区未暂存的差异(git diff)       |
| `--compare`  | 比较两个指定文件的差异                   |
| `--stats`    | 显示变更统计,包含目录级别的分解         |
| `--summary`  | 紧凑的token高效摘要,适合注入AI上下文    |

## 输出格式

### 结构化差异

```json
{
  "files": [
    {
      "path": "src/main/index.js",
      "status": "M",
      "additions": 15,
      "deletions": 3,
      "hunks": [
        {
          "oldStart": 10,
          "oldCount": 5,
          "newStart": 10,
          "newCount": 17,
          "lines": ["..."]
        }
      ]
    }
  ],
  "totalAdditions": 15,
  "totalDeletions": 3,
  "tokenEstimate": 450
}
```

### 变更地图

```
src/main/
  index.js        ████░░░░░░ +15 -3
  database.js     ██████████ +42 -10
src/renderer/
  App.vue         ██░░░░░░░░ +5  -1
```

## 示例

查看暂存的变更:

```
/diff-previewer --staged
```

查看未暂存的变更:

```
/diff-previewer --unstaged
```

比较两个文件:

```
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add chainlesschain/chainlesschain/diff-previewer@sha256:9d4819e04c1355db

The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_zjr32azgf5gc7kte.svg)](https://markdownregistry.com/a/art_zjr32azgf5gc7kte)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Jun 3, 2026 and Aug 28, 2026, about one every 29 days.

versioncommittedcommitsizeaudit
v1.0.0 latest2026-08-28 44248c7 4,605 BA view · diff
v1.0.02026-08-28 177ec1b 4,588 BA view · diff
v1.0.02026-08-28 c29953e 4,574 BA view · diff
v1.0.02026-06-03 3b0b2dc 4,465 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4605 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

chainlesschain/chainlesschain · 11 stars · license a license file GitHub does not identify · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_zjr32azgf5gc7kte
GET https://markdownregistry.com/api/v1/resolve?ref=chainlesschain/chainlesschain/diff-previewer
GET https://markdownregistry.com/api/v1/blob/9d4819e04c1355dbadd52b8cc75f7dd4d3184d678c587822c6d880f10736b6b0

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from chainlesschain/chainlesschain

cc-cli SKILL.md skill
chainlesschain/chainlesschain · .claude/skills/cc-cli/SKILL.md · Invoke ChainlessChain `cc` CLI commands from natural language. Triggers when the user wants to run any `cc …` action…
git:20260618.4898c75 · audit A · 11 stars
pdh-android-collect SKILL.md skill
chainlesschain/chainlesschain · .claude/skills/pdh-android-collect/SKILL.md · Collect a rooted Android device's real personal data into the Personal Data Hub (PDH) vault to feed the user's…
git:20260618.58d3bd9 · audit A · 11 stars
AGENTS.md AGENTS.md file
chainlesschain/chainlesschain · AGENTS.md
git:20261023.f06ee98 · audit A · 11 stars
CLAUDE.md CLAUDE.md file
chainlesschain/chainlesschain · CLAUDE.md
git:20260920.96ab90a · audit A · 11 stars
ab-compare SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/ab-compare/SKILL.md · Generate and compare multiple implementation variants with benchmarking and scoring
v1.0.0 · audit A · 11 stars
agent-browser SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/agent-browser/SKILL.md · Advanced browser automation for AI agents with snapshot-ref interaction pattern - navigate, snapshot interactive…
v1.0.0 · audit A · 11 stars
api-design SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/api-design/SKILL.md · Design RESTful APIs with best practices, conventions, and OpenAPI specs
v1.0.0 · audit A · 11 stars
api-docs-generator SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/api-docs-generator/SKILL.md · Generate API documentation from code - produce OpenAPI/Swagger specs, Markdown API references, request/response…
v1.0.0 · audit A · 11 stars
api-gateway SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/api-gateway/SKILL.md · Universal API gateway - connect to 100+ APIs with a unified interface, manage API keys, and chain API calls
v1.2.0 · audit A · 11 stars
api-tester SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/api-tester/SKILL.md · API测试技能 - IPC处理器发现、测试生成、健康检查、回归测试
v1.0.0 · audit A · 11 stars
architect-mode SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/architect-mode/SKILL.md · 双阶段架构模式 - 先规划后编辑,分离推理与代码修改,提升多文件编辑准确率
v1.0.0 · audit A · 11 stars
audio-transcriber SKILL.md skill
chainlesschain/chainlesschain · desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/audio-transcriber/SKILL.md · Speech-to-text transcription using Whisper API or local engine
v1.0.0 · audit A · 11 stars

Every file in chainlesschain/chainlesschain

Browse by kind, by grade A, or by owner.