Skip to content

Commit cdb1e60

Browse files
author
Ubuntu
committed
feat: 完善 skill,加入测试学习
新增内容: - 常见问题与解决方案(4个) - node --test 目录语法错误 - 测试进程挂起(--test-force-exit) - CI 与现有 workflow 重复 - CodeRabbit 反馈处理 版本:2.0.0 → 2.1.0
1 parent d06f13f commit cdb1e60

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

skill/SKILL.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: auto-pr-workflow
33
description: "Agent 自主提交高质量 PR 的完整能力 — 深度分析项目 → 制定策略 → 调用 Claude Code → 监控 CI → 回应审查"
4-
version: 2.0.0
4+
version: 2.1.0
55
author: KuaaMU
66
license: MIT
77
metadata:
@@ -141,6 +141,44 @@ auto-pr review # 查看审查反馈
141141
- 不分析项目(Agent 分析)
142142
- 不生成内容(Agent 或 Claude Code 生成)
143143

144+
## 常见问题与解决方案
145+
146+
### 1. node --test 目录语法错误
147+
148+
**问题**`node --test test/` 尝试将目录作为模块加载
149+
150+
**解决**:使用 glob 模式
151+
```bash
152+
node --test test/*.test.js
153+
```
154+
155+
### 2. 测试进程挂起
156+
157+
**问题**:测试通过但进程不退出(SQLite、WebSocket 等保持连接)
158+
159+
**解决**:使用 --test-force-exit
160+
```bash
161+
node --test --test-force-exit test/*.test.js
162+
```
163+
164+
### 3. CI 与现有 workflow 重复
165+
166+
**问题**:auto-pr init 生成的 CI 与项目现有 CI 功能重叠
167+
168+
**解决**
169+
- 先检查 `.github/workflows/` 已有配置
170+
- 选择互补策略,而不是重复
171+
- 优先修复现有 CI 的遗漏
172+
173+
### 4. CodeRabbit 反馈处理
174+
175+
**问题**:CodeRabbit 提出代码风格或项目规范问题
176+
177+
**解决**
178+
- 读取 CLAUDE.md 了解项目规范
179+
- 根据反馈更新代码或配置
180+
- 保持与项目现有风格一致
181+
144182
## Agent 能力清单
145183

146184
掌握这个 Skill 的 Agent 应该能够:

0 commit comments

Comments
 (0)