Automated summary
Reconstructs why a file or line range exists from local git history, including the introducing commit, later changes, current authors, repeatedly co-changed files, and intent clues in commit messages.
Strengths
- Combines git line-log, rename following, and blame into a structured JSON chronology
- Identifies files that repeatedly change alongside the target as a coupling signal
- Extracts explicit intent signals (issue references, reverts, workarounds, unfinished-work markers) without over-claiming
- Runs entirely locally with no network calls, API keys, or repository writes
Limitations
- Only works on locally cloned repositories, not remote uncloned ones
- Scoped to a single file or line range, not project-wide architecture questions
- An empty signal list only means the messages are silent, not that the change had no reason
Use it before a rewrite, refactor, or risky edit when you need the historical constraints behind a surprising block of code.
Avoid it when the user just wants raw blame output or a commit list, or when the task is to squash, delete, or rewrite git history.
Security analysis
CautionThe skill is intended to run locally and read Git history only, with no network calls or repository writes claimed. However, it requires executing a local Python script through the shell, and the script source is not available for verification, so the appropriate rating is caution rather than safe.
- •Declares no allowed-tools but instructs running a local Python script via bash.
- •Referenced scripts/archaeologist.py is not included in the provided SKILL.md, so its implementation cannot be audited here.
- •Reads local Git repository history and commit metadata, which may include sensitive information in commit messages or paths.
Examples
Why does this code exist? Look at src/cache.py lines 40-72 and reconstruct the history before I refactor it.Who introduced the retry logic in src/client.py and what changed afterwards? Give me a confidence-rated explanation.I'm about to rewrite the whole of src/auth.py — trace its full git history locally and tell me which companion files keep changing with it.name: commit-archaeologist description: >- 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. license: Apache-2.0 metadata: author: "Matt Van Horn" version: "1.0.0" source: "https://github.com/Shubhamsaboo/awesome-llm-apps"
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 deliberate-choice question, weigh repeated edits, issue references, reverts, and explicit constraint words. For a change-risk question, inspect the repeated co-change files and the last behavior-changing commits before proposing edits. Do not modify code until the user asks.
Files
scripts/archaeologist.py: offline git history walker and JSON report builderreferences/reading-git-history.md: interpretation and confidence guide
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/commit-archaeologist-mte1lkv6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/commit-archaeologist-mte1lkv6/download' --output '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md.part' && mv '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md.part' '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md' && test -s '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/commit-archaeologist' && cp -R '.skill-downloads/commit-archaeologist-mte1lkv6' '.claude/skills/commit-archaeologist'Cursor
test -f '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md' && test -s '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/commit-archaeologist' && cp -R '.skill-downloads/commit-archaeologist-mte1lkv6' '.cursor/skills/commit-archaeologist'Codex
test -f '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md' && test -s '.skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/commit-archaeologist' && cp -R '.skill-downloads/commit-archaeologist-mte1lkv6' '.agents/skills/commit-archaeologist'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/commit-archaeologist-mte1lkv6'openskills read 'commit-archaeologist-mte1lkv6'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/commit-archaeologist-mte1lkv6/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.