analyze_repository
Clone a GitHub repository, analyze it with AI, and generate six documentation files covering overview, structure, file insights, architecture, quick-start, and master analysis.
Instructions
Execute comprehensive code analysis workflow on a GitHub repository.
Clones the repository, analyzes it with Gemini AI, and generates 6 documentation
files covering overview, structure, file insights, architecture, quick-start, and
a master analysis.
Args:
repo_url: GitHub repository URL to analyze
working_directory: Directory where to create analysis folder (default: current directory)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_url | Yes | ||
| working_directory | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Whether analysis completed successfully | |
| message | Yes | Status message | |
| output_files | Yes | List of generated documentation files | |
| repository_path | Yes | Path to the cloned repository | |
| gemini_available | Yes | Whether Gemini API was available for analysis | |
| context_file_content | No | AI context file content generated from the analysis. You MUST save this as your context file at the ROOT of the analyzed project (e.g. CLAUDE.md for Claude Code, .cursorrules for Cursor, .windsurfrules for Windsurf, .github/copilot-instructions.md for Copilot). Do NOT modify any other files in the project — only create this one context file. |