commit-archaeologist
Qué hace
Esta skill revisa el historial de git local de un proyecto para explicar la razón de un bloque de código. Es para personas que necesitan contexto antes de cambiar código que no escribieron.
Cuándo usarla
- ✓Cuando preguntas por qué existe una función o un bloque de código.
- ✓Cuando quieres saber quién escribió un fragmento de código y qué cambió después.
- ✓Cuando planeas reescribir algo y necesitas primero el historial del código.
Link de la skill
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/commit-archaeologist/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Por qué existe esta función? Revisa el historial de git y explícamelo antes de que la cambie.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Sigue el archivo o las líneas a través de los commits locales de git, encuentra el commit que introdujo el código y las ediciones posteriores, y lee los mensajes de commit para encontrar pistas sobre la intención. Todo se ejecuta en tu ordenador.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Envía mi código a alguna parte?
No. Se ejecuta por completo en local, sin llamadas de red, y no escribe en el repositorio.
¿Qué necesita de mí?
La ubicación del repositorio, la ruta del archivo y, opcionalmente, un rango de líneas del código en cuestión.
¿Puede reescribir o borrar el historial de git?
No. Reescribir o borrar el historial queda fuera de lo que hace esta skill.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 144 mil
- Posición en el ranking
- #674
- Licencia
- Apache-2.0
- Actualizada
- 22/10/2026
Comentarios
- …
Más skills de este repositorio
advisor-orchestrator-worker
144 milAyuda a tu agente a dividir una tarea muy grande entre un equipo de modelos de IA, con un modelo más potente que planifica y revisa mientras otros más económicos hacen el trabajo.
dependency-doctor
144 milAyuda a tu agente a revisar un archivo requirements.txt, pyproject.toml o package.json en busca de problemas habituales de dependencias y sugerir correcciones pequeñas y fáciles de revisar.
first-reader
144 milAyuda a tu agente a probar un borrador simulando cómo lo viven lectores reales, mostrando dónde podrían perder el interés y qué recordarían.
project-graveyard
144 milAyuda a tu agente a buscar en tu ordenador proyectos secundarios inacabados, explicar por qué se detuvo cada uno y elegir cuál merece la pena terminar.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.