From 35a68f09a8a0a4b75b8549b68bf1f8671d28e278 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Fri, 27 Jun 2025 10:49:08 +1000 Subject: [PATCH] Adding some github mcp-based prompts --- README.md | 4 ++++ prompts/my-issues.prompt.md | 9 +++++++++ prompts/my-pull-requests.prompt.md | 15 +++++++++++++++ update-readme.js | 2 +- 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 prompts/my-issues.prompt.md create mode 100644 prompts/my-pull-requests.prompt.md diff --git a/README.md b/README.md index 7eb245a..e27114a 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,10 @@ Ready-to-use prompt templates for specific development scenarios and tasks. Thes ### Documentation & Project Management - [Comment Code Generate Tutorial](prompts/comment-code-generate-a-tutorial.prompt.md) - Transform code into educational content - [Generate Specs as Issues](prompts/gen-specs-as-issues.prompt.md) - Convert requirements into GitHub issues +- [My Issues](prompts/my-issues.prompt.md) +- [My Pull Requests](prompts/my-pull-requests.prompt.md) + + > 💡 **Usage**: Use `/prompt-name` in VS Code chat or run `Chat: Run Prompt` command. Prompt files support variables like `${input:name}` for dynamic content. diff --git a/prompts/my-issues.prompt.md b/prompts/my-issues.prompt.md new file mode 100644 index 0000000..5586077 --- /dev/null +++ b/prompts/my-issues.prompt.md @@ -0,0 +1,9 @@ +--- +mode: agent +tools: ['githubRepo', 'github', 'get_issue', 'get_issue_comments', 'get_me', 'list_issues'] +description: "List my issues in the current repository" +--- + +Search the current repo (using #githubRepo for the repo info) and list any issues you find (using #list_issues) that are assigned to me. + +Suggest issues that I might want to focus on based on their age, the amount of comments, and their status (open/closed). diff --git a/prompts/my-pull-requests.prompt.md b/prompts/my-pull-requests.prompt.md new file mode 100644 index 0000000..3a83c39 --- /dev/null +++ b/prompts/my-pull-requests.prompt.md @@ -0,0 +1,15 @@ +--- +mode: agent +tools: ['githubRepo', 'github', 'get_me', 'get_pull_request', 'get_pull_request_comments', 'get_pull_request_diff', 'get_pull_request_files', 'get_pull_request_reviews', 'get_pull_request_status', 'list_pull_requests', 'request_copilot_review'] +description: "List my pull requests in the current repository" +--- + +Search the current repo (using #githubRepo for the repo info) and list any pull requests you find (using #list_pull_requests) that are assigned to me. + +Describe the purpose and details of each pull request. + +If a PR is waiting for someone to review, highlight that in the response. + +If there were any check failures on the PR, describe them and suggest possible fixes. + +If there was no review done by Copilot, offer to request one using #request_copilot_review. \ No newline at end of file diff --git a/update-readme.js b/update-readme.js index cd3e725..cdd846d 100755 --- a/update-readme.js +++ b/update-readme.js @@ -220,7 +220,7 @@ function generateReadme() { // If we need to add the section header if (!hasUncategorisedSection) { - newPromptsContent += "### Uncategorised\n"; + newPromptsContent += "\n### Uncategorised\n"; } // Add each new prompt