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:
parent
4bdf38d455
commit
d63ef02ef3
6 changed files with 989 additions and 0 deletions
22
README.md
22
README.md
|
|
@ -217,6 +217,16 @@ The server provides the following MCP tools:
|
|||
17. **plan_package_migration** - Generate comprehensive package migration plan prompts
|
||||
18. **generate_migration_checklist** - Generate detailed migration checklist prompts
|
||||
|
||||
### Environment Analysis Templates
|
||||
19. **analyze_environment_dependencies** - Generate prompts for analyzing current environment dependencies
|
||||
20. **check_outdated_packages** - Generate prompts for checking outdated packages with update priorities
|
||||
21. **generate_update_plan** - Generate prompts for creating comprehensive package update plans
|
||||
|
||||
### Trending Analysis Templates
|
||||
22. **analyze_daily_trends** - Generate prompts for analyzing daily PyPI download trends
|
||||
23. **find_trending_packages** - Generate prompts for discovering trending packages over time periods
|
||||
24. **track_package_updates** - Generate prompts for tracking recent package updates and releases
|
||||
|
||||
> 📖 **Learn more about prompt templates**: See [PROMPT_TEMPLATES.md](PROMPT_TEMPLATES.md) for detailed documentation and examples.
|
||||
|
||||
## Usage Examples
|
||||
|
|
@ -254,6 +264,18 @@ Once configured in your MCP client (Claude Desktop, Cline, Cursor, Windsurf), yo
|
|||
- "Help me resolve dependency conflicts with a structured prompt"
|
||||
- "Generate a security audit prompt for my production packages"
|
||||
|
||||
### Environment Analysis
|
||||
- "Analyze my current Python environment dependencies and check for outdated packages"
|
||||
- "Check which packages in my environment have security updates available"
|
||||
- "Generate an update plan for my production environment with conservative strategy"
|
||||
- "Help me identify packages that need immediate updates vs. planned updates"
|
||||
|
||||
### Trending Analysis
|
||||
- "What are the most downloaded Python packages today?"
|
||||
- "Show me trending packages in the machine learning domain this week"
|
||||
- "Track recent security updates and new package releases"
|
||||
- "Find rising packages in web development that I should consider"
|
||||
|
||||
### Example Conversations
|
||||
|
||||
**User**: "Check if Django 4.2 is compatible with Python 3.9"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue