feat: add review_plan prompt builder
This commit is contained in:
@@ -193,7 +193,7 @@ Requirements:
|
||||
|
||||
Status: ✅ Complete
|
||||
|
||||
### Task 3.4 - review_plan prompt builder (NEXT)
|
||||
### Task 3.4 - review_plan prompt builder (completed)
|
||||
|
||||
Create `src/prompts/review-plan.js`.
|
||||
|
||||
@@ -209,6 +209,25 @@ Create `test/prompts/review-plan.test.js`.
|
||||
Requirements:
|
||||
- Mirror structure of ask-chatgpt tests: base composition, review_plan-specific instructions, optional fields, expectedOutput, input validation, tool guard, full integration.
|
||||
|
||||
Status: ✅ Complete
|
||||
|
||||
### Task 3.5 - review_code prompt builder (NEXT)
|
||||
|
||||
Create `src/prompts/review-code.js`.
|
||||
|
||||
Requirements:
|
||||
- Export a `buildReviewCodePrompt(input)` function that returns a tool-specific prompt for the review_code MCP tool.
|
||||
- Compose with `buildBasePrompt()` — call it internally and append the result with `---` separator.
|
||||
- Instruct ChatGPT to review focused code snippets, patches, or diffs.
|
||||
- Look for: correctness issues, bugs, maintainability concerns, security issues, test gaps, simpler approaches.
|
||||
- Request response in structured format: Issues by Severity, Suggested Fixes, Test Suggestions.
|
||||
- No other tool prompts yet (debug_issue, architecture_review, etc.).
|
||||
|
||||
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: ⬜ Pending
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user