analyze-knowledge

analyze-knowledge is a skill for Claude Code, Codex from paultyng/skill-issue. It costs 57 tokens per session (1,856 once invoked), scanned A, original, MIT.

A tool that examines Git history, the record of changes in a code repository, to find people familiar with code areas and measure how concentrated that knowledge is. It can also suggest reviewers for changed files.

In plain words
What is it for?
Use it to suggest pull-request reviewers, find experts for a directory or code area, assess the repository’s knowledge spread, and identify bus-factor risk.
Why use it?
It helps teams find appropriate reviewers and spot areas where only one or a few people understand the code. It accounts for author aliases, bots, and generated files when analyzing history.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/paultyng/skill-issue/analyze-knowledge
Any agent
npx skills add paultyng/skill-issue --skill analyze-knowledge
Clone the repo
git clone --depth 1 https://github.com/paultyng/skill-issue

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 analyze-knowledge

README.md
[![agentmods](https://agentmods.dev/badge/skills/paultyng/skill-issue/analyze-knowledge.svg)](https://agentmods.dev/skills/paultyng/skill-issue/analyze-knowledge)
Your own site
<a href="https://agentmods.dev/skills/paultyng/skill-issue/analyze-knowledge"><img src="https://agentmods.dev/badge/skills/paultyng/skill-issue/analyze-knowledge.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00057 $0.01856
Opus 5 $0.00028 $0.00928
Sonnet 5 $0.00011 $0.00371
Haiku 4.5 $0.00006 $0.00186

Measured 3d ago against content hash 75184962999d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analyze-knowledge 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 3d 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/analyze-knowledge/SKILL.md · 181 lines

How it starts

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

Analyze Knowledge

Analyze git history to surface code expertise, suggest reviewers, and assess knowledge concentration risk.

1. Determine Mode and Scope

Auto-detect from user intent:

Mode Triggers Default scope
Reviewer "who should review", "find reviewers", "suggest reviewers" Changed files: git diff --name-only $(git merge-base HEAD main)..HEAD
Distribution "who knows", "lottery factor", "bus factor", "knowledge spread", "expertise" User-specified directory, or repo root

If scope is ambiguous, ask. Accept:

  • Explicit paths or globs
  • A PR number (extract changed files via gh pr diff --name-only)
  • A directory
  • "whole repo" (default for distribution mode)

Exclude generated files: check for // Code generated or DO NOT EDIT headers.

2. Normalize Authors

# Check for .mailmap
if [ -f .mailmap ]; then
  MAILMAP_FLAG="--use-mailmap"
else
  MAILMAP_FLAG=""
fi
  • Pass $MAILMAP_FLAG to all git commands.
  • If no .mailmap, group by author name (not email) to merge multiple addresses.
  • Filter bots: exclude authors matching [bot], dependabot, renovate, github-actions, or emails containing [email protected] with non-human names.

2.5. Fan out for broad scope

When scope is large, delegate per-area data collection to subagents so main context never sees raw blame/log output for hundreds of files. Aligns with parallelize-subagents (delegate when output would flood main context) and delegate-investigation (read-only history work belongs in Explore).

Trigger Strategy
Distribution mode, "whole repo" or >20 directories in scope One Explore subagent per top-level directory; each runs its tiered collection and returns the per-area summary only.
Reviewer mode, >20 changed files Batch files in groups of ~10; one Explore subagent per batch returning per-file expert lists.
Tier 3 line-level on >5 files One Explore subagent per file (blame output is voluminous).
Anything smaller Run inline. Don't spin up a subagent for one git shortlog.

Read the full file on GitHub · 181 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. 3d ago First seen · 181 lines · 57 tokens per session scan A 75184962999d

Subscribe to this mod's changes

analyze-knowledge is a skill published in the GitHub repository paultyng/skill-issue (9 stars, last pushed 22d ago), licensed MIT. It adds 57 tokens to every session and 1,856 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-31.

Related

Other skills, from other repositories

promptscript

PromptScript language expert for reading, writing, modifying, and troubleshooting .prs files. Use when working with PromptScript syntax, creating or editing .prs files, adding blocks like @identity, @standards, @restrictions, @shortcuts, @skills, or @agents, configuring promptscript.yaml, resolving compilation errors…

mrwogu/promptscript · 135 tokens

thesis-control

Use when AI-assisted thesis edits risk claim drift, scope creep, loss of author control, or repeated revisions that fail to converge; provides spine cards, edit contracts, drift audits, revision escalation, and human gates.

yha9806/academic-writing-toolkit · 47 tokens

helius-jupiter

Skill "helius-jupiter" from helius-labs/core-ai, covering helius x jupiter — build defi apps on solana, mcp router surface, prerequisites, 1. helius mcp server and 2. jupiter api key.

helius-labs/core-ai · 0 tokens

argument-governance

Build and audit the manuscript argument system: intent, gap-contribution alignment, hierarchical claims, evidence balance, limitations, and reviewer attack surfaces. Use when a paper, thesis chapter, review article, or rebuttal needs explicit intent registers, contribution chains, claim hierarchy, argument maps…

yha9806/academic-writing-toolkit · 81 tokens

verify

Fact-check claims encountered during reading — dates, names, events, citations. Use when encountering historical facts or disputed claims.

yha9806/academic-writing-toolkit · 26 tokens

map

Show or update the mapping between literature and thesis chapters — which sources support which arguments. Use for tracking coverage.

yha9806/academic-writing-toolkit · 24 tokens