commit-archaeologist
Was er macht
Dieser Skill durchsucht die lokale git-Historie eines Projekts, um den Grund hinter einem Codeblock zu erklären. Er ist für Menschen gedacht, die Kontext brauchen, bevor sie Code ändern, den sie nicht selbst geschrieben haben.
Wann du ihn nutzt
- ✓Wenn du fragst, warum eine Funktion oder ein Codeblock existiert.
- ✓Wenn du wissen willst, wer einen Codeabschnitt geschrieben hat und was danach geändert wurde.
- ✓Wenn du eine Neufassung planst und zuerst die Historie des Codes brauchst.
Link zum Skill
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/commit-archaeologist/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Warum existiert diese Funktion? Durchsuche die git-Historie und erkläre sie mir, bevor ich sie ändere.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Er verfolgt die Datei oder die Zeilen durch lokale git-Commits, findet den Commit, der sie eingeführt hat, und die späteren Änderungen. Commit-Nachrichten liest er nach Hinweisen auf die Absicht. Alles läuft auf deinem Computer.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Commit Archaeologist
git blame names the last person to touch a line. This skill reconstructs the
reason the line exists. It traces a file or current line range through local git
history, identifies its origin and later edits, finds files that repeatedly
changed beside it, and extracts intent clues from commit messages.
Everything runs locally. No network calls, API keys, or repository writes.
When to use
- The user asks why a block, function, or file exists
- The user wants to know who introduced code and what changed afterward
- A rewrite or refactor needs historical constraints and change risks
- A workaround, temporary branch, or surprising design choice needs context
When not to use
- The user only wants raw blame output or a commit list
- The task is to squash, delete, or rewrite git history
- The repository is remote and has not been cloned locally
- The question is about project-wide architecture rather than one file or region
Gather the target
Get the repository path and tracked file path. Use a line range when the user names a current block or function. If either path is missing, ask only for the missing value. Do not scan sibling repositories.
Paths should be relative to the repository and use forward slashes. Line ranges
use inclusive current line numbers such as 40-72.
Run the dig
From this skill directory:
python3 scripts/archaeologist.py /path/to/repo src/cache.py --lines 40-72 --json
For the complete history of a file, omit --lines:
python3 scripts/archaeologist.py /path/to/repo src/cache.py --json
The script is read-only. With a range it uses git line-log; without one it uses file history with rename following. It also reads current authorship with blame. If it rejects a path or range, report that error and ask for a corrected target.
Before interpreting the JSON, read
references/reading-git-history.md. Its confidence rules prevent blame
ownership, correlation, and commit-message hints from becoming false certainty.
Read the JSON
region: normalized repository, current and historical paths, mode, range, and co-change thresholdintroduced_by: oldest commit in the selected historytimeline: commits ordered oldest to newest, with category, changed files, and detected renamesco_changed: files present beside the target in enough selected commitsauthors: current blamed lines and historical commit counts, kept separateintent_signals: issue references, reverts, workarounds, temporary markers, and unfinished-work markers found in commit messages
An empty signal list means the messages do not say why. It does not mean the change had no reason.
Write the report
Turn the JSON into a short "why this code exists" report:
- Bottom line. One or two sentences with the most likely explanation and a confidence label: high, medium, or low.
- Origin. Introducing hash, date, author, subject, and the neighboring files that make the initial purpose clearer.
- Timeline. Oldest to newest. Group mechanical edits when they do not change the story, but preserve reverts, fixes, and workarounds.
- Companion files. Explain repeated co-changes as a coupling clue. Do not
treat a one-off file in
changed_filesas a dependency. - Intent evidence. Quote short commit subjects or signal words. Label any conclusion beyond those facts as an inference.
- Change risk. Name the constraints, companion files, and unresolved temporary choices worth checking before an edit.
Keep hashes short in prose, but preserve enough characters to identify them. Do not dump the full JSON unless the user asks.
Evidence rules
- Current blame ownership is not proof of original authorship.
- The oldest selected commit is the region's introduction, not always the file's first commit.
- Repeated co-change suggests coupling; it does not prove a dependency.
- Commit categories are message heuristics, not verified issue types.
- "Temporary" and "workaround" are strong intent clues, but only the message author or linked discussion can confirm whether the constraint still applies.
- If the history is thin or messages are vague, say "the history shows" and "likely" instead of inventing a design rationale.
Follow-ups
End by offering one relevant follow-up, such as:
- "Want me to assess whether this looks deliberate or accidental?"
- "Want me to map what could break if this region changes?"
For a delibe
Häufige Fragen
Schickt er meinen Code irgendwohin?
Nein. Er läuft komplett lokal ohne Netzwerkaufrufe und schreibt nicht ins Repository.
Was braucht er von mir?
Den Ort des Repositorys, den Dateipfad und optional einen Zeilenbereich für den betreffenden Code.
Kann er die git-Historie umschreiben oder löschen?
Nein. Das Umschreiben oder Löschen der Historie gehört nicht zu diesem Skill.
Details
Originalbeschreibung des Autors
Reconstructs why code exists from local git history, including the introducing commit, later changes, current authors, repeated companion files, and likely intent. Use when the user asks "why does this code exist", "who wrote this function and why", or to "explain the history of this function" before a rewrite, refactor, or risky edit. Runs entirely locally.
Beliebtheit
- GitHub-Sterne
- 144k
- Platz im Ranking
- #674
- Lizenz
- Apache-2.0
- Aktualisiert
- 22.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
advisor-orchestrator-worker
144kHilft deinem Agenten, eine sehr große Aufgabe auf ein Team von KI-Modellen zu verteilen: Ein stärkeres Modell plant und prüft, günstigere erledigen die Arbeit.
dependency-doctor
144kHilft deinem Agenten, eine requirements.txt-, pyproject.toml- oder package.json-Datei auf typische Abhängigkeitsprobleme zu prüfen und kleine, prüfbare Korrekturen vorzuschlagen.
first-reader
144kHilft deinem Agenten, einen Entwurf zu testen, indem er simuliert, wie echte Leser ihn erleben, und zeigt, wo sie das Interesse verlieren und was sie behalten.
project-graveyard
144kHilft deinem Agenten, deinen Computer nach unfertigen Nebenprojekten zu durchsuchen, zu erklären, warum jedes ins Stocken geriet, und das lohnende auszuwählen.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.