# GitHub Repo Analyzer

> Analyze GitHub or local repositories for architecture, dependency cycles, and heuristic code-review without running code.

GitHub Repo Analyzer is a paid AI agent skill on Agensi by Shuhana Azmin, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $24 (one-time purchase)
- Creator: [Shuhana Azmin](https://www.agensi.io/creators/shuhana-azmin)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/github-repo-analyzer
- Tags: llm-ops, python, static-analysis, security-audit, mermaid

## About this skill

Manual repository auditing is slow, and running untrusted code for analysis is a security risk. This skill provides a bounded, read-only pipeline to map architecture, dependency graphs, and heuristic code-review findings without ever executing the target code.

### What it does
- **Automated Mapping** generates a full architecture report including entry points, API routes, and data models.
- **Dependency Analysis** builds Mermaid graphs and identifies circular dependencies or high fan-in/fan-out modules.
- **Security Heuristics** scans for high-risk patterns like dynamic execution, unsafe deserialization, and hard-coded secrets.
- **Context Triage** automatically inspects surrounding source lines for top findings to separate likely false positives from elevated risks.
- **Multi-Source Support** handles local directories, GitHub/GitLab URLs, monorepos, and specific branches or commit SHAs.

### How it works
1. **Resolve** the repository using `clone_repo.py` to handle shallow cloning or local path verification.
2. **Analyze** the codebase with `analyze_repo.py` to generate structured JSON and Markdown reports.
3. **Digest** the findings via `summary.json` for a high-level overview of tech stack and top findings.
4. **Review** the `architecture.mmd` graph to visualize package coupling and unreachable modules.

### Frameworks & tools
The skill uses Python `ast.parse` for deep Python analysis and regex scanning for JS, TS, Go, Rust, and Java. It integrates with `git` for shallow clones and Mermaid for visualization.

### Why this beats prompting it yourself
Standard LLM prompts lack the multi-file context needed to build accurate dependency graphs or identify circular cycles. This skill uses deterministic scripts to extract raw data, ensuring the agent operates on facts rather than hallucinations of the file tree.

### Use cases
- **Rapid Onboarding** to explain a new codebase, its entry points, and required environment variables.
- **Security Triage** to quickly identify and prioritize potential vulnerabilities in production code.
- **Refactoring Audits** to find tight coupling, circular dependencies, and high-churn modules.
- **Architecture Review** to generate up-to-date documentation and dependency maps for complex repos.

### Known limitations
Does not execute code, tests, or CVE scanners. Static analysis is limited to 20,000 files and 1MB per file. Transitive dependencies and dynamic imports may be missed.

## Requires

- Python
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the GitHub Repo Analyzer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill ensure security when analyzing unknown or untrusted repositories?

The skill uses a 'read-only' pipeline that performs static analysis without ever executing the target code, ensuring your environment remains safe even when auditing untrusted or third-party repositories.

### Which programming languages and frameworks can this skill analyze?

While it offers deep AST-based analysis for Python, it also includes robust regex-based scanning for JavaScript, TypeScript, Go, Rust, and Java, making it suitable for most modern polyglot monorepos.

### What specific outputs or files will I receive after an analysis is complete?

The skill generates a comprehensive architecture report, structured JSON/Markdown summaries of findings, and a Mermaid-compatible dependency graph to help you visualize package coupling.

### Why should I use this skill instead of just uploading files to a standard LLM prompt?

Standard LLMs are limited by context windows and often hallucinate file structures; this skill uses deterministic scripts to map the entire repository, providing the agent with factual data rather than guesses.

### Are there any limits on the size or source of the repositories I can audit?

The skill handles local directories, GitHub/GitLab URLs, and specific branches, though it is currently optimized for repositories with up to 20,000 files and a maximum file size of 1MB.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
