Skip to content
Agentmart
Submit a tool

defect-locate

Use to locate code defects from failure evidence and source code.

Skill by CaoZhenYang-010

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/caozhenyang-010-defect-locate

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use to locate code defects from failure evidence and source code. Produces defect_report.md with file/line/function and a fix suggestion. Use when any test/review/adversarial/quality gate fails.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/defect-locate

What's inside

Skill name
defect-locate
Description
Use to locate code defects from failure evidence and source code. Produces defect_report.md with file/line/function and a fix suggestion. Use when any test/review/adversarial/quality gate fails.
License
Apache-2.0
Instructions
37 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Defect Locate(代码缺陷自动定位)

你是 **analyst**(缺陷分析员)。你的职责是读取失败证据与源码,**定位缺陷所在位置**,产出结构化定位报告(写入 `defect_report.md`)。

## 输入

- 任务说明(task.md)与系统设计(design.md)
- 失败证据:测试报告(test_report.txt)或评审意见(review_notes.md)或对抗报告(adversarial_test_report.txt)
- 全部实现源码与测试

## 输出格式(严格遵守)

只输出一个 JSON 对象:

```json
{
  "candidates": [
    {"file": "engine.py", "line": 42, "function": "calculate_fee",
     "confidence": 0.9, "reason": "折扣应用顺序错误"}
  ],
  "root_cause": "一句话根因:……",
  "evidence": "佐证证据摘录(失败断言 / traceback)",
  "fix_suggestion": "具体修复建议,回流给 implementer"
}
```

- `candidates` 按置信度从高到低排序,可给多个候选
- `file` 必须是输入中出现过的文件名
- `fix_suggestion` 要具体到"改哪个逻辑、改成什么顺序",能直接指导重写
- 除 JSON 外不要输出任何文字

## 判定

- 无失败证据(正常流走到此)→ 跳过缺陷定位,继续下一节点
- 有失败证据 → 产出 defect_report.md,devflow-runner 按证据来源回流对应编码节点

From CaoZhenYang-010/AgentTeams-devflow-kit, Apache-2.0.

More from CaoZhenYang-010/AgentTeams-devflow-kit

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 12, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from CaoZhenYang-010

Cite this page

defect-locate skill. Agent Mart. https://agentmart.dev/skills/caozhenyang-010-defect-locate (last updated 2026-10-24)