AI Agent Trend Report Generator - Collects trending repositories from GitHub Topics, computes velocity-based trend scores, performs qualitative analysis, and generates trend reports with project-specific recommendations
git-trend-sync is a data collection and analysis server with 17 tools, but suffers from severe definition quality gaps. While tool names follow verb-noun patterns (collect_all, run_metrics, generate_reports), most lack proper schema documentation. Only 2 of 17 tools have visible input schemas (run_metrics, run_analysis, run_scoring, run_gaps, run_opportunities, run_recommendations, generate_apply_report, find_repo_in_trending, find_repo_in_raw, and scan_project show date/repo_name/project_path parameters). The source code reveals function signatures with inputs (e.g., apply.py's generate_apply_report takes repo, profile, date), but MCP tool registration with proper JSON schemas is not visible in the provided code. Descriptions are present for all tools but are verbose (100-200+ chars) and lack the concise, LLM-optimized format (optimal 50-150 chars). Critical issues: (1) No visible JSON Schema definitions for tool inputs despite functions accepting parameters; (2) Output schemas are completely undocumented; (3) Parameter descriptions are embedded in function docstrings, not in MCP registration; (4) No error handling guidance visible in tool definitions; (5) Tools like generate_reports, generate_apply_report, generate_history_report, and generate_badges_file perform write operations but lack confirmation/dry-run patterns.
Collect repos for all categories from GitHub Topics. Searches trending repositories by topic with 1000+ stars active in the last 7 days. Returns structured data with repo metadata including README excerpts, commit counts, and activity metrics.
Fallback search in data/YYYY-MM-DD/raw.json for a repository by name or full_name (case-insensitive). Returns the matching repo dict or None.
Search data/YYYY-MM-DD/trending.json for a repository by name or full_name (case-insensitive). Returns the matching repository dict or None if not found.
Return an ASCII sparkline of activity score over time for a repository using block characters mapped to min/max range.
Create deep integration analysis report for a single trending repository. Generates a filled-in apply prompt template and human-readable summary with integration instructions for Claude Code analysis.
No visible JSON Schema definitions for tool inputs. Tools reference parameters in descriptions (date, repo_name, project_path, repo, profile) but no formal input schemas are present in the provided code excerpt. apply.py shows function signatures but no MCP tool registration with schema structures.
Output schemas completely undocumented. No tool provides a documented return type structure. Users and LLMs cannot predict what fields will be returned, breaking composition and downstream tool chaining.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 38 | 2026-07-28+ | v2 |
Generate a badges.md file listing shields.io badges for all trending repositories that can be added to repository READMEs to show trending status.
Generate reports/YYYY-MM-DD-history.md with activity trend sections including Activity Trends, Most Active repos, Slowing Down repos, and Historical Sparklines for top repos across all categories.
Generate markdown reports from metrics and analysis data. Creates readable trend reports organized by category with repository rankings and metadata.
Return a repository's metrics (trend_score, stars, commits_30d) across all dates it appeared, sorted ascending by date.
Scan data/YYYY-MM-DD/trending.json files and return sorted list of records with date and categories.
Run Claude Code CLI to perform qualitative analysis on trending repositories by category. Executes Claude Code with prepared prompts and extracts JSON analysis results for each category.
Scan GitHub Issues for tool demand signals in trending repositories. Analyzes open issues and feature requests to identify missing tools, plugins, and unmet feature demands across top repositories by category.
Load raw collected data and compute normalized metrics for each category. Calculates popularity, activity, community health, growth, and maturity scores on a 0-10 scale for each repository.
Generate opportunity report from gap analysis data. Creates summary of unmet tool and feature demands that represent business opportunities.
Generate project-specific recommendations based on trending repositories and project profile. Analyzes target project structure and recommends relevant trending repos and tools to integrate.
Compute multi-signal trend scores for repositories using velocity-based metrics and activity analysis.
Scan a project directory to extract profile information including detected technology stack, frameworks, and declared interests.
Write operations (generate_reports, generate_apply_report, generate_history_report, generate_badges_file) lack confirmation, dry-run, or rollback patterns. An agent could accidentally overwrite reports or generate unwanted files without user confirmation.
Descriptions are verbose (100-200+ characters) and lack concise LLM-optimized format. Baseline for A+ tools is 50-200 chars; many tools here lean toward the long end, wasting tokens. E.g., collect_all's description is ~165 chars when it could be ~80.
No error handling guidance visible. If a date parameter points to nonexistent data, or a repo is not found, tools do not provide actionable recovery instructions. Errors will be silent failures or raw exceptions.
Date parameter (YYYY-MM-DD format) accepted by multiple tools but lacks explicit validation rules or constraints in descriptions. No guidance on default behavior or fallback if date is invalid or data is missing.
Parameter descriptions in source code (apply.py) use complex object types (repo dict, profile dict) with no schema definition or example structure. LLMs cannot construct valid inputs without explicit schemas.
Multiple tools that appear to perform similar operations without clear differentiation. E.g., run_analysis, run_scoring, and run_opportunities all operate on trending data but it's unclear which to call first or how they compose.