analyze-repo

analyze-repo is a skill for Claude Code from miles990/claude-software-skills. It costs 31 tokens per session (8,107 once invoked), scanned A, original, MIT.

A repository-analysis workflow that examines a code project and produces architecture, technical-debt, security, and stakeholder reports. Architecture describes how the project's parts fit together; technical debt is the future work created by shortcuts or aging code.

In plain words
What is it for?
Use it to analyze a local project or GitHub repository, explain how it works, document its architecture, assess security and technical debt, and suggest fixes with file-and-line evidence.
Why use it?
It helps people understand an unfamiliar repository and identify risks without manually tracing every file and dependency.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; positional $N argument.

Good fit Use it to analyze a local project or GitHub repository, explain how it works, document its architecture, assess security and technical debt, and suggest fixes with file-and-line evidence.

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

Made for: Claude Code.

Its marketplace also offers this one on its own, as the plugin analyze-repo/plugin install analyze-repo after adding the marketplace above.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/miles990/claude-software-skills/analyze-repo"><img src="https://agentmods.dev/badge/skills/miles990/claude-software-skills/analyze-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,107 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00031 $0.08107
Opus 5 $0.00015 $0.04054
Sonnet 5 $0.00006 $0.01621
Haiku 4.5 $0.00003 $0.00811

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

Security

Grade A, and why

analyze-repo scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl "localhost:3000/api/users/1'%20OR%20'1'='1"
tools-integrations/analyze-repo/SKILL.md · 759 lines

How it starts

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

/analyze-repo v3.0

企業級專案深度分析 — 分層視覺化 × 運作原理敘事 × 可執行建議

v3.0 新特性

特性 說明
🎯 三層分析架構 Executive(5分鐘)→ Architecture Story(30分鐘)→ Deep Dive(按需)
🎬 How It Works 新增「專案如何運作」敘事章節,快速理解核心流程
📊 視覺優先 每層以圖表開頭,文字輔助說明
🔗 證據鏈 所有發現附帶 file:line 程式碼引用
🛠️ 可執行建議 每項建議含:問題程式碼 → 修復範例 → 驗證步驟

核心價值

輸入 輸出
GitHub URL 或本地路徑 三層專業分析報告 — 視覺儀表板 + 運作原理敘事 + 可執行建議

適用場景

  • 🏢 技術主管/CTO — Layer 1 快速決策 + Layer 2 架構評估
  • 👨‍💻 開發者 — Layer 2 理解運作原理 + Layer 3 上手指南
  • 💰 投資人/Due Diligence — Layer 1 風險摘要 + Layer 2 技術深度
  • 🔍 Code Review — Layer 3 逐檔案分析 + 可執行修復建議

報告三層架構

┌─────────────────────────────────────────────────────────────────┐
│  📊 LAYER 1: Executive Dashboard(5-10 分鐘)                   │
│  ─────────────────────────────────────────────────────────────  │
│  目標:高層快速掌握專案狀態                                      │
│  • 單頁視覺儀表板(健康雷達圖 + 風險熱力圖)                      │
│  • 一句話定位 + 30 秒專案摘要                                    │
│  • 3 個關鍵發現卡片(含即時行動建議)                            │
│  • 競品定位矩陣                                                  │
├─────────────────────────────────────────────────────────────────┤
│  🏗️ LAYER 2: Architecture Story(30-60 分鐘)                   │
│  ─────────────────────────────────────────────────────────────  │
│  目標:理解專案如何運作                                          │
│  • 🎬「這個專案如何運作」流程敘事(核心創新)                     │
│  • C4 四層架構圖(Context → Container → Component → Code)       │
│  • 資料流序列圖(主要使用場景)                                   │
│  • 技術決策分析(為什麼用 X 而非 Y)                              │
│  • 8 維度品質評估詳解                                            │
├─────────────────────────────────────────────────────────────────┤
│  🔬 LAYER 3: Deep Dive Reference(按需查閱)                     │
│  ─────────────────────────────────────────────────────────────  │
│  目標:可執行的改進行動                                          │
│  • 每個發現附帶 file:line 證據鏈                                 │
│  • 可執行建議:問題碼 → 修復範例 → 驗證步驟                       │
│  • 技術債務修復清單(含優先級 + 工時估算)                        │
│  • 完整檔案結構與關鍵入口點                                      │
└─────────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 759 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. 11d ago First seen · 759 lines · 31 tokens per session scan A f14bcf908fd5

Subscribe to this mod's changes

analyze-repo is a skill published in the GitHub repository miles990/claude-software-skills (20 stars, last pushed 7mo ago), licensed MIT. It adds 31 tokens to every session and 8,107 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

code-to-diagram

Analyze codebases and automatically generate architecture diagrams, flowcharts, and org charts. Uses AST parsing to map import dependencies for Python, JS/TS, Go, and Java, outputting Mermaid or SVG files. Triggered when users ask to visualize code architecture, understand dependencies, draw a flowchart, or create a…

zebbern/claude-code-guide · 74 tokens

diagram-creator

Create professional diagrams using Mermaid, PlantUML, and other text-based diagram tools. Generate flowcharts, sequence diagrams, architecture diagrams, and more.

claude-office-skills/skills · 34 tokens

tech-diagram

Use this skill when the user wants to turn a description into a technical diagram — architecture diagrams, flowcharts, sequence diagrams, state machines, ER diagrams, class diagrams, or mind maps. Generates brand-consistent Mermaid that the DesireCore chat renders inline as SVG, with a semantic shape/arrow vocabulary…

desirecore/market · 210 tokens

code-to-chart

A code-structure diagram maker that examines how files and modules depend on one another. It supports Python, JavaScript, TypeScript, Go, and Java, and produces Mermaid text or SVG images.

serejaris/kimi-skills · 102 tokens

codebase-profiler

Automated codebase profiling skill. Scans existing systems to generate module dependencies, domain models, API inventory, DB relationships, and business flow catalogs.

pan94u/forge · 35 tokens

document-generation

Generates structured documents including architecture diagrams (Mermaid), usage manuals, progress reports, and API documentation from code analysis.

pan94u/forge · 27 tokens