Borrowing it
Nothing to install: this file belongs to ZoneMinder/zmNinjaNg. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ZoneMinder/zmNinjaNg/main/.claude/skills/mine-history/SKILL.mdgit clone --depth 1 https://github.com/ZoneMinder/zmNinjaNgWrote 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/zoneminder/zmninjang/mine-history)<a href="https://agentmods.dev/skills/zoneminder/zmninjang/mine-history"><img src="https://agentmods.dev/badge/skills/zoneminder/zmninjang/mine-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.
<a href="https://agentmods.dev/skills/zoneminder/zmninjang/mine-history"><img src="https://agentmods.dev/badge/skills/zoneminder/zmninjang/mine-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.1 | $0.00061 | $0.00960 |
| Opus 5 | $0.00030 | $0.00480 |
| Sonnet 5 | $0.00012 | $0.00192 |
| Haiku 4.5 | $0.00006 | $0.00096 |
Grade A, and why
mine-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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Commit History Miner
Overview
Verify that the instruction system (AGENTS.md, AGENTS.project.md,
agents/project/domain-context.md, playbooks) recorded the lessons the
repo actually paid for. The day-to-day self-improvement protocol captures
lessons one PR at a time; this skill is the periodic sweep that catches
what slipped through.
Core principle: every candidate carries commit-hash evidence. A lesson without a commit behind it is speculation, and speculation does not enter the instruction files.
When to Use
- "mine the history for lessons", "audit the agent files against history"
- After a busy stretch of fixes, or roughly monthly (see Cadence)
- After adopting this instruction system in a repo with existing history
Procedure
- Read what exists first. AGENTS.md, AGENTS.project.md, every file in
agents/project/. Only NEW lessons get reported; re-reporting a covered fact is noise that erodes trust in the sweep. - Scope the window. First run: full history. Later runs: since the
last mining commit (find it with
git log --grep="history-mined" --oneline). - Probe, in order of yield:
- Reverts:
git log --grep=revert -i --oneline. Each revert is a paid experiment; the lesson is what not to retry and what worked instead. - Fix chains: group
fix(<scope>):commits by scope; any scope with a disproportionate count is one misunderstanding surfacing repeatedly. Ask what stable fact would have prevented the class. - Churn files: rank files by fix-commit touches; read the fix bodies.
- Should-not-have-happened: fixes that an existing contract or gate should have caught. Post-gate violations mean the gate has a hole.
- Reverts:
- Tooling caution. Count with
git rev-list --count, never pipedwc(output wrappers have silently truncated pipelines here). Write long listings to a scratch file and read that. Sanity-check any suspiciously round number. - Output contract, four sections, every bullet with hashes:
- A: ready-to-paste
domain-context.mdentries, grouped by its existing section headers - B: contract or project-rule candidates (only for recurring classes; name the Owns/Path/Never/Gate you would write, with real paths)
- C: generic rule candidates (only stack-agnostic classes; expect zero most runs)
- D: checked-and-already-covered list, one line each, so the next run knows what was verified
- A: ready-to-paste
- Apply through the protocol. Additions land as a PR touching the
instruction files: domain entries verbatim, contracts with existing
gate paths, budget re-checked (
agents-contracts.test.tsenforces the word budget, hash validity, and privacy rules). Commit message includes the phrasehistory-minedso step 2 finds it next time.
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.
- 11d ago First seen · 81 lines · 61 tokens per session scan A 1acab46389af
mine-history is a skill published in the GitHub repository ZoneMinder/zmNinjaNg (108 stars, last pushed yesterday), licensed Apache-2.0. It adds 61 tokens to every session and 960 once invoked, about $0.0003 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-08-30.
Other skills, from other repositories
compiler-commit
Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.
agent-swarm-pr
Agent skill for swarm-pr - invoke with $agent-swarm-pr.
agent-pr-manager
Agent skill for pr-manager - invoke with $agent-pr-manager.
github-automation
GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.
ss-learn
Capture a human-approved UI design lesson as a privacy-minimized local StyleSeed candidate, review it, and prepare an opt-in share package without transmitting project code, prompts, screenshots, or brand data. Use when a person asks StyleSeed to remember, learn from, generalize, review, or prepare a reusable rule…
github-review-pr
Review GitHub pull requests with detailed, multi-perspective code analysis using parallel subagents. Use this skill whenever the user wants to review a PR, asks for code review on a pull request, mentions "review PR", "check this PR", "look at pull request", or references a PR number or GitHub PR URL. Do NOT use for…