repo-scan
Every ecosystem has its own dependency manager, but no tool looks across C++, Android, iOS, and Web to tell you: how much code is actually yours, what's third-party, and what's dead weight.
When to Use
- Taking over a large legacy codebase and need a structural overview
- Before major refactoring — identify what's core, what's duplicate, what's dead
- Auditing third-party dependencies embedded directly in source (not declared in package managers)
- Preparing architecture decision records for monorepo reorganization
Installation
# Fetch only the pinned commit for reproducibility
mkdir -p ~/.claude/skills/repo-scan
git init repo-scan
cd repo-scan
git remote add origin https://github.com/haibindev/repo-scan.git
git fetch --depth 1 origin 2742664
git checkout --detach FETCH_HEAD
cp -r . ~/.claude/skills/repo-scan
Review the source before installing any agent skill.
Core Capabilities
| Capability |
Description |
| Cross-stack scanning |
C/C++, Java/Android, iOS (OC/Swift), Web (TS/JS/Vue) in one pass |
| File classification |
Every file tagged as project code, third-party, or build artifact |
| Library detection |
50+ known libraries (FFmpeg, Boost, OpenSSL…) with version extraction |
| Four-level verdicts |
Core Asset / Extract & Merge / Rebuild / Deprecate |
| HTML reports |
Interactive dark-theme pages with drill-down navigation |
| Monorepo support |
Hierarchical scanning with summary + sub-project reports |
Analysis Depth Levels
| Level |
Files Read |
Use Case |
fast |
1-2 per module |
Quick inventory of huge directories |
standard |
2-5 per module |
Default audit with full dependency + architecture checks |
deep |
5-10 per module |
Adds thread safety, memory management, API consistency |
full |
All files |
Pre-merge comprehensive review |
How It Works
- Classify the repo surface: enumerate files, then tag each as project code, embedded third-party code, or build artifact.
- Detect embedded libraries: inspect directory names, headers, license files, and version markers to identify bundled dependencies and likely versions.
- Score each module: group files by module or subsystem, then assign one of the four verdicts based on ownership, duplication, and maintenance cost.
- Highlight structural risks: call out dead-weight artifacts, duplicated wrappers, outdated vendored code, and modules that should be extracted, rebuilt, or deprecated.
- Produce the report: return a concise summary plus the interactive HTML output with per-module drill-down so the audit can be reviewed asynchronously.
Examples
On a 50,000-file C++ monorepo:
- Found FFmpeg 2.x (2015 vintage) still in production
- Discovered the same SDK wrapper duplicated 3 times
- Identified 636 MB of committed Debug/ipch/obj build artifacts
- Classified: 3 MB project code vs 596 MB third-party
Best Practices
- Start with
standard depth for first-time audits
- Use
fast for monorepos with 100+ modules to get a quick inventory
- Run
deep incrementally on modules flagged for refactoring
- Review the cross-module analysis for duplicate detection across sub-projects
Links
Source: affaan-m/ECC → skills/repo-scan/SKILL.md
Also appears in: hashgraph-online/awesome-codex-plugins/plugins/Colin4k1024/tsp/skills/repo-scan/SKILL.md
1---
2name: repo-scan-2
3description: "Cross-stack source code asset audit — classifies every file, detects embedded third-party libraries, and delivers actionable four-level verdicts per module with interactive HTML reports."
4category: security-and-compliance
5source_repo: affaan-m/ECC
6source_path: "skills/repo-scan/SKILL.md"
7source_url: https://github.com/affaan-m/ECC/blob/HEAD/skills/repo-scan/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/repo-scan-2
10---
11
12# repo-scan
13
14> Every ecosystem has its own dependency manager, but no tool looks across C++, Android, iOS, and Web to tell you: how much code is actually yours, what's third-party, and what's dead weight.
15
16## When to Use
17
18- Taking over a large legacy codebase and need a structural overview
19- Before major refactoring — identify what's core, what's duplicate, what's dead
20- Auditing third-party dependencies embedded directly in source (not declared in package managers)
21- Preparing architecture decision records for monorepo reorganization
22
23## Installation
24
25```bash
26# Fetch only the pinned commit for reproducibility
27mkdir -p ~/.claude/skills/repo-scan
28git init repo-scan
29cd repo-scan
30git remote add origin https://github.com/haibindev/repo-scan.git
31git fetch --depth 1 origin 2742664
32git checkout --detach FETCH_HEAD
33cp -r . ~/.claude/skills/repo-scan
34```
35
36> Review the source before installing any agent skill.
37
38## Core Capabilities
39
40| Capability | Description |
41|---|---|
42| **Cross-stack scanning** | C/C++, Java/Android, iOS (OC/Swift), Web (TS/JS/Vue) in one pass |
43| **File classification** | Every file tagged as project code, third-party, or build artifact |
44| **Library detection** | 50+ known libraries (FFmpeg, Boost, OpenSSL…) with version extraction |
45| **Four-level verdicts** | Core Asset / Extract & Merge / Rebuild / Deprecate |
46| **HTML reports** | Interactive dark-theme pages with drill-down navigation |
47| **Monorepo support** | Hierarchical scanning with summary + sub-project reports |
48
49## Analysis Depth Levels
50
51| Level | Files Read | Use Case |
52|---|---|---|
53| `fast` | 1-2 per module | Quick inventory of huge directories |
54| `standard` | 2-5 per module | Default audit with full dependency + architecture checks |
55| `deep` | 5-10 per module | Adds thread safety, memory management, API consistency |
56| `full` | All files | Pre-merge comprehensive review |
57
58## How It Works
59
601. **Classify the repo surface**: enumerate files, then tag each as project code, embedded third-party code, or build artifact.
612. **Detect embedded libraries**: inspect directory names, headers, license files, and version markers to identify bundled dependencies and likely versions.
623. **Score each module**: group files by module or subsystem, then assign one of the four verdicts based on ownership, duplication, and maintenance cost.
634. **Highlight structural risks**: call out dead-weight artifacts, duplicated wrappers, outdated vendored code, and modules that should be extracted, rebuilt, or deprecated.
645. **Produce the report**: return a concise summary plus the interactive HTML output with per-module drill-down so the audit can be reviewed asynchronously.
65
66## Examples
67
68On a 50,000-file C++ monorepo:
69- Found FFmpeg 2.x (2015 vintage) still in production
70- Discovered the same SDK wrapper duplicated 3 times
71- Identified 636 MB of committed Debug/ipch/obj build artifacts
72- Classified: 3 MB project code vs 596 MB third-party
73
74## Best Practices
75
76- Start with `standard` depth for first-time audits
77- Use `fast` for monorepos with 100+ modules to get a quick inventory
78- Run `deep` incrementally on modules flagged for refactoring
79- Review the cross-module analysis for duplicate detection across sub-projects
80
81## Links
82
83- [GitHub Repository](https://github.com/haibindev/repo-scan)
84
85---
86
87**Source:** [`affaan-m/ECC`](https://github.com/affaan-m/ECC) → `skills/repo-scan/SKILL.md`
88
89**Also appears in:** `hashgraph-online/awesome-codex-plugins/plugins/Colin4k1024/tsp/skills/repo-scan/SKILL.md`