commit-archaeologist

Reconstructs why code exists by tracing local git history, authorship, and commit intent signals.

Updated Aug 7, 2026
One-click install
npx skills add https://github.com/Protremix/EvolvixOS --skill commit-archaeologist-protremix
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: commit-archaeologist
Source: https://github.com/Protremix/EvolvixOS/tree/main/knowledge/skills/commit-archaeologist
Command: npx skills add https://github.com/Protremix/EvolvixOS --skill commit-archaeologist-protremix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? When you inherit or revisit code, git blame only shows who last touched a line, not why the line exists. This Skill reconstructs the origin and evolution of a file or line range from local git history so you can make informed decisions before a rewrite, refactor, or risky edit. ## Core Features & Use Cases - Origin and Timeline Reconstruction: Finds the introducing commit and orders later changes oldest-to-newest with intent categories like feat, fix, refactor, revert, and hotfix. - Co-Change and Authorship Analysis: Detects files that repeatedly changed alongside the target and separates current blamed-line counts from historical commit counts. - Intent Signal Detection: Flags issue references, reverts, workarounds, temporary markers, and TODOs found in commit messages. - Use Case: Before refactoring a confusing caching function, ask why src/cache.py lines 40-72 exist and receive a report covering its origin, companion files, and change risks. ## Quick Start Ask your agent: why does src/cache.py lines 40-72 exist, and what should I know before I change it?

Frequently Asked Questions about commit-archaeologist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find out why a piece of code exists in git?▼

Run the archaeologist script with the repository path, file path, and optional line range to trace the introducing commit and later changes. It uses git line-log for ranges and git log --follow for whole files, producing a JSON report with timeline, authorship, and intent signals.

How to trace the history of specific lines in a git file?▼

Pass a line range like --lines 40-72 to the script, which uses git line-log to follow only the commits that shaped those current lines. The oldest commit in that timeline is the region's introduction, which may differ from the file's first commit.

Does this tool require network access or API keys?▼

No, everything runs locally using Python's standard library and git commands. The script is read-only, makes no network calls, and requires no API keys or repository writes.

Can git blame tell me who originally wrote the code?▼

Blame only shows who last modified surviving lines, not the original author. The report keeps current blamed-line counts separate from historical commit counts so you can distinguish recent editors from the introducing author.

What are the limitations of git history analysis for understanding code intent?▼

Commit message categories are keyword heuristics, not verified intent, and co-change patterns show correlation rather than proven dependencies. Sparse history, generic messages, or bulk rewrites lower confidence, so conclusions beyond the evidence should be labeled as inference.