Investigating unexpected changes

From ScriptedAlchemy/tracedecay · View interactive version

Investigating unexpected changes is an AI agent skill from the GitHub repository ScriptedAlchemy/tracedecay. Use when the user finds working-tree, branch, or commit changes they did not expect and asks who made them or why, while preserving other agents'' work. Load this skill before the first tool call.

How to use this skill

Skill file

Investigating unexpected changes

Git status, diff, log, and reflog establish what changed in the live checkout.

The indexed graph may describe a different generation; use it to understand

changed symbols, not as the sole authority for current Git history.

Correlate the exact branch, worktree, or commit with session evidence. A session

that produced a commit differs from one that merely observed it; preserve the

reported relation, including unknown legacy attribution. Use matching spans and

messages before claiming an author or intention.

Broad session grep may cap the sessions searched. Scope follow-up replay to the

returned session and time window, retain its anchors, and inspect coverage before

claiming the record is complete. Missing attribution is uncertainty, not evidence

that a peer's change can be overwritten.

When changes overlap active work, resolve ownership and intent before editing.

For retrieving the underlying conversation, use managing-session-context.

Report: what changed according to Git, the session that produced or observed

it, and the coverage of the session search. Say the author is unknown when

attribution is missing; do not revert or overwrite the change.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.