history-analyzer

history-analyzer is a skill for Claude Code from lis186/SourceAtlas. It costs 52 tokens per session (344 once invoked), scanned A, original, MIT.

A skill that studies a repository's Git history, which records code changes over time. It identifies frequently changed files, files that often change together, and how knowledge is distributed among contributors.

In plain words
What is it for?
Use it to find frequently changed files, discover who knows a code area, identify files that change together, assess single-contributor risk, and prioritize refactoring.
Why use it?
It reveals risky code hotspots, hidden dependencies, and areas known by only one person. This helps you decide where review, documentation, or refactoring may be needed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the sourceatlas plugin — 14 skills shipped together

Good fit Use it to find frequently changed files, discover who knows a code area, identify files that change together, assess single-contributor risk, and prioritize refactoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lis186/sourceatlas/history-analyzer
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 lis186/SourceAtlas --skill history-analyzer
Clone the repo
git clone --depth 1 https://github.com/lis186/SourceAtlas

Made for: Claude Code.

Or install sourceatlas, the plugin that ships this one along with the rest of its 14 skills.

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 history-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/lis186/sourceatlas/history-analyzer/github.svg)](https://agentmods.dev/skills/lis186/sourceatlas/history-analyzer)
Your own site
<a href="https://agentmods.dev/skills/lis186/sourceatlas/history-analyzer"><img src="https://agentmods.dev/badge/skills/lis186/sourceatlas/history-analyzer/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 history-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/lis186/sourceatlas/history-analyzer"><img src="https://agentmods.dev/badge/skills/lis186/sourceatlas/history-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 344 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.00052 $0.00344
Opus 5.5 $0.00021 $0.00138
Sonnet 5.5 $0.00010 $0.00069
Haiku 4.5 $0.00005 $0.00034

Measured 3mo ago against content hash 342dc0be9c00, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

history-analyzer 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 3mo 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.

plugin/skills/history-analyzer/SKILL.md · 44 lines

What it actually says

History Analyzer

When to Use

Trigger this skill when the user:

  • Wants to find code hotspots (frequently changed files)
  • Needs to identify who knows specific code areas
  • Asks about bus factor or knowledge distribution
  • Wants to find hidden coupling between files
  • Asks "who should I ask about X"

Instructions

  1. Run /sourceatlas:history for the entire repo, or /sourceatlas:history <path> for specific directory
  2. Optionally specify time range: /sourceatlas:history . 6 for last 6 months
  3. Returns hotspots, coupling analysis, and contributor distribution

Command Formats

  • Full repo: /sourceatlas:history
  • Specific directory: /sourceatlas:history src/
  • With time range: /sourceatlas:history . 6 (last 6 months)

What User Gets

  • Hotspots: Files with most changes (complexity indicators)
  • Temporal Coupling: Files that always change together (hidden dependencies)
  • Recent Contributors: Who knows what areas
  • Bus Factor Risk: Single-contributor files
  • Priority actions for refactoring

Example Triggers

  • "What are the hotspots in this codebase?"
  • "Who knows the payment module best?"
  • "What files always change together?"
  • "Is there any bus factor risk?"
  • "Show me knowledge distribution"
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. 3mo ago First seen · 44 lines · 52 tokens per session scan A 342dc0be9c00

Subscribe to this mod's changes

history-analyzer is a skill published in the GitHub repository lis186/SourceAtlas (49 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 344 once invoked, about $0.0002 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-08-30.

Related

history-analyzer compared with skills from other repositories

history-analyzer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
history-analyzerlis186/SourceAtlasSkill491mo agoMITA52Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k3d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15kyesterdayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1kyesterdayMITA51Claude Code
comet-githubrpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex