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.
npx agentmods add skills/fmind/dot/repository-historynpx skills add fmind/dot --skill repository-historygit clone --depth 1 https://github.com/fmind/dotWrote 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.
[](https://agentmods.dev/skills/fmind/dot/repository-history)<a href="https://agentmods.dev/skills/fmind/dot/repository-history"><img src="https://agentmods.dev/badge/skills/fmind/dot/repository-history.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00048 | $0.01494 |
| Opus 5 | $0.00024 | $0.00747 |
| Sonnet 5 | $0.00010 | $0.00299 |
| Haiku 4.5 | $0.00005 | $0.00149 |
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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository History
Recover why tracked code exists from read-only Git history, cited and labeled by confidence, before a risky edit; systematic-debugging owns reproducing a current failure and diff-review owns defects in one change.
Workflow
-
Frame the question: Name the repository, tracked path, line range or symbol, proposed change, and the specific uncertainty; keep the scope small enough that every cited commit can be inspected.
-
Establish coverage: Use
gitto record branch,HEAD, dirty state, available refs, and whether the clone is shallow; say which evidence Git cannot supply when the path is untracked, generated, vendored, or absent atHEAD. Preserve staged, unstaged, and untracked work.git status --short git rev-parse HEAD git rev-parse --is-shallow-repository -
Seed line provenance: Treat movement and copy detection as clues, not guarantees; review a repository-owned
.git-blame-ignore-revsbefore honoring it and disclose ignored revisions.git blame --line-porcelain -w -M -C -C -C -L <start>,<end> -- <path> -
Trace the timeline: Use the smallest relevant view and name the exact revision range instead of treating every ref as one lineage.
git log --follow --format=fuller -- <path> # one file across renames git log -L <start>,<end>:<path> # commits that shaped a line range git log -S '<literal>' -p -- <path> # occurrence count of a string changed git log -G '<regex>' -p -- <path> # a diff added or removed matching lines -
Inspect candidate commits: Read subject, body, changed tests, schemas, migrations, configuration, and docs together; preserve reverts and behavior changes, and group mechanical edits only after verifying they are mechanical.
git show --format=fuller --find-renames --find-copies --stat <sha> -
Resolve ancestry anomalies: Check renames, splits, copies, bulk formatting, generated files, squashes, rebases, cherry-picks, backports, merge parents, and revert pairs; when line history stops at a rewrite, compare file history, pickaxe searches, and neighboring tests, and report the break rather than forcing one origin.
-
Find coupling clues: Count files that repeatedly changed with the target across behavior commits. Repeated co-change can suggest a test, schema, migration, or deployment constraint; one shared commit or a formatting sweep proves nothing.
-
Add remote rationale only when needed: Map an exact commit to its pull requests with
gh, then read the PR body, linked issue, reviews, inline comments, and changed files; paginate, disclose truncation, and treat a title match or semantic search alone as low confidence. -
Extract decision atoms: Separate facts, author-stated rationale, inference, contradiction, and unknowns; cite the commit, patch, test, issue, or review for every proposed constraint and check whether later changes superseded it.
-
Return the history note: Do not implement the change unless requested separately. Report:
- Bottom line: the most likely explanation, its confidence, and whether it changes the proposed plan.
- Scope and identity:
HEAD, working-copy boundary, path, lines or symbol, revision range, shallow state, and remote evidence checked. - Origin and timeline: introducing evidence, later changes, fixes, reverts, and moves with short hashes and dates.
- Decision atoms and companion evidence: each labeled fact, inference, contradiction, or unknown; co-changes stay correlation until code confirms the seam.
- Change risk: what could break, which evidence may be stale, and the smallest current test or human answer that resolves the rest.
- Evidence sources: local objects, remote discussion, runtime behavior, and human intent kept separate.
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.
- yesterday First seen · 74 lines · 48 tokens per session scan A 790211b19bb5
repository-history is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,494 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
go-stack
Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.
python-stack
Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.
hugo
Canonical Hugo static-site stack with the Hextra docs theme — Hugo Modules, mise tasks, dprint, lefthook, and GitHub Pages deploy. Use for documentation sites, project docs, and static websites.
k8s-local
Create and manage local Kubernetes clusters (k3d or kind) and deploy to them with kubectl, helm, helmfile, and skaffold. Use for local k8s cluster setup, dev loops, and debugging.
release
Cut or verify a versioned release — bump semver, generate the changelog with git-cliff, tag and publish on GitHub, or reconcile an already-published tag and assets.
chezmoi
Manage chezmoi dotfiles: source naming, Go templates, age-encrypted secrets, and the edit-source then apply/diff workflow.