repository-history

repository-history is a skill for Claude Code, Codex from fmind/dot. It costs 22 tokens per session (715 once invoked), scanned A, original, MIT.

A read-only way to use Git history to explain why tracked code exists. It traces files, lines, and symbols to earlier commits, changes, renames, reverts, authors, and related work.

In plain words
What is it for?
Use it to investigate when code was introduced, why it changed, who changed it, and whether related files or issues changed at the same time.
Why use it?
It helps answer questions about the reason behind unfamiliar or risky code before editing it. It preserves current work because it only examines repository history.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate when code was introduced, why it changed, who changed it, and whether related files or issues changed at the same time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/repository-history
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fmind/dot --skill repository-history
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for repository-history

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/repository-history/github.svg)](https://agentmods.dev/skills/fmind/dot/repository-history)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/repository-history"><img src="https://agentmods.dev/badge/skills/fmind/dot/repository-history/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for repository-history

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/repository-history"><img src="https://agentmods.dev/badge/skills/fmind/dot/repository-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 715 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00715
Opus 5.5 $0.00009 $0.00286
Sonnet 5.5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

Measured 12d ago against content hash a3e96d241a72, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

repository-history scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/repository-history/SKILL.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository History

Explain why tracked code exists from Git lineage and recorded rationale. Keep present-day debugging in systematic-debugging and external API choices in research-brief.

Workflow

  1. Bound the question: path, symbol, revision range, and the decision the history should inform; keep it small enough that every cited commit can be inspected.
  2. Trace evidence: follow investigation.md for coverage, blame, line history, pickaxe, renames, commit inspection, and exact PR mapping through gh.
  3. Report: the investigation's history note, rating confidence with the scale in Gotchas.

Gotchas

  • Investigation is read-only: Preserve the working tree and existing refs. Fetch missing objects into an isolated clone when needed for the requested investigation; use a disposable worktree for bisect experiments. Pulling into the working tree, rewriting history, and contacting authors require authority for those effects.
  • Current blame is not original authorship: a committer is not necessarily the designer, and a message can state intent without proving the constraint still holds; redact email addresses from returned evidence.
  • Rate confidence by evidence: High needs explicit rationale that agrees with the patch, tests, and later history; Medium has agreeing lineage and co-change without stated rationale; Low rests on blame, one title match, a semantic search, sparse history, or an ancestry break; otherwise say UNKNOWN.
  • Downgrade stale rationale: A revert describes a past decision; downgrade it when later architectural changes contradict the trade-off.
  • Missing history is not absence: Never infer that a missing commit or discussion does not exist; state the gap and lower confidence.

Documentation

Read the full file on GitHub · 36 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · -1 lines a3e96d241a72
  2. 14d ago Changed f33acd4759ad
  3. 15d ago Changed · -1 lines · -1 tokens per session 2df699b0cc0e
  4. 23d ago Changed 9b454ad09bfd
  5. 29d ago Changed da6005560ae9
  6. 1mo ago Changed · +1 lines · -14 tokens per session 44a7c0876a0c
  7. 1mo ago Changed ee40fab1cfab
  8. 1mo ago Changed · -37 lines · -11 tokens per session 893784bf299f
  9. 1mo ago First seen · 74 lines · 48 tokens per session scan A 790211b19bb5

Subscribe to this mod's changes

repository-history is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 715 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.