archaeologist
Skill3 starsChanged 4 months agoMITView on GitHub
Use when changing unusual or defensive code, mature APIs, dependencies, or architecture, or estimating a migration where Git history may reveal hidden constraints.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use history to answer a current decision, not to produce a chronology.
- Distinctive: line 14
Before recommending a material change:
- Distinctive: line 18
Ask one or two concrete questions.
- Distinctive: line 19
Check whether useful history exists.
- Distinctive: line 21
Do not invoke a history review for a trivial edit whose behavior and intent are directly established.
- Distinctive: line 25
When history is available, run the narrowest query that can answer the question before making the recommendation.
- Distinctive: line 27
Find the live surface: Search code and tests for the symbol, behavior, error text, dependency names, and analogs.
- Very specific: line 37
Add --follow for a likely single-file rename.
- Distinctive: line 45
Check what invariant a regression test encodes rather than merely noting that a test exists.
- Distinctive: line 54
Prefer an invariant encoded by a regression test over an unsupported commit-message claim, and a commit message over guessing from a patch …
- Distinctive: line 56
Do not infer that an approach failed merely because the code later changed.
- Distinctive: line 58
If history materially affects the work, use this compact handoff:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Archaeologist
Your codebase has a past. Read the part that matters.
Use history to answer a current decision, not to produce a chronology. Treat it as evidence about constraints and prior attempts, never as authority over current requirements.
Frame the investigation
Before recommending a material change:
- State the decision history could change: remove a guard, preserve compatibility, widen a migration, or revise an estimate.
- Identify the smallest relevant surface: symbols, lines, files, tests, dependencies, and analogs.
- Ask one or two concrete questions. Prefer “What failure caused this retry guard?” over “What is the history of this file?”
- Check whether useful history exists. If it is shallow, missing, or inaccessible, report this and continue from current evidence without inventing a past.
Do not invoke a history review for a trivial edit whose behavior and intent are directly established.
Follow the evidence trail
When history is available, run the narrowest query that can answer the question before making the recommendation.
- Find the live surface. Search code and tests for the symbol, behavior, error text, dependency names, and analogs.
Locate origin and change points. Choose the query that matches the question:
git log --oneline -- path/to/file git log -S'ExactToken' --oneline --all -- path/to/area git log -G'RelevantPattern' --oneline --all -- path/to/area git blame -L START,END -- path/to/fileAdd
--followfor a likely single-file rename. Use blame only as a pointer to a commit, never as proof of intent.Read only decisive commits. Inspect the patch, message, changed-file list, parent when needed, and tests introduced with the behavior:
git show --stat COMMIT git show COMMIT -- path/to/code path/to/testsCheck what invariant a regression test encodes rather than merely noting that a test exists.
- Check reversals and analogs when relevant. Inspect reverts together with the commits they revert. For a migration or estimate, inspect several genuinely similar changes and note compatibility work, rollout, migrations, tests, and follow-up fixes.
Expand only while a decision-relevant question remains unresolved. Stop when another history query is unlikely to change the decision; avoid exhaustive logs, author profiles, and unrelated chronology.
Stay read-only throughout the investigation. Do not rewrite history, restore files, or discard working-tree changes.
Calibrate the conclusion
Prefer an invariant encoded by a regression test over an unsupported commit-message claim, and a commit message over guessing from a patch or blame. Verify that a historical constraint still applies to the current environment before preserving it.
Do not infer that an approach failed merely because the code later changed. Do not treat a repeated pattern as a mandatory convention. Never claim that history proves author intent, production impact, or effort without direct support.
If history materially affects the work, use this compact handoff:
Evidence: <directly observed commit, diff, test, revert, or issue>
Inference: <explanation derived from that evidence>
Decision impact: <how the current proposal changes>
Unknown: <material question history cannot answer>Otherwise report only: “No material historical evidence found.” Do not pad the handoff.
For estimates, present a range and name historically observed scope drivers. Treat diff size and elapsed commit dates as weak proxies, never as a precise schedule or effort measurement.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

