diff --git a/prompts/my-issues.prompt.md b/prompts/my-issues.prompt.md index 113c77f..1197720 100644 --- a/prompts/my-issues.prompt.md +++ b/prompts/my-issues.prompt.md @@ -1,9 +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). +--- +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 index 25b8d75..128a60f 100644 --- a/prompts/my-pull-requests.prompt.md +++ b/prompts/my-pull-requests.prompt.md @@ -1,15 +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. +--- +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. diff --git a/update-readme.js b/update-readme.js index 144d873..0080206 100755 --- a/update-readme.js +++ b/update-readme.js @@ -353,78 +353,6 @@ function generateChatModesSection(chatmodesDir) { } return `${TEMPLATES.chatmodesSection}\n\n${chatmodesContent}\n${TEMPLATES.chatmodesUsage}`; - - if (chatmodesSection) { - let chatmodesListContent = "\n\n"; - - // Always regenerate the entire list to ensure descriptions are included - for (const file of chatmodeFiles.sort()) { - const filePath = path.join(chatmodesDir, file); - const title = extractTitle(filePath); - const link = encodeURI(`chatmodes/${file}`); - - // Check if there's a description in the frontmatter - const customDescription = extractDescription(filePath); - - if (customDescription && customDescription !== "null") { - // Use the description from frontmatter - chatmodesListContent += `- [${title}](${link}) - ${customDescription}\n`; - } else { - // Just add a link without description - chatmodesListContent += `- [${title}](${link})\n`; - } - } - - // Replace the current chat modes section with the updated one - const newChatmodesSection = - "## 🧩 Custom Chat Modes\n\nCustom chat modes define specific behaviors and tools for GitHub Copilot Chat, enabling enhanced context-aware assistance for particular tasks or workflows." + - chatmodesListContent + - "\n> 💡 **Usage**: Create new chat modes using the command `Chat: Configure Chat Modes...`, then switch your chat mode in the Chat input from _Agent_ or _Ask_ to your own mode."; - - return currentReadme.replace(chatmodesSection[0], newChatmodesSection); - } else { - // Chat modes section doesn't exist yet but we have chat mode files - console.log( - "Creating new chat modes section with all available chat modes." - ); - - const chatmodesListContent = chatmodeFiles - .sort() - .map((file) => { - const filePath = path.join(chatmodesDir, file); - const title = extractTitle(filePath); - const link = `chatmodes/${file}`; - const customDescription = extractDescription(filePath); - - if (customDescription) { - return `- [${title}](${link}) - ${customDescription}`; - } else { - return `- [${title}](${link})`; - } - }) - .join("\n"); - - const newChatmodesSection = - "## 🧩 Custom Chat Modes\n\n" + - "Custom chat modes define specific behaviors and tools for GitHub Copilot Chat, enabling enhanced context-aware assistance for particular tasks or workflows.\n\n" + - chatmodesListContent + - "\n\n> 💡 **Usage**: Create new chat modes using the command `Chat: Configure Chat Modes...`, then switch your chat mode in the Chat input from _Agent_ or _Ask_ to your own mode.\n"; - - // Insert before Additional Resources section - const additionalResourcesPos = currentReadme.indexOf( - "## 📚 Additional Resources" - ); - if (additionalResourcesPos !== -1) { - return ( - currentReadme.slice(0, additionalResourcesPos) + - newChatmodesSection + - "\n" + - currentReadme.slice(additionalResourcesPos) - ); - } - - return currentReadme; - } } /**