gnn-intelligent-analysis · git:20260906.e62b9e9 · 2026-09-06 · sha256 ccc623f72db6342d
gnn-intelligent-analysis git:20260906.e62b9e9A
Immutable. This exact content is served forever at /api/v1/blob/ccc623f72db6342d.
---
name: gnn-intelligent-analysis
description: GNN AI-powered pipeline analysis and executive reports. Use when generating AI-driven executive summaries, performing intelligent pipeline health assessments, or creating comprehensive AI-enhanced analysis of GNN processing results.
---
# GNN Intelligent Analysis (Step 24)
## Purpose
Provides AI-powered analysis of the entire pipeline execution, generating executive summaries, health assessments, intelligent recommendations, and comprehensive AI-enhanced reports.
## Key Commands
```bash
# Run intelligent analysis
python src/gnn/24_intelligent_analysis.py --target-dir input/gnn_files --output-dir output --verbose
# As part of pipeline (final step)
python src/gnn/main.py --only-steps 24 --verbose
```
## API
```python
from gnn.intelligent_analysis import (
process_intelligent_analysis,
IntelligentAnalyzer,
analyze_pipeline_summary,
analyze_individual_steps,
generate_executive_report,
identify_bottlenecks,
generate_recommendations,
calculate_pipeline_health_score,
classify_failure_severity,
detect_performance_patterns,
generate_optimization_suggestions,
)
# Process intelligent analysis step (used by pipeline)
process_intelligent_analysis(target_dir, output_dir, logger)
# Use the IntelligentAnalyzer class
analyzer = IntelligentAnalyzer(context=AnalysisContext(summary_data=pipeline_data))
results = analyzer.analyze()
# Analyze pipeline summary
summary = analyze_pipeline_summary(pipeline_data)
# Generate executive report
report = generate_executive_report(
analysis, bottlenecks, failures, recommendations,
step_analyses, flags_by_type,
)
# Health scoring
score = calculate_pipeline_health_score(pipeline_data)
# Identify bottlenecks and generate recommendations
bottlenecks = identify_bottlenecks(step_data, threshold_seconds=60.0)
recs = generate_recommendations(analysis, bottlenecks, flags_by_type)
# Performance pattern detection
patterns = detect_performance_patterns(pipeline_data)
suggestions = generate_optimization_suggestions(pipeline_data)
```
## Key Exports
- `process_intelligent_analysis` — main pipeline processing function
- `IntelligentAnalyzer` / `AnalysisContext` / `StepAnalysis` — analysis classes
- `analyze_pipeline_summary`, `analyze_individual_steps` — analysis functions
- `generate_executive_report` — executive summary generation
- `calculate_pipeline_health_score`, `classify_failure_severity`
- `detect_performance_patterns`, `generate_optimization_suggestions`
- `identify_bottlenecks`, `generate_recommendations`
## Pipeline Position
This is the **final step** (Step 24). It has access to all outputs from Steps 0–23 and provides the capstone analysis.
## Output
- AI analysis reports in `output/24_intelligent_analysis_output/`
- Executive summary documents
- Pipeline health scorecards
## MCP Tools
This module registers tools with the GNN MCP server (see `mcp.py`):
- `get_analysis_capabilities`
- `get_intelligent_analysis_module_info`
- `process_intelligent_analysis`
## References
- [AGENTS.md](AGENTS.md) — Module documentation
- [README.md](README.md) — Usage guide
- [SPEC.md](SPEC.md) — Module specification
---
## Documentation
- **[README](README.md)**: Module Overview
- **[AGENTS](AGENTS.md)**: Agentic Workflows
- **[SPEC](SPEC.md)**: Architectural Specification
- **[SKILL](SKILL.md)**: Capability API