{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "mufeedvh-code2prompt--send-only-a-git-diff-for-review",
 "repo": "mufeedvh/code2prompt",
 "repo_url": "https://github.com/mufeedvh/code2prompt",
 "repo_slug": "mufeedvh-code2prompt",
 "title": "Build a review prompt from your git changes",
 "page_title": "How to build a review prompt from your git changes with Code2prompt",
 "summary": "Use Code2prompt's git integration and templates to package diffs or branch comparisons for an LLM review.",
 "who": "A developer who wants a quick AI code review of a branch before opening a pull request.",
 "problem": "Sending the whole repo for a review wastes tokens and buries the actual change.",
 "outcome": "A focused prompt with the diff, log or branch comparison plus your review template.",
 "steps": [
  "Install with `cargo install code2prompt` or `brew install code2prompt`",
  "Use the Git Integration options to include diffs, logs or branch comparisons in the prompt",
  "Write a Handlebars template with your review checklist so every review asks the same questions",
  "Use the TUI to configure options interactively if you do not remember the flags",
  "Send the prompt to your LLM and treat its comments as suggestions"
 ],
 "agent_prompt": "Using mufeedvh/code2prompt, create a prompt for reviewing the changes on my branch <branch> against <base>, using a Handlebars template that asks for bugs, missing tests and security issues. Save it to review.txt and give me the command you used.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "The README points to the online docs for the exact git and template flags, so check them for your version.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "Cargo, Homebrew, or pip for the Python SDK; binaries are also on the releases page",
  "Git, Rust and Cargo only if you build from source",
  "Optional: the wayland feature flag for clipboard support on Wayland systems"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mufeedvh-code2prompt/send-only-a-git-diff-for-review/",
 "md": "https://dedupedai.com/use-cases/mufeedvh-code2prompt/send-only-a-git-diff-for-review/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mufeedvh-code2prompt--send-only-a-git-diff-for-review.json",
 "api_version": "v1"
}
