원클릭으로
diff4
Preview git diffs and files using the diff4 CLI. Use when the user wants to see code changes, review files content securely via diff4
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Preview git diffs and files using the diff4 CLI. Use when the user wants to see code changes, review files content securely via diff4
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | diff4 |
| description | Preview git diffs and files using the diff4 CLI. Use when the user wants to see code changes, review files content securely via diff4 |
| metadata | {"author":"diff4","version":"0.1.0"} |
diff4 encrypts diffs and files client-side (AES-256-GCM) before uploading. The server never sees plaintext. Recipients need the passphrase to decrypt.
diff4 must be installed and available on PATH. Use npm i -g @diff4/cli to install.diff4 git-latest
Runs git diff HEAD~1, encrypts the result, and uploads. Use when the user says "preview my last commit" or "send the latest diff."
diff4 git-staged
Runs git diff --staged, encrypts, and uploads. Use when the user says "preview my staged changes" or "send what's about to be committed."
diff4 files path/to/file1.ts path/to/file2.ts
Reads each file (UTF-8 text only), bundles them as JSON, encrypts, and uploads. Supports any number of paths (relative or absolute).
diff4 key-gen [key] - Generate or set the encryption passphrasediff4 key-get - Print the current passphraseAll upload commands (git-latest, git-staged, files) accept:
| Flag | Description |
|---|---|
-s, --server <url> | Override the diff4 server URL. Default: https://diff4.com (or DIFF4_SERVER env var) |
-p, --passphrase <key> | Override the passphrase for this command only. Default: DIFF4_PASSPHRASE env var |
git-latest and git-staged will error if there is nothing to share.diff4 files reads files as UTF-8 text.DIFF4_SERVER env var or -s flag.DIFF4_PASSPHRASE already exists in the shell config, key-gen replaces it in-place.diff4 key-get (if it fails, run diff4 key-gen and tell user to source their rc file)git-latest, git-staged, or files <paths>)