learn

learn is a command for coding agents from PranitMohnot/repo-learner-suite. It costs 0 tokens per session (290 once invoked), scanned A, original, MIT.

A learning command suite for studying an unfamiliar code repository through analysis, exercises, tutoring, quizzes, and progress tracking.

In plain words
What is it for?
Use it to inspect a project, generate practice exercises, get help with sections, take quizzes, or check learning progress.
Why use it?
It turns a repository into a guided learning path and records which sections have been completed.

Command

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 commands/pranitmohnot/repo-learner-suite/learn
Clone the repo
git clone --depth 1 https://github.com/PranitMohnot/repo-learner-suite

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 learn

README.md
[![agentmods](https://agentmods.dev/badge/commands/pranitmohnot/repo-learner-suite/learn.svg)](https://agentmods.dev/commands/pranitmohnot/repo-learner-suite/learn)
Your own site
<a href="https://agentmods.dev/commands/pranitmohnot/repo-learner-suite/learn"><img src="https://agentmods.dev/badge/commands/pranitmohnot/repo-learner-suite/learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 290 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.00000 $0.00290
Opus 5 $0.00000 $0.00145
Sonnet 5 $0.00000 $0.00058
Haiku 4.5 $0.00000 $0.00029

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

Security

Grade A, and why

learn 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 5d 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.

repo-learner/commands/learn.md · 31 lines

What it actually says

/learn

Entry point for the repo-learner skill suite.

Routing

Parse the first word of $ARGUMENTS as the subcommand. If empty, check state and recommend ONE action (see orchestrator SKILL.md for the logic — never dump a menu).

Subcommand Sub-skill
analyze [path] [--focus topic] repo-analyzer
exercises [section] exercise-gen
tutor [section-id] code-tutor
quiz [section-id|--full] code-quiz
status Parse learn/README.md checkboxes, summarize progress

Fresh run (no learn/ directory)

  1. Auto-detect: primary language, framework, lockfile/package manager.
  2. MANDATORY: Ask 3-4 questions in one call (see orchestrator SKILL.md "Front-Loaded Questions"). Do NOT skip this and assume defaults — the user has preferences (especially env manager) that you cannot infer.
  3. Save answers to learn/internals/.config.json.
  4. Hand off to repo-analyzer, then exercise-gen. No stops between.

Status

Parse checkbox state from learn/README.md table rows. Count checked vs unchecked per phase. Suggest the next unchecked section.

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. 5d ago First seen · 31 lines · 0 tokens per session scan A ecec017cc6b5

Subscribe to this mod's changes

learn is a command published in the GitHub repository PranitMohnot/repo-learner-suite (4 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 290 tokens. 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.