utsabpanta

Blame Why — Git skill for Claude Code

Git community

Explain why a specific line of code exists — git blame + commit context.

How to install Blame Why

Installs to ~/.claude/commands/utsabpanta-claude-code-toolkit-blame-why.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/utsabpanta/claude-code-toolkit/HEAD/.claude/commands/blame-why.md -o ~/.claude/commands/utsabpanta-claude-code-toolkit-blame-why.md

Restart Claude Code, or start a new session, for it to be picked up.

What Blame Why does


description: Explain why a specific line of code exists — git blame + commit context argument-hint: : (e.g. src/auth.ts:42)

Explain why the code at $ARGUMENTS exists.

Steps:

  1. Parse the argument as :. If it's not in that form, ask the user for a file and line.
  2. Run git blame -L , to find the commit that last touched that line.
  3. Run git show to get the commit message and the surrounding change.
  4. Read the code around the line

Alternatives in Git

  • Fullstack Dev Skills — by jeffallan - A comprehensive Claude Code plugin with 65 specialized skills covering full-stack development a 7k ★
  • 40+ Claude Code Tips — Tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt 5.8k ★
  • Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★

Full documentation available on GitHub

View Source Repository