- Created a prompt for .NET/C# best practices to ensure code quality and adherence to standards. - Added a design pattern review prompt for evaluating C#/.NET code implementations. - Introduced prompts for suggesting relevant GitHub Copilot chatmodes and prompts based on repository context. - Developed a prompt for updating Azure Verified Modules in Bicep files to the latest versions. - Implemented a prompt for updating implementation plans with new requirements and features. - Created a prompt for updating the llms.txt file to reflect changes in documentation or specifications. - Added a prompt for updating markdown file indexes with files from specified folders. - Developed a prompt for updating object-oriented component documentation according to best practices. - Created a prompt for updating specification files to align with new requirements and ensure AI-readiness.
4.4 KiB
4.4 KiB
| mode | description | tools | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| agent | Suggest relevant GitHub Copilot prompt files from the awesome-copilot repository based on current repository context and chat history, avoiding duplicates with existing prompts in this repository. |
|
Suggest GitHub Copilot Prompts
Analyze current repository context and suggest relevant prompt files from the GitHub awesome-copilot repository that are not already available in this repository.
Process
- Fetch Available Prompts: Extract prompt list and descriptions from awesome-copilot README
- Scan Local Prompts: Discover existing prompt files in
.github/prompts/folder - Extract Descriptions: Read front matter from local prompt files to get descriptions
- Analyze Context: Review chat history, repository files, and current project needs
- Compare Existing: Check against prompts already available in this repository
- Match Relevance: Compare available prompts against identified patterns and requirements
- Present Options: Display relevant prompts with descriptions, rationale, and availability status
- Validate: Ensure suggested prompts would add value not already covered by existing prompts
- Output: Provide structured table with suggestions, descriptions, and links to both awesome-copilot prompts and similar local prompts
- Next Steps: If any suggestions are made, provide instructions that GitHub Copilot will be able to follow to add the suggested prompts to the repository by downloading the file into the prompts directory. Offer to do this automatically if the user confirms.
Context Analysis Criteria
🔍 Repository Patterns:
- Programming languages used (.cs, .js, .py, etc.)
- Framework indicators (ASP.NET, React, Azure, etc.)
- Project types (web apps, APIs, libraries, tools)
- Documentation needs (README, specs, ADRs)
🗨️ Chat History Context:
- Recent discussions and pain points
- Feature requests or implementation needs
- Code review patterns
- Development workflow requirements
Output Format
Display analysis results in structured table comparing awesome-copilot prompts with existing repository prompts:
| Awesome-Copilot Prompt | Description | Already Installed | Similar Local Prompt | Suggestion Rationale |
|---|---|---|---|---|
| code-review.md | Automated code review prompts | ❌ No | None | Would enhance development workflow with standardized code review processes |
| documentation.md | Generate project documentation | ✅ Yes | create_oo_component_documentation.prompt.md | Already covered by existing documentation prompts |
| debugging.md | Debug assistance prompts | ❌ No | None | Could improve troubleshooting efficiency for development team |
Local Prompts Discovery Process
- List all
*.prompt.mdfiles directory.github/prompts/. - For each discovered file, read front matter to extract
description - Build comprehensive inventory of existing prompts
- Use this inventory to avoid suggesting duplicates
Requirements
- Use
githubRepotool to get content from awesome-copilot repository - Scan local file system for existing prompts in
.github/prompts/directory - Read YAML front matter from local prompt files to extract descriptions
- Compare against existing prompts in this repository to avoid duplicates
- Focus on gaps in current prompt library coverage
- Validate that suggested prompts align with repository's purpose and standards
- Provide clear rationale for each suggestion
- Include links to both awesome-copilot prompts and similar local prompts
- Don't provide any additional information or context beyond the table and the analysis
Icons Reference
- ✅ Already installed in repo
- ❌ Not installed in repo