Diff Summary

Summarize git diffs in plain English

lxgicstudios 4a1f1f9 5 files · 36.9 KB Updated

File contents

Diff Summary

Turn messy git diffs into human-readable summaries. Perfect for PR descriptions and code reviews.

Quick Start

npx ai-diff-summary

What It Does

  • Summarizes staged changes
  • Explains what code does, not just what changed
  • Groups related changes
  • Identifies breaking changes

Usage Examples

# Summarize staged changes
npx ai-diff-summary

# Summarize specific commit
npx ai-diff-summary --commit abc123

# Compare branches
npx ai-diff-summary --from main --to feature/auth

# Output as PR description
npx ai-diff-summary --format pr

Output Example

## Summary
Added user authentication with JWT tokens

## Changes
- New login/logout endpoints in auth.ts
- JWT middleware for protected routes
- User model with password hashing
- Updated API docs

## Breaking Changes
- /api/users now requires authentication

Requirements

Node.js 18+. OPENAI_API_KEY required. Must be in a git repo.

License

MIT. Free forever.

lxgicstudios/ai-diff-summary/tree/main/ commit 4a1f1f9419

Frequently asked questions

npx skillmds@latest add lxgicstudios/diff-summary