Skip to content

Commit 73cc4ea

Browse files
committed
chore: add agent skill demo
1 parent 306ddcb commit 73cc4ea

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

README.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,28 @@ drift -m binary MyApp-v1.0/MyApp.app/libcore.dylib MyApp-v2.0/MyApp.app/libcore.
4545
drift --json MyApp-v1.0 MyApp-v2.0
4646
```
4747

48+
## Agent skill
49+
50+
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).
51+
52+
Install with a single command:
53+
54+
**Claude Code**
55+
56+
```sh
57+
mkdir -p ~/.claude/skills/drift && gh release download --repo block/drift --pattern 'skill.tar.gz' --output - | tar -xz -C ~/.claude/skills/drift
58+
```
59+
60+
**Codex / Amp**
61+
62+
```sh
63+
mkdir -p ~/.agents/skills/drift && gh release download --repo block/drift --pattern 'skill.tar.gz' --output - | tar -xz -C ~/.agents/skills/drift
64+
```
65+
66+
**Agent skill demo**
67+
68+
[![asciicast](https://asciinema.org/a/858411.svg)](https://asciinema.org/a/858411)
69+
4870
### Comparison modes
4971

5072
drift auto-detects the comparison mode based on the inputs:
@@ -156,24 +178,6 @@ drift works on **macOS**, **Linux**, and **Windows**. Core features (directory/a
156178
| `plutil` | Binary plist conversion | macOS only (XML plists work everywhere) |
157179
| `xclip` or `xsel` | Clipboard | Linux only (macOS and Windows work natively) |
158180

159-
## Agent skill
160-
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).
162-
163-
Install with a single command:
164-
165-
**Claude Code**
166-
167-
```sh
168-
mkdir -p ~/.claude/skills/drift && gh release download --repo block/drift --pattern 'skill.tar.gz' --output - | tar -xz -C ~/.claude/skills/drift
169-
```
170-
171-
**Codex / Amp**
172-
173-
```sh
174-
mkdir -p ~/.agents/skills/drift && gh release download --repo block/drift --pattern 'skill.tar.gz' --output - | tar -xz -C ~/.agents/skills/drift
175-
```
176-
177181
## License
178182

179183
[Apache License 2.0](LICENSE)

0 commit comments

Comments
 (0)