# Github Analysis

> GitHub repository code analysis. Uses local script `skills/scripts/github_analyze.js` to convert a repo into an AI-friendly Markdown snapshot. No external API required.

- Skill: `leoyeai-openclaw-master-skills/github-analysis` (Agent Skill)
- Install (CLI): `npx skillmds@latest add leoyeai-openclaw-master-skills/github-analysis`
- Raw SKILL.md: https://api.skillmd.com/api/skills/leoyeai-openclaw-master-skills/github-analysis/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: LeoYeAI (https://skillmd.com/u/leoyeai-openclaw-master-skills)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/leoyeai-openclaw-master-skills/github-analysis

---


# GitHub Analysis — Repository Inspection

## Local Script

Script path: `skills/scripts/github_analyze.js`

### Functions

| Function | Description |
|----------|-------------|
| `analyzeRepository(url, options?)` | Metadata, structure, README, languages, architecture, recent commits |
| `convertToMarkdown(url, options?)` | Convert repo to a single AI-friendly Markdown document with file contents |
| `parseGitHubUrl(url)` | Parse GitHub URL or `owner/repo` into `{ owner, repo }` |

### Options

| Option | Default | Description |
|--------|---------|-------------|
| `depth` | 2 | Directory depth limit (analyzeRepository only) |
| `maxFiles` | 75 | Max files to include (convertToMarkdown only) |
| `maxSize` | 30000 | Max size per file in bytes (convertToMarkdown only) |

## Fallback Behavior

| Scenario                     | Behavior                                  |
|-----------------------------|-------------------------------------------|
| Repo not found or private   | Skip, record a warning                    |

