360 Secure SkillHub
360 安全技能中心

BugPack Fix Bug

该 Skill 从本地 BugPack 服务读取指定缺陷的详情(描述、截图、环境、相关文件),据此定位源码并应用修复,最后把缺陷状态更新为 fixed,可选补充修复说明。

duhuazhu
duhuazhu
热度 58.96
最近更新 2026-05-11 17:33:20
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:调试排错 / 代码生成 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add bugpack-fix-bug
Metadata
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":"🔧"}}

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.

  2. Analyze the bug: Read the description and examine the screenshots to understand what is broken and what the expected behavior should be.

  3. 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.

  4. Apply fix: Edit the source code to fix the described issue. Follow the project's existing code style and conventions.

  5. Mark as fixed: After applying the fix, call PATCH http://localhost:3456/api/bugs/:id with:

    { "status": "fixed" }
    
  6. 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"
  }
}