Skip to content
Back to skills

Blame

BSecurity

Git-blame for Claude Code sessions: find which session read/wrote/edited a specific file, newest-first, with the intent behind each change. Use when the user asks "find the session that edited a file", "which session touched this file", "who changed X", or "when was this file last modified in a chat".

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentspythonbashgit

Works with

  • claude code

Security analysis

B85/100
  • highPerforms destructive filesystem operations

Pro scans all 2 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add proxify-dev/agentic-kit --skill blame --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Blame?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Blame
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/proxify-dev-blame/badge)](https://www.skillsdirectory.com/skills/proxify-dev-blame)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: blame
description: >-
  Git-blame for Claude Code sessions: find which session read/wrote/edited a
  specific file, newest-first, with the intent behind each change. Use when
  the user asks "find the session that edited a file", "which session touched
  this file", "who changed X", or "when was this file last modified in a chat".
argument-hint: "<file path, basename or folder>"
---

Target file: `$ARGUMENTS`

The block below is pre-fetched at skill load (bash injection). Synthesize from
this block instead of re-querying tools.

<FILE_TRACE>
!`[ -x "${CLAUDE_PLUGIN_ROOT}/.venv/bin/python" ] || rm -rf "${CLAUDE_PLUGIN_ROOT}/.venv"; uv run --project "${CLAUDE_PLUGIN_ROOT}" python "${CLAUDE_SKILL_DIR}/bin/fetch.py" "$ARGUMENTS"`
</FILE_TRACE>

## Step 1 — Present results

One block per session, newest first: date, cwd, branch, `EDIT×n WRITE×n READ×n`;
then for each turn that changed the file, its prompt and one line per change —
`#step Edit L<line> −removed +added · `first old line` → `first new line`` or
`Write created|overwrote, N lines`. `via subagent <name>` blocks are changes a
subagent or workflow made, credited to the session that started it. `matched
paths` says which copies (checkout, worktree, release clone) matched; `same file
name, other path` is a different file — do not merge it into the answer.

A folder (`plugins/x`) comes back as one summary per session instead: the files it
changed under the folder, the turns that changed them and what each asked. For the
why behind those changes, the last line names `tracer sessions replay <session> --role user`:
the user's own prompts in that session, whole.

Answer "what did each change" from these lines. The `open:` line opens exactly
those steps if the user wants the whole diff; do not reach for git log/diff or jq.

`RAW_FALLBACK` means no Read/Write/Edit call named the path; what follows is a
text search, sessions ranked by how often they mention the file name, each with
the turn that mentions it most. Those are leads (a Bash command, a tool result,
a passing mention), not proof of an edit — drill the listed turn before claiming it.


## Anti-patterns

- Don't guess which session touched the file from memory/observations —
  always use the prefetched blame output.
- Don't grep raw JSONL for file paths; the kit index already tracks this
  via the `i_files` table.


## Step 2 — Offer deeper detail

> Want more on one of these?
> - `/tracer:trace <uuid>` for the full session recap
> - `trace turn <uuid>-<turn>` for that turn's steps — each tool call, its input and
>   what it returned; `--open 1,4` opens steps whole

Files in this skill

  • SKILL.md2.6 KB
  • bin/fetch.py1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.