analyze_codebase
Analyzes GitHub repositories for code structure, architecture, metrics, complexity, and design patterns. Offers insights into organization, quality, and reusable components for better code understanding and optimization.
Instructions
🔬 Comprehensive codebase analysis combining structure, architecture, and metrics. Provides unified view of code organization, design patterns, complexity, and quality indicators.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analysis_types | No | Types of analysis to perform | |
file_paths | No | Specific files to analyze (optional - analyzes all code files if not specified) | |
options | No | ||
url | Yes | GitHub repository URL |
Input Schema (JSON Schema)
{
"properties": {
"analysis_types": {
"default": [
"structure",
"architecture",
"metrics"
],
"description": "Types of analysis to perform",
"items": {
"enum": [
"structure",
"architecture",
"metrics",
"patterns",
"complexity"
],
"type": "string"
},
"type": "array"
},
"file_paths": {
"description": "Specific files to analyze (optional - analyzes all code files if not specified)",
"items": {
"type": "string"
},
"type": "array"
},
"options": {
"properties": {
"confidence_threshold": {
"default": 0.7,
"description": "Minimum confidence score for pattern detection",
"type": "number"
},
"include_classes": {
"default": true,
"description": "Include class analysis",
"type": "boolean"
},
"include_complexity": {
"default": true,
"description": "Include complexity metrics",
"type": "boolean"
},
"include_components": {
"default": false,
"description": "Include reusable component identification",
"type": "boolean"
},
"include_functions": {
"default": true,
"description": "Include function analysis",
"type": "boolean"
},
"include_imports": {
"default": true,
"description": "Include import/dependency analysis",
"type": "boolean"
},
"include_patterns": {
"default": true,
"description": "Include design pattern detection",
"type": "boolean"
},
"languages": {
"description": "Programming languages to analyze",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"url": {
"description": "GitHub repository URL",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}