Trace a file, function, or line back to the agent session that produced its current commit. Use when the user asks "why is this code here", "what was the agent doing when this changed", "who wrote this", or wants context on a specific location in the codebase.
76
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
The user wants commit context for: $ARGUMENTS
git blame -L 40,52 src/auth/refresh.ts # -> SHA 9a1b2c3dmemory_commit_lookup { "sha": "9a1b2c3d4e5f60718293a4b5c6d7e8f901234567" }Expected output:
9a1b2c3 on main by dev: "rotate refresh tokens"
Linked session 7f3a9c2 "Auth refresh rework", 14 obs.Report only what git and the lookup return. When the lookup gives commit: null,
the commit predates session linking; do not invent intent.
git blame -L <start>,<end> <file> for a line range;
git log -L :<function>:<file> for a function; git log -n 1 -- <file> for a
bare path.memory_commit_lookup { "sha": "<full-sha>" }.memory_recall when available.WRONG: lookup returns { "commit": null }, you narrate "the agent was
refactoring auth" from the diff alone.
RIGHT: "This commit predates session linking, so there is no recorded agent
session. From git show: it changed token rotation in refresh.ts."
commit: null reported as "predates linking", no fabricated session.commit-history: list many agent-linked commits at once.recall: dig deeper into the linked session's observations.See ../_shared/TROUBLESHOOTING.md if memory_commit_lookup is not available.
2d38daf
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.