Skip to content
Back to skills

Why Changed

ASecurity

Explains why a file or function looks the way it does by tracing its commits, blame and linked issues, with evidence.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsgit

Works with

  • cli

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill why-changed --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Why Changed?

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

Security grade badge for Why Changed
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-why-changed/badge)](https://www.skillsdirectory.com/skills/workspace-templates-why-changed)

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: why-changed
description: Explains why a file or function looks the way it does by tracing its commits, blame and linked issues, with evidence.
argument-hint: "<file>, <file:line> or <function name>"
user-invocable: true
disable-model-invocation: true
---

Explain why this code looks the way it does: $ARGUMENTS

1. Resolve the target to a file and line range. If a function name is given, find its definition first.
2. Use `git blame -w -C -L <range> <file>` to list the commits behind those lines, ignoring whitespace and moved code.
3. For each distinct commit, run `git show <hash>` and read the message, body and diff. Then follow renames with `git log --follow -p -- <file>` when the trail ends at a move.
4. Collect references: issue or PR numbers (#123, JIRA-45) in messages. If the gh CLI is available and authenticated, read them with `gh pr view` or `gh issue view`. Never guess at links you cannot open.
5. Look at nearby tests and comments added in the same commits; they often state the intent.

Answer in this shape: **Short answer** (two sentences), **Timeline** (date, commit, author, what changed and why), **Evidence** (quotes from messages or tickets), **Confidence** (high, medium, low) and **Safe to change?** with the conditions. Make no edits.

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.