agentleFS
Lum1104Lum1104/archaeologist/SKILL.md

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
  1. Distinctive:

    Use history to answer a current decision, not to produce a chronology.

    line 10
  2. Distinctive:

    Before recommending a material change:

    line 14
  3. Distinctive:

    Ask one or two concrete questions.

    line 18
  4. Distinctive:

    Check whether useful history exists.

    line 19
  5. Distinctive:

    Do not invoke a history review for a trivial edit whose behavior and intent are directly established.

    line 21
  6. Distinctive:

    When history is available, run the narrowest query that can answer the question before making the recommendation.

    line 25
  7. Distinctive:

    Find the live surface: Search code and tests for the symbol, behavior, error text, dependency names, and analogs.

    line 27
  8. Very specific:

    Add --follow for a likely single-file rename.

    line 37
  9. Distinctive:

    Check what invariant a regression test encodes rather than merely noting that a test exists.

    line 45
  10. Distinctive:

    Prefer an invariant encoded by a regression test over an unsupported commit-message claim, and a commit message over guessing from a patch …

    line 54
  11. Distinctive:

    Do not infer that an approach failed merely because the code later changed.

    line 56
  12. Distinctive:

    If history materially affects the work, use this compact handoff:

    line 58

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. State the decision history could change: remove a guard, preserve compatibility, widen a migration, or revise an estimate.
  2. Identify the smallest relevant surface: symbols, lines, files, tests, dependencies, and analogs.
  3. Ask one or two concrete questions. Prefer “What failure caused this retry guard?” over “What is the history of this file?”
  4. 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.

  1. Find the live surface. Search code and tests for the symbol, behavior, error text, dependency names, and analogs.
  2. 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/file

    Add --follow for a likely single-file rename. Use blame only as a pointer to a commit, never as proof of intent.

  3. 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/tests

    Check what invariant a regression test encodes rather than merely noting that a test exists.

  4. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.