commit-archaeologist
Ce qu’il fait
Ce skill parcourt l'historique git local d'un projet pour expliquer la raison d'être d'un bloc de code. Il s'adresse aux personnes qui ont besoin de contexte avant de modifier du code qu'elles n'ont pas écrit.
Quand l’utiliser
- ✓Quand vous demandez pourquoi une fonction ou un bloc de code existe.
- ✓Quand vous voulez savoir qui a écrit un morceau de code et ce qui a changé ensuite.
- ✓Quand vous prévoyez de réécrire du code et avez besoin de son historique au préalable.
Lien du skill
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/commit-archaeologist/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Pourquoi cette fonction existe-t-elle ? Fouille l'historique git et explique-la-moi avant que je la modifie.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill suit le fichier ou les lignes à travers les commits locaux, trouve le commit qui les a introduits et les modifications ultérieures, puis lit les messages de commit pour y trouver des indices sur l'intention. Tout se passe sur votre ordinateur.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Envoie-t-il mon code quelque part ?
Non. Il fonctionne entièrement en local, sans appel réseau, et n'écrit pas dans le dépôt.
Que doit-il recevoir de ma part ?
Le chemin du dépôt, le chemin du fichier et, si vous le souhaitez, une plage de lignes pour le code concerné.
Peut-il réécrire ou supprimer l'historique git ?
Non. Réécrire ou supprimer l'historique ne fait pas partie de ce que fait ce skill.
Détails
Description originale de l’auteur
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.
Popularité
- Étoiles GitHub
- 144k
- Position au classement
- #674
- Licence
- Apache-2.0
- Mis à jour
- 22/10/2026
Commentaires
- …
Autres skills de ce dépôt
advisor-orchestrator-worker
144kAide votre agent à répartir une très grande tâche entre une équipe de modèles IA : un modèle fort planifie et contrôle, les autres exécutent.
dependency-doctor
144kAide votre agent à vérifier un fichier de dépendances (requirements.txt, pyproject.toml, package.json) et proposer des corrections simples.
first-reader
144kAide votre agent à tester un brouillon en simulant la façon dont de vrais lecteurs le vivent, en montrant où ils risquent de décrocher et ce qu'ils retiennent.
project-graveyard
144kAide votre agent à repérer vos projets annexes inachevés, expliquer pourquoi chacun s'est arrêté et choisir celui qui mérite d'être terminé.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.