← 返回
未分类 中文

BugPack Fix Bug

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...
通过阅读上下文、定位代码、应用修复并更新状态,修复 BugPack 中的错误。当用户要求修复或解决 bug 时使用。非...
duhuazhu duhuazhu 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 461
下载
💾 1
安装
1
版本
#latest

概述

BugPack - Fix Bug

Read bug context from BugPack, locate the relevant code, apply a fix, and mark the bug as fixed.

Instructions

  1. Get bug context: Call GET http://localhost:3456/api/bugs/:id to fetch full bug details including description, screenshots, environment, and related files.
  1. Analyze the bug: Read the description and examine the screenshots to understand what is broken and what the expected behavior should be.
  1. Locate code: Use the relatedFiles array from the bug context to find the relevant source files. If relatedFiles is empty, use the pagePath and description to search the codebase.
  1. Apply fix: Edit the source code to fix the described issue. Follow the project's existing code style and conventions.
  1. Mark as fixed: After applying the fix, call PATCH http://localhost:3456/api/bugs/:id with:

```json

{ "status": "fixed" }

```

  1. Add fix note (optional): Call PATCH http://localhost:3456/api/bugs/:id with 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"
  }
}

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 19:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 328,684
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,853
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 73 📥 182,233