- name
- bugpack-fix-bug
- description
- Fix a bug from BugPack by reading its context, locating code, applying fixes, and updating status. Use when: user asks to fix, repair, or resolve a bug. NOT for: just listing bugs (use bugpack-list-bugs) or just viewing bug details (use bugpack-view-bug).
- metadata
- openclaw
- emoji
- \F527
BugPack - Fix Bug
Read bug context from BugPack, locate the relevant code, apply a fix, and mark the bug as fixed.
Instructions
- Get bug context: Call
GET http://localhost:3456/api/bugs/:idto fetch full bug details including description, screenshots, environment, and related files.
- Analyze the bug: Read the description and examine the screenshots to understand what is broken and what the expected behavior should be.
- Locate code: Use the
relatedFilesarray from the bug context to find the relevant source files. IfrelatedFilesis empty, use thepagePathanddescriptionto search the codebase.
- Apply fix: Edit the source code to fix the described issue. Follow the project's existing code style and conventions.
- Mark as fixed: After applying the fix, call
PATCH http://localhost:3456/api/bugs/:idwith:
{ "status": "fixed" }- Add fix note (optional): Call
PATCH http://localhost:3456/api/bugs/:idwith a description update to document what was changed.
Example
# Step 1: Get bug context
GET http://localhost:3456/api/bugs/abc-123
# Step 5: Mark as fixed
PATCH http://localhost:3456/api/bugs/abc-123
Content-Type: application/json
{ "status": "fixed" }Response:
{
"ok": true,
"data": {
"id": "abc-123",
"status": "fixed"
}
}