repo-reading

repo-reading is a skill for Claude Code from yknnv/brownspec. It costs 57 tokens per session (1,316 once invoked), scanned A, original, MIT.

A method for learning the structure and coding conventions of an existing repository, meaning a project containing source code and its supporting files.

In plain words
What is it for?
Use it to map languages, dependencies, services, entry points, tests, migrations, and build settings. It can also investigate what a change affects, who calls a function, and which conventions the project follows.
Why use it?
It gives other development tasks reliable facts about the project before they suggest or make changes, while avoiding more costly inspection when it is unnecessary.

Skill for Claude Code

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

Part of the brownspec plugin — 4 skills, 4 commands shipped together

Good fit Use it to map languages, dependencies, services, entry points, tests, migrations, and build settings. It can also investigate what a change affects, who calls a function, and which conventions the project follows.

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

Made for: Claude Code.

Or install brownspec, the plugin that ships this one along with the rest of its 4 skills, 4 commands.

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-reading

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yknnv/brownspec/repo-reading"><img src="https://agentmods.dev/badge/skills/yknnv/brownspec/repo-reading.svg" alt="Reviewed on agentmods" width="80" 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,316 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.00057 $0.01316
Opus 5 $0.00028 $0.00658
Sonnet 5 $0.00011 $0.00263
Haiku 4.5 $0.00006 $0.00132

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

Security

Grade A, and why

repo-reading 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 9d 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/repo-reading/SKILL.md · 139 lines

How it starts

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

Reading an existing repository

Three levels, run lazily and in order. Each is more expensive than the last, so no level runs until something actually needs it. Most of a spec never needs level 3.

Everything Brownspec writes lives under .brownspec/ in the target repository:

.brownspec/
├── conventions.md          generated, safe to overwrite
├── policies.md             written by people, never overwritten
├── project-map.json        cache
└── features/<slug>/        spec.md · design.md · tasks.md · trace.json

Level 1 — Project map

Cost: cheap. Cached: .brownspec/project-map.json.

Establish the shape of the repository, nothing more:

  • Language, runtime version, dependency manager, and the manifest file that declares them
  • Top-level module or service layout, and what each is for in one line
  • Entry points — binaries, HTTP servers, workers, scheduled jobs, CLI
  • Where tests live and how they are run
  • Where database migrations live, if any
  • Build, lint, and CI configuration files

Invalidation. Record the dependency manifest's path and modification time in the cache. If the manifest has changed since, rebuild the map. Otherwise reuse it — do not re-read the repository to answer a question level 1 already answered.

Write it as JSON so later runs can read it without re-deriving anything:

{
  "generated": "<date>",
  "manifest": { "path": "pyproject.toml", "mtime": "<iso8601>" },
  "language": "python 3.12",
  "package_manager": "uv",
  "modules": [{ "path": "app/api", "role": "HTTP handlers" }],
  "entry_points": [{ "kind": "http", "path": "app/main.py" }],
  "tests": { "path": "tests", "runner": "pytest" },
  "migrations": { "path": "migrations", "tool": "alembic" }
}

Level 2 — Conventions by sample

Cost: moderate. Cached: .brownspec/conventions.md.

Do not summarize the whole codebase, and do not describe an ideal. Pick two or three modules closest to the work at hand and extract what they actually do:

Read the full file on GitHub · 139 lines

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. 9d ago First seen · 139 lines · 57 tokens per session scan A 28f299dbcd99

Subscribe to this mod's changes

repo-reading is a skill published in the GitHub repository yknnv/brownspec (2 stars, last pushed 12d ago), licensed MIT. It adds 57 tokens to every session and 1,316 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

review

Use in the Review phase before claiming any Java/Spring task is complete, fixed, or passing. Spawns the auditor subagents that check the implementation against every applicable skill, rule, and memory item, runs the test suite for fresh evidence, and re-spawns for at most two fix rounds before reporting what survives.…

taipt1504/claudehut · 81 tokens

cleanup-audit

Audit codebase for dead code, unused exports, orphaned files, and stale manifests.

jmagly/aiwg · 21 tokens

link-check

Verify @file references in AIWG skills and agents against the linking contract — per-file or corpus-wide, with optional auto-fix.

jmagly/aiwg · 29 tokens

audit-agents-skills

Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.

FlorianBruniaux/claude-code-ultimate-guide · 41 tokens

design-patterns

Detect, suggest, and evaluate GoF design patterns in TypeScript/JavaScript codebases. Use when refactoring code, applying singleton/factory/observer/strategy patterns, reviewing pattern quality, or finding stack-native alternatives for React, Angular, NestJS, and Vue.

FlorianBruniaux/claude-code-ultimate-guide · 59 tokens

pr-triage

4-phase PR backlog management with audit, deep code review, validated comments, and optional worktree setup. Use when triaging pull requests, catching up on pending code reviews, or managing a backlog of open PRs. Args: 'all' to review all, PR numbers to focus (e.g. '42 57'), 'en'/'fr' for language, no arg = audit…

FlorianBruniaux/claude-code-ultimate-guide · 86 tokens