analyze_github_repository
Analyze a GitHub repository to generate a beginner-friendly tutorial using the PocketFlow methodology, focusing on key abstractions and file patterns for clarity and simplicity.
Instructions
Analyze a GitHub repository and generate a comprehensive tutorial following the PocketFlow methodology
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_url": "<repo_url>",
"llm_provider": "<llm_provider>",
"api_key": "<api_key>"
},
"name": "analyze_github_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | API key for the LLM provider | |
| exclude_patterns | No | File patterns to exclude (e.g., ["*test*", "*docs/*"]) | |
| github_token | No | Optional GitHub token for private repos or rate limit avoidance | |
| include_patterns | No | File patterns to include (e.g., ["*.py", "*.js"]) | |
| language | No | Language for tutorial generation | english |
| llm_provider | Yes | LLM provider to use for analysis | |
| max_abstractions | No | Maximum number of abstractions to identify | |
| max_file_size | No | Maximum file size in bytes | |
| model | No | Specific model to use (e.g., "anthropic/claude-3.5-sonnet" for OpenRouter or "gemini-2.5-pro" for Google) | gemini-2.5-pro |
| project_name | No | Optional project name (derived from repo if omitted) | |
| repo_url | Yes | GitHub repository URL (e.g., https://github.com/user/repo) | |
| use_cache | No | Enable LLM response caching |