You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: improve agent skill with forked context, reference docs, and release packaging
Run the skill in an isolated subagent (context: fork) to avoid bloating the main conversation. Split JSON schema and jq recipes into reference.md. Ship skill as a tarball in releases with one-liner install commands for Claude Code, Codex, and Amp.
description: Compare files, directories, archives, or binaries using drift. Use when asked to compare, diff, or analyze differences between two paths - builds, releases, directories, archives (.ipa, .apk, .aar, .jar, .tar.gz), binaries, plists, or text files.
3
+
description: Compare and diff files, directories, builds, releases, archives, or binaries. Use when the user wants to compare two versions of something, diff two directories or files, analyze what changed between builds or releases, or examine differences in .ipa, .apk, .aar, .jar, .tar.gz, .tar.bz2, Mach-O binaries, plists, or text files.
4
4
argument-hint: "<path-a> <path-b> [-m mode]"
5
-
allowed-tools: Bash(drift *)
5
+
allowed-tools: Bash(drift *), Bash(jq *)
6
+
context: fork
6
7
---
7
8
8
9
Compare $ARGUMENTS using `drift --json` and analyze the results.
@@ -13,9 +14,7 @@ Compare $ARGUMENTS using `drift --json` and analyze the results.
13
14
drift --json <path-a><path-b>
14
15
```
15
16
16
-
Optional: force a comparison mode with `-m <mode>` where mode is one of: `tree`, `binary`, `plist`, `text`.
17
-
18
-
drift auto-detects the correct mode from the inputs. Use `-m` only when the user explicitly requests a specific mode or auto-detection picks the wrong one.
17
+
Optional: force a comparison mode with `-m <mode>` where mode is one of: `tree`, `binary`, `plist`, `text`. drift auto-detects the correct mode from the inputs - only use `-m` when the user explicitly requests a mode or auto-detection picks the wrong one.
19
18
20
19
## Supported inputs
21
20
@@ -26,45 +25,14 @@ drift auto-detects the correct mode from the inputs. Use `-m` only when the user
| text | Everything else | Line-by-line unified diff |
28
27
29
-
## JSON output schema
30
-
31
-
Every result includes:
32
-
33
-
-`path_a`, `path_b` - the compared paths
34
-
-`mode` - detected comparison mode
35
-
-`root` - diff tree where each node has: `name`, `path`, `status` (unchanged/added/removed/modified), `kind`, `is_dir`, `size_a`, `size_b`, and optional `children`
- For large archives, the JSON can be verbose. Summarize at the directory level first, then drill into specific paths if the user asks.
69
-
- Size delta is in bytes. Convert to human-readable units (KB/MB) when presenting to the user.
70
-
- When comparing builds, highlight: new files added, files removed, largest size increases, and any unexpected changes.
38
+
When the output is large, use `jq` to extract specific parts rather than dumping everything. See [reference.md](reference.md) for the JSON schema and useful jq recipes.
-`root` - diff tree where each node has: `name`, `path`, `status` (unchanged/added/removed/modified), `kind`, `is_dir`, `size_a`, `size_b`, and optional `children`
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,20 +158,20 @@ drift works on **macOS**, **Linux**, and **Windows**. Core features (directory/a
158
158
159
159
## Agent skill
160
160
161
-
drift ships a skill file that gives AI coding agents native access to structured file comparison via `drift --json`. The skill is included in every [GitHub release](https://github.com/block/drift/releases).
161
+
drift ships a skill that gives AI coding agents native access to structured file comparison via `drift --json`. The skill is included in every [GitHub release](https://github.com/block/drift/releases).
0 commit comments