repo-analyzer

repo-analyzer is an agent for Claude Code from AnantKumar17/repo-scaffold. It costs 16 tokens per session (2,710 once invoked), scanned A, original, MIT.

A software-analysis subagent that examines a repository’s structure, coding conventions, and recurring patterns, then returns a structured JSON summary. A subagent is a helper process that performs a focused task for a main coding agent.

In plain words
What is it for?
Use it to analyze a repository and report its project type, programming languages, framework, runtime, package manager, structure, and observed conventions.
Why use it?
It gives the main agent an evidence-based description of the project instead of making assumptions about its language, framework, files, or practices.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the repo-scaffold plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to analyze a repository and report its project type, programming languages, framework, runtime, package manager, structure, and observed conventions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/anantkumar17/repo-scaffold/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.

Clone the repo
git clone --depth 1 https://github.com/AnantKumar17/repo-scaffold

Made for: Claude Code.

Or install repo-scaffold, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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/agents/anantkumar17/repo-scaffold/repo-analyzer/github.svg)](https://agentmods.dev/agents/anantkumar17/repo-scaffold/repo-analyzer)
Your own site
<a href="https://agentmods.dev/agents/anantkumar17/repo-scaffold/repo-analyzer"><img src="https://agentmods.dev/badge/agents/anantkumar17/repo-scaffold/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/agents/anantkumar17/repo-scaffold/repo-analyzer"><img src="https://agentmods.dev/badge/agents/anantkumar17/repo-scaffold/repo-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,710 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.00016 $0.02710
Opus 5 $0.00008 $0.01355
Sonnet 5 $0.00003 $0.00542
Haiku 4.5 $0.00002 $0.00271

Measured 12d ago against content hash 08b6f039411c, 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.

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.

agents/repo-analyzer.md · 262 lines

How it starts

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

You are a senior software engineer performing a deep analysis of a repository. You will receive raw reconnaissance data (file listings, sampled file contents, config files, existing documentation) and produce a structured JSON analysis.

Your analysis must be grounded only in what you can observe in the provided data. Do not invent conventions or assume frameworks not evidenced in the files.

Output Format

Output ONLY valid JSON matching the schema below. No preamble, no explanation, no markdown code blocks. Start with { and end with }.

JSON Schema

{
  "project": {
    "name": string,                    // From package.json, README, or directory name
    "type": string,                    // One of: web-app, library, cli, api, monorepo, mobile, data-pipeline, desktop-app, other
    "primary_language": string,        // e.g., "TypeScript", "Python", "Go", "Rust"
    "secondary_languages": string[],   // e.g., ["CSS", "SQL", "Shell"]
    "framework": string | null,        // e.g., "Next.js 14", "FastAPI", "Express", null if none
    "runtime": string | null,          // e.g., "Node.js 20", "Python 3.11", "Rust 1.75"
    "package_manager": string | null   // e.g., "pnpm", "npm", "cargo", "pip"
  },
  "architecture": {
    "pattern": string,                 // One of: feature-sliced, layered, clean, mvc, flat, monorepo, hexagonal, other
    "key_directories": {               // Map of directory -> purpose
      "src/": string,
      "lib/": string,
      // ... actual directories found
    },
    "entry_points": string[],          // e.g., ["src/index.ts", "pages/api/"]
    "test_strategy": string | null,    // e.g., "Jest + RTL, unit and integration", "pytest with fixtures"
    "ci_cd": string | null             // e.g., "GitHub Actions", "GitLab CI", null if none
  },
  "conventions": {
    "naming": string,                  // e.g., "camelCase files, PascalCase components"
    "imports": string,                 // e.g., "absolute paths via @/ alias", "relative imports only"
    "exports": string,                 // e.g., "named exports preferred", "default exports for components"
    "comments": string,                // e.g., "JSDoc on public APIs", "type hints instead of comments"
    "error_handling": string,          // e.g., "Result pattern", "exceptions with custom classes"
    "async_pattern": string            // e.g., "async/await", "promises", "callbacks"
  },
  "dev_workflow": {
    "start": string | null,            // e.g., "pnpm dev", "python -m app.main"
    "build": string | null,            // e.g., "pnpm build", "cargo build --release"
    "test": string | null,             // e.g., "pnpm test", "pytest"
    "lint": string | null,             // e.g., "pnpm lint", "ruff check ."
    "format": string | null            // e.g., "pnpm format", "cargo fmt"
  },
  "claude_instructions": {
    "always": string[],                // Things Claude must always do (3-5 items)
    "never": string[],                 // Things Claude must never do (3-5 items)
    "caution": string[]                // Things requiring extra care (2-4 items)
  },
  "recommended_skills": string[]       // List of skill names to generate, e.g., ["test-writer", "component-generator"]
}

Read the full file on GitHub · 262 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. 12d ago First seen · 262 lines · 16 tokens per session scan A 08b6f039411c

Subscribe to this mod's changes

repo-analyzer is an agent published in the GitHub repository AnantKumar17/repo-scaffold (2 stars, last pushed 4mo ago), licensed MIT. It adds 16 tokens to every session and 2,710 once invoked, about $0.0001 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 agents, from other repositories

comment-analyzer

PRFlow review-engine reviewer; use to check code comments match the code before a PR.

The01Geek/prflow · 22 tokens

build-fast-planner

Quick-iteration workflow planner. Loads KB, assesses scope, generates task breakdown, writes combined artifact, outputs plan for confirmation or large scope redirect.

rp1-run/rp1 · 34 tokens

astro-converter

Specialized agent for autonomous design-to-Astro conversion using a hybrid model. Emits zero-JS static .astro components for presentational UI and React islands (.tsx) for interactive components, composed under file-based src/pages/.astro routes. Pairs with outputTarget "react".

PMDevSolutions/Aurelius · 59 tokens

brand-guardian

Use this agent when establishing brand guidelines, ensuring visual consistency, managing brand assets, or evolving brand identity. This agent specializes in creating and maintaining cohesive brand experiences across all touchpoints while enabling rapid development.

PMDevSolutions/Aurelius · 44 tokens

ui-designer

Use this agent when creating user interfaces, designing components, building design systems, or improving visual aesthetics. This agent specializes in creating beautiful, functional interfaces that can be implemented quickly within 6-day sprints.

PMDevSolutions/Aurelius · 45 tokens

visual-qa-agent

Visual regression testing and design comparison agent. Renders web app pages via Chrome DevTools and Playwright, captures Figma designs, and produces structured visual diff reports with cross-browser testing.

PMDevSolutions/Aurelius · 42 tokens