agentCLAWHUBUnverified

qa-code-review-for-test

当开发提了 PR、代码变更需要确定测试范围、或者想通过分析代码来预测可能出 Bug 的区域时使用此技能。从测试视角分析代码变更的影响范围、识别高危模式和典型风险区域。不要看完整代码逻辑——你只需要关注变更类型(新增/修改/删除/重构)、影响范围(接口定义/数据库字段/业务逻辑)和相关依赖,据此确定最小回归测试范围。输出代码变更影响分析报告。 触发场景:代码评审、CR、测试视角、看代码、代码变更、Diff、代码变更后需要确定测试范围时。 Use when the user asks about: reviewing a PR or code diff from a testing perspective to determine regression scope and high-risk areas. Skill: qa-code-review-for-test Owner: kokxi Summary: 当开发提了 PR、代码变更需要确定测试范围、或者想通过分析代码来预测可能出 Bug 的区域时使用此技能。从测试视角分析代码变更的影响范围、识别高危模式和典型风险区域。不要看完整代码逻辑——你只需要关注变更类型(新增/修改/删除/重构)、影响范围(接口定义/数据库字段/业务逻辑)和相关依赖,据此确定最小回归测试范围。输出代码变更影响分析报告。 触发场景:代码评审、CR、测试视角、看代码、代码变更、Diff、代码变更后需要确定测试范围时。 Use when the user asks about: reviewing a PR or code diff from a testing perspective to determine regression scope and high-risk areas. Tags: lates

OpenClaw

Rank

62

Safety

84

Downloads

1.1k

Updated

Oct 11, 2026

Version

1.8.0

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
1.1K downloadsadoption · observed Oct 11, 2026
Latest release
1.8.0release · observed Sep 29, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s170jw3s1atcj5jwhqb4r7v7eh8912kp:qa-code-review-for-test
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-code-review-for-test/snapshot"

Documentation

CLAWHUB

59,009 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: qa-code-review-for-test
description: >-
  当开发提了 PR、代码变更需要确定测试范围、或者想通过分析代码来预测可能出 Bug 的区域时使用此技能。从测试视角分析代码变更的影响范围、识别高危模式和典型风险区域。不要看完整代码逻辑——你只需要关注变更类型(新增/修改/删除/重构)、影响范围(接口定义/数据库字段/业务逻辑)和相关依赖,据此确定最小回归测试范围。输出代码变更影响分析报告。 触发场景:代码评审、CR、测试视角、看代码、代码变更、Diff、代码变更后需要确定测试范围时。 Use when the user asks about: reviewing a PR or code diff from a testing perspective to determine regression scope and high-risk areas.
license: MIT
allowed-tools: Read Grep Glob Bash
metadata:
  display-name: "Code Review For Test"
  version: "1.8.0"
  when-to-use: "用户说\"代码评审\"、\"CR\"、\"测试视角\"、\"看代码\"、\"代码变更\"、\"Diff\"、需要从测试角度分析代码变更、代码变更后需要确定测试范围时"
  related-skills: "{\"upstream\":[\"qa-boundary-deep-dive\",\"qa-risk-intuition\"],\"downstream\":[\"qa-execution-observation\",\"qa-test-strategy-design\",\"qa-regression-testing\"]}"
  references: "[\"references/cr-lens.md\"]"
  input-format: "{\"required\":[{\"name\":\"代码变更\",\"type\":\"string\",\"description\":\"代码变更的diff或描述\"},{\"name\":\"测试用例\",\"type\":\"array\",\"description\":\"相关测试用例列表\"}],\"optional\":[{\"name\":\"需求文档\",\"type\":\"string\",\"description\":\"相关功能需求\"}]}"
  output-format: "{\"traceability\":[\"每次代码评审带唯一ID(CR-XXXX)\",\"关联变更ID或需求ID\"],\"structure\":[\"覆盖率:标注口径(基于现有需求/输入文档),禁止\\\"全覆盖/100%\\\"绝对化表述;缺失模块标注\\\"未覆盖+原因\\\"\",{\"review_findings\":\"代码评审发现\"},{\"test_gaps\":\"测试遗漏点\"},{\"impact_analysis\":\"变更影响分析\"},{\"high_risk_patterns\":\"高危模式识别\"},{\"regression_scope\":\"回归测试范围建议\"}]}"
  error-recovery-guidance: "{\"on_failure\":\"代码变更分析遗漏依赖时回退到边界分析补充\",\"retry_behavior\":\"补全依赖分析后重新确定回归范围\"}"
  categories: "[\"Development\",\"Team\"]"
  depth-requirement: "{\"reference_value\":\"根据代码变更量调整评审深度:简单×1/中等×2/复杂×3\",\"minimum\":\"至少分析变更类型、影响范围、回归范围3个维度\"}"
---
> ⚠️ 本技能单独使用效果有限,建议配合完整技能集(12 步工作流)使用。安装:npx skills add Kokxi/qa-test-skills

> **⚠️ 安全警告**:本技能的示例可能涉及代码变更分析(新增/修改/删除/重构)。
> 实际使用时请勿直接基于评审结论修改源码,先与开发确认变更范围和回归风险。
> 本技能仅在 workspace/ 输出评估文件,不持久化、不外传、不跨会话复用。

# 测试视角的代码评审

## 核心原则

看代码不是为了Review代码质量,而是判断变更影响范围、识别需要重点回归的区域。

> **代码读取许可**:本技能需要读取代码变更(git diff)进行分析,仅关注测试影响,不评估代码质量。

## 深度要求(参考值)

**关键指标**:根据代码变更复杂度调整CR深度

| 复杂度 | CR检查点要求 | 说明 |
|--------|-------------|------|
| 简单变更 | 5-8个检查点 | 单文件/配置/文案变更 |
| 中等变更 | 12-20个检查点 | 多文件/逻辑修改 |
| 复杂变更 | 25-40个检查点 | 重构/重写/核心模块变更 |

## 加载时机

| 什么时候读 | 读哪个 |
|-----------|--------|
| 从测试角度评审代码变更时 | [`references/cr-lens.md`](references/cr-lens.md) |

> `测试视角CR四看`的完整内容已下沉至 `references/cr-lens.md`,避免每次触发都占用上下文。

## 代码评审检查清单

### 功能变更检查
- [ ] 业务逻辑是否正确?
- [ ] 边界条件是否处理?
- [ ] 异常处理是否完善?
- [ ] 数据校验是否完整?

### 数据变更检查
- [ ] 数据库变更是否兼容?
- [ ] 数据迁移是否安全?
- [ ] 索引变更是否影响性能?
- [ ] 数据一致性是否保证?

### 接口变更检查
- [ ] 接口入参是否兼容?
- [ ] 接口出参是否变化?
- [ ] 错误码是否变化?
- [ ] 文档是否更新?

### 配置变更检查
- [ ] 配置项是否新增?
- [ ] 默认值是否合理?
- [ ] 环境差异是否考虑?
- [ ] 回滚方案是否准备?

### 性能变更检查
- [ ] 是否有性能影响?
- [ ] 是否有内存泄漏风险?
- [ ] 是否有并发问题?
- [ ] 是否有资源竞争?

## 应用场景

**开发提交了登录模块的代码变更**
→ CR四看分析:
  - 看diff:修改了LoginController.java,新增密码加密逻辑
  - 看影响:影响登录流程、密码验证、Session创建
  - 看风险模式:加密算法变更可能导致兼容性问题
  - 看测试建议:回归登录成功/失败流程,新增加密算法兼容性测试

**配置项变更(数据库连接池大小调整

_meta.json

{
  "ownerId": "kn71y9b23csfx0ykgm55d5m9x5891zt8",
  "slug": "qa-code-review-for-test",
  "version": "1.8.0",
  "publishedAt": 1790655962937
}

references/cr-lens.md

# 测试视角 CR 四看详解

> 本文是 `qa-code-review-for-test` 的**测试视角 CR 四看详解**。从测试角度评审代码变更时读本文;
其余部分留在 SKILL.md,不必读本文。

---


### 第1看:看diff(改了什么)

```text
分析维度:
├─ 新增文件:新增了哪些文件?
├─ 修改文件:修改了哪些文件?
├─ 删除文件:删除了哪些文件?
├─ 代码行数:新增/修改/删除多少行?
└─ 变更类型:功能/修复/重构/配置?

关注点:
- 核心逻辑变更
- 数据库变更
- 配置变更
- 接口变更
```

### 第2看:看影响(波及哪里)

```text
分析维度:
├─ 调用方:哪些地方调用了这个方法?
├─ 数据流向:数据从哪来、到哪去?
├─ 接口变更:对外接口有没有变?
├─ 数据库变更:表结构/索引有没有变?
└─ 配置变更:配置项有没有变?

关注点:
- 影响范围评估
- 需要回归的区域
- 需要新增的测试场景
```

### 第3看:看风险模式(有什么风险)

```text
风险模式识别:
├─ 静态数据变化:硬编码的值变了
├─ 超时/重试:涉及超时或重试逻辑
├─ 异常吞没:异常被catch但没处理
├─ 并发处理:涉及多线程/分布式锁
├─ 状态管理:涉及状态变更
├─ 权限控制:涉及认证/授权
├─ 数据转换:涉及格式/类型转换
└─ 外部依赖:涉及第三方服务

关注点:
- 每个风险模式对应的测试场景
- 需要重点验证的区域
```

### 第4看:看测试建议(怎么测)

```text
测试建议输出:
├─ 回归测试:哪些功能需要回归?
├─ 新增测试:需要新增哪些测试场景?
├─ 重点测试:哪些区域需要深测?
├─ 性能测试:是否需要性能测试?
└─ 安全测试:是否需要安全测试?

输出格式:
[变更描述]
├─ 影响范围:[影响的功能/模块]
├─ 回归范围:[需要回归的功能]
├─ 新增场景:[需要新增的测试场景]
├─ 重点区域:[需要深测的区域]
└─ 测试建议:[具体的测试建议]
```

skill-card.md

## Description:

Reviews code changes from a testing perspective to identify affected areas, high-risk patterns, and a focused regression test scope.

This skill is ready for commercial/non-commercial use.

## Publisher:

[kokxi](https://clawhub.ai/user/kokxi)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and testers use this skill to review pull requests or diffs for change impact, test gaps, and targeted regression scenarios.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The optional installation command fetches an unpinned package.

Mitigation: Only install from a trusted source, or pin and verify the package first.

Risk: The review reads repository diffs and related code, which may contain sensitive information.

Mitigation: Limit access to the intended repository and avoid sharing sensitive code in review outputs.

## Reference(s):

- [Testing-focused code review lens](references/cr-lens.md)
- [ClawHub skill release](https://clawhub.ai/kokxi/skills/qa-code-review-for-test)

## Skill Output:

**Output Type(s):** [Analysis, Guidance]

**Output Format:** [Markdown]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes review findings, test gaps, impact analysis, risk patterns, and a regression scope with a review ID.]

## Skill Version(s):

1.8.0 (source: skill frontmatter and ClawHub release)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 2d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/kokxi/skills/qa-code-review-for-test",
      "sourceUrl": "https://clawhub.ai/kokxi/skills/qa-code-review-for-test",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T10:29:17.168Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-code-review-for-test/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-code-review-for-test/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T10:29:17.168Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1.1K downloads",
      "href": "https://clawhub.ai/kokxi/qa-code-review-for-test",
      "sourceUrl": "https://clawhub.ai/kokxi/qa-code-review-for-test",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T10:29:17.168Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.8.0",
      "href": "https://clawhub.ai/kokxi/qa-code-review-for-test",
      "sourceUrl": "https://clawhub.ai/kokxi/qa-code-review-for-test",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-09-29T04:26:02.937Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-code-review-for-test/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-code-review-for-test/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.8.0",
      "description": "Version 1.8.0 - Modularized documentation: moved “测试视角CR四看” to a new reference file (references/cr-lens.md) for better context management. - Updated SKILL.md metadata to include references, clarify usage triggers, and reflect the new file structure. - Improved SKILL.md conciseness by removing duplicate content and summarizing the invocation scenarios. - Removed redundant file (skill-card.md).",
      "href": "https://clawhub.ai/kokxi/qa-code-review-for-test",
      "sourceUrl": "https://clawhub.ai/kokxi/qa-code-review-for-test",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-09-29T04:26:02.937Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to qa-code-review-for-test and adjacent AI workflows.