feat: add review_code prompt builder

This commit is contained in:
2026-06-11 18:19:36 +01:00
parent 89940c25fb
commit 42a6dfe539
4 changed files with 516 additions and 2 deletions
+20
View File
@@ -228,6 +228,26 @@ Create `test/prompts/review-code.test.js`.
Requirements:
- Mirror structure of ask-chatgpt and review-plan tests: base composition, review_code-specific instructions, optional fields, expectedOutput, input validation, tool guard, full integration.
Status: ✅ Complete
### Task 3.6 - debug_issue prompt builder (NEXT)
Create `src/prompts/debug-issue.js`.
Requirements:
- Export a `buildDebugIssuePrompt(input)` function that returns a tool-specific prompt for the debug_issue MCP tool.
- Compose with `buildBasePrompt()` — call it internally and append the result with `---` separator.
- Instruct ChatGPT to analyse errors, logs, failed tests, or stack traces.
- Look for: likely root causes, fast checks, minimal safe experiments, what not to change yet.
- Request response in structured format: Likely Causes, Fast Checks, Minimal Safe Experiments, What Not To Do Yet.
- Support `relevantFiles` and `logs` input fields.
- No other tool prompts yet (architecture_review, etc.).
Create `test/prompts/debug-issue.test.js`.
Requirements:
- Mirror structure of ask_chatgpt, review-plan, and review-code tests: base composition, debug_issue-specific instructions, optional fields, expectedOutput, input validation, tool guard, full integration.
Status: ⬜ Pending
---