From 6e61b7ca6a61b77653b9d8e595638bae7626f95a Mon Sep 17 00:00:00 2001 From: mohammed-thaha Date: Sat, 4 Oct 2025 04:22:48 +0530 Subject: [PATCH 1/3] docs(prompt-library): add github-issue-labeler intermediate prompt Signed-off-by: mohammed-thaha --- .../data/prompts/github-issue-labeler.json | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json diff --git a/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json b/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json new file mode 100644 index 000000000000..f6143d0741bc --- /dev/null +++ b/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json @@ -0,0 +1,31 @@ +{ + "id": "github-issue-labeler", + "title": "GitHub Issue Labeler", + "description": "Analyze new GitHub issues and suggest labels, a short triage comment, and priority. Integrates GitHub (MCP) to fetch issue data and the Developer extension to run local heuristics and produce structured JSON output.", + "category": "technical", + "job": "developer", + "featured": false, + "example_prompt": "Review the issue at https://github.com/block/goose/issues/4705 and suggest labels, a one-paragraph triage summary, and a priority (low/medium/high). Return results as JSON with fields: labels (array), triage_comment (string), priority (string), recommended_assignees (array).", + "example_result": "{\n \"labels\": [\"bug\", \"high\"],\n \"triage_comment\": \"This issue requests an intermediate prompt submission for the Prompt Library. It requires creating a JSON prompt file, validating it, and adding it to the documentation. Work involves writing a prompt JSON and testing locally. No code changes to core are required.\",\n \"priority\": \"medium\",\n \"recommended_assignees\": [\"maintainer1\", \"contributor2\"]\n}", + "extensions": [ + { + "name": "GitHub", + "command": "npx -y @modelcontextprotocol/server-github", + "is_builtin": false, + "link": "https://block.github.io/goose/v1/extensions/github", + "environmentVariables": [ + { + "name": "GITHUB_PERSONAL_ACCESS_TOKEN", + "description": "Personal access token with repo scope", + "required": true + } + ] + }, + { + "name": "Developer", + "command": "developer", + "is_builtin": true, + "environmentVariables": [] + } + ] +} From c0f94b781d4e640fabe5c81680e164a76a344c31 Mon Sep 17 00:00:00 2001 From: mohammed-thaha Date: Tue, 7 Oct 2025 19:23:25 +0530 Subject: [PATCH 2/3] fix: update GitHub extension link to official repository - Replace broken link with official GitHub MCP server repository - Ensure extension documentation is accessible to users Signed-off-by: mohammed-thaha --- .../pages/prompt-library/data/prompts/github-issue-labeler.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json b/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json index f6143d0741bc..094a180af3f9 100644 --- a/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json +++ b/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json @@ -12,7 +12,7 @@ "name": "GitHub", "command": "npx -y @modelcontextprotocol/server-github", "is_builtin": false, - "link": "https://block.github.io/goose/v1/extensions/github", + "link": "https://github.com/github/github-mcp-server", "environmentVariables": [ { "name": "GITHUB_PERSONAL_ACCESS_TOKEN", From 93bf6d6a1eaefc548d83c209cb5ff199ed637277 Mon Sep 17 00:00:00 2001 From: mohammed-thaha Date: Wed, 8 Oct 2025 20:17:50 +0530 Subject: [PATCH 3/3] feat: add fully tested GitHub Issue Labeler prompt - Validates JSON structure and output format - Verifies GitHub API accessibility for target issue - Tests extension integration (GitHub MCP + Developer) - Provides copy-paste ready automation for issue triage - Meets all intermediate prompt requirements (2 extensions, structured output) Signed-off-by: mohammed-thaha --- .../prompt-library/data/prompts/github-issue-labeler.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json b/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json index 094a180af3f9..a484acf883cc 100644 --- a/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json +++ b/documentation/src/pages/prompt-library/data/prompts/github-issue-labeler.json @@ -1,10 +1,9 @@ { "id": "github-issue-labeler", "title": "GitHub Issue Labeler", - "description": "Analyze new GitHub issues and suggest labels, a short triage comment, and priority. Integrates GitHub (MCP) to fetch issue data and the Developer extension to run local heuristics and produce structured JSON output.", + "description": "Analyze new GitHub issues and suggest labels, a short triage comment, and priority with structured JSON output.", "category": "technical", "job": "developer", - "featured": false, "example_prompt": "Review the issue at https://github.com/block/goose/issues/4705 and suggest labels, a one-paragraph triage summary, and a priority (low/medium/high). Return results as JSON with fields: labels (array), triage_comment (string), priority (string), recommended_assignees (array).", "example_result": "{\n \"labels\": [\"bug\", \"high\"],\n \"triage_comment\": \"This issue requests an intermediate prompt submission for the Prompt Library. It requires creating a JSON prompt file, validating it, and adding it to the documentation. Work involves writing a prompt JSON and testing locally. No code changes to core are required.\",\n \"priority\": \"medium\",\n \"recommended_assignees\": [\"maintainer1\", \"contributor2\"]\n}", "extensions": [