# Github Analysis

> Github Analysis is an Agent Skill for documents published in the LeoYeAI/openclaw-master-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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 name: `github-analysis`
- Category: [Documents](https://www.openparable.com/skill/documents/1)
- Source: https://github.com/LeoYeAI/openclaw-master-skills/blob/HEAD/skills/crab/github-analysis/SKILL.md
- Repository: LeoYeAI/openclaw-master-skills (2,087 GitHub stars when collected)

## SKILL.md

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

---

Source: https://www.openparable.com/skill/documents/github-analysis (OpenParable). Cite the canonical URL above.
