feat: add comprehensive environment and trending analysis prompt templates

Environment Analysis Templates:
- analyze_environment_dependencies: Analyze current Python environment and dependencies
- check_outdated_packages: Check for outdated packages with update priorities
- generate_update_plan: Create comprehensive package update plans with strategies

Trending Analysis Templates:
- analyze_daily_trends: Analyze daily PyPI download trends and popular packages
- find_trending_packages: Discover trending packages over different time periods
- track_package_updates: Track recent package updates and releases

Key Features:
- Follow standard MCP workflow with {{parameter}} template variables
- Support environment analysis (uvx pip list integration ready)
- Enable trending package discovery and popularity analysis
- Provide structured update planning with different strategies
- Include comprehensive parameter validation and documentation
- Add usage examples and integration guides

All templates follow the established MCP prompt workflow:
1. User calls tool → MCP client sends request
2. Tool function executes → Collects necessary data and parameters
3. Call Prompt generator → Pass parameters to corresponding generator
4. Load template → Get template with {{parameter}} placeholders
5. Parameter replacement → Replace {{parameter_name}} with actual values
6. Return final prompt → As tool's response back to AI

Updated documentation and README with new template examples and usage patterns.

Signed-off-by: longhao <hal.long@outlook.com>
This commit is contained in:
longhao 2025-05-29 16:36:58 +08:00 committed by Hal
parent 4bdf38d455
commit d63ef02ef3
6 changed files with 989 additions and 0 deletions

View file

@ -9,6 +9,11 @@ from .dependency_management import (
plan_version_upgrade,
resolve_dependency_conflicts,
)
from .environment_analysis import (
analyze_environment_dependencies,
check_outdated_packages,
generate_update_plan,
)
from .migration_guidance import (
generate_migration_checklist,
plan_package_migration,
@ -18,6 +23,11 @@ from .package_analysis import (
compare_packages,
suggest_alternatives,
)
from .trending_analysis import (
analyze_daily_trends,
find_trending_packages,
track_package_updates,
)
__all__ = [
# Package Analysis
@ -28,7 +38,15 @@ __all__ = [
"resolve_dependency_conflicts",
"plan_version_upgrade",
"audit_security_risks",
# Environment Analysis
"analyze_environment_dependencies",
"check_outdated_packages",
"generate_update_plan",
# Migration Guidance
"plan_package_migration",
"generate_migration_checklist",
# Trending Analysis
"analyze_daily_trends",
"find_trending_packages",
"track_package_updates",
]