repo-analyzer

repo-analyzer is a skill for Claude Code, Codex from PranitMohnot/repo-learner-suite. It costs 119 tokens per session (2,780 once invoked), scanned A, original, MIT.

A codebase-reading tool that turns a repository into a structured learning curriculum, reference cheatsheet, and quiz bank. A repository is the project's files and history stored together.

In plain words
What is it for?
Use it to scan a repository, explain its purpose and architecture, map important modules, and create study materials for the project's language and code.
Why use it?
It helps someone learn an unfamiliar codebase without reading every file without a plan.

Skill for Claude CodeCodex

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

Good fit Use it to scan a repository, explain its purpose and architecture, map important modules, and create study materials for the project's language and code.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pranitmohnot/repo-learner-suite/repo-analyzer"><img src="https://agentmods.dev/badge/skills/pranitmohnot/repo-learner-suite/repo-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,780 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.00119 $0.02780
Opus 5 $0.00060 $0.01390
Sonnet 5 $0.00024 $0.00556
Haiku 4.5 $0.00012 $0.00278

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

Security

Grade A, and why

repo-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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/curriculum_html.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

repo-analyzer/SKILL.md · 301 lines

How it starts

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

Repo Analyzer

Deep-scan a codebase and produce the foundational learning artifacts. This is the most token-expensive skill in the suite — it reads most of the codebase before generating anything.

Read the Shared Contracts in repo-learner/SKILL.md (manifest schema, step marker convention, reconciliation rules) before starting. This skill writes the artifacts those contracts govern.

Analysis Flow

Read learn/internals/.config.json:repo.language first (set by the orchestrator in Step 0 of its front-loaded questions). The analyzer reads code in any language; the language only shapes which file extensions are worth scanning, what library() / import patterns look like, and what "runnable example" means for the cheatsheet.

Follow the global→local cognitive flow identified in codebase comprehension research (Gao et al., 2025 — CodeMap):

Level 1: Global (Project Overview)

  • Read README, docs/, CONTRIBUTING, build config.
  • Identify: project purpose, target users, key dependencies, ecosystem position.
  • Output: Section 0 of learn/curriculum.md (see below).

Level 2: Structural (Architecture)

  • Map module/package structure via directory tree + imports.
  • Identify: core abstractions, data flow, entry points, extension points.
  • Read tests directory for coverage map.
  • Output: architecture parts of curriculum sections.

Level 3: Local (Functions and Variables)

  • Deep-read public API, key internal modules, examples.
  • Identify: function signatures, patterns, gotchas, underdocumented behavior.
  • Output: detailed curriculum sections, cheatsheet, quiz bank.

Output Artifacts

learn/curriculum.md — THE document

One file. The learner scrolls through it top to bottom, clicking out to notebooks/terminal/source files only when a step calls for it. There is no separate README, no separate overview, no separate path table.

Structure
Section 0: Overview          (plain-English big picture — see below)
Section 1.1, 1.2, …          (Phase 1: usage)
Section 2.1, 2.2, …          (Phase 2: internals)
Section 3.1, 3.2, …          (Phase 3: extension)

Read the full file on GitHub · 301 lines

Files

What ships with it

2 files 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 First seen · 301 lines · 119 tokens per session scan A 88f9f59067fd

Subscribe to this mod's changes

repo-analyzer is a skill published in the GitHub repository PranitMohnot/repo-learner-suite (4 stars, last pushed 4mo ago), licensed MIT. It adds 119 tokens to every session and 2,780 once invoked, about $0.0006 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

learning-codebases

Use when the user wants to learn, understand, study, map, onboard to, or walk through an unfamiliar codebase or software project, especially when explanations should suit a beginner with basic Python knowledge.

Eijnewgnaw/learning-codebases · 44 tokens

lov-hanzi-lens

A research and infographic workflow for explaining one Chinese character, including its pronunciation, written form, history, meanings, and use in classical texts.

lovstudio/skills · 82 tokens

lov-subtitle-freedom

Create learner-friendly English subtitles with level-aware glosses and optional spoiler-safe subtitle sidecars.

lovstudio/skills · 25 tokens

lov-thesis-polish

An academic editing tool for improving an MBA thesis or dissertation in Markdown, a plain-text format for structured documents. It addresses language, argument structure, logic, research contributions, and formatting.

lovstudio/skills · 90 tokens

learning-assistant

An interactive study assistant that turns a learning goal into a structured plan and guides the learner through it. It uses a local knowledge graph, a connected record of topics and learning state, as its long-term memory.

cafe3310/public-agent-skills · 26 tokens

reading-notes

Process a book or article into structured progressive summary notes saved to the resources folder. Use when the user has finished reading something and wants to capture structured notes — 'I just finished reading X', 'take notes on this book'. Do NOT use for: fetching and summarizing a URL now (use summarize)…

onebrain-ai/onebrain · 80 tokens