Files
cobol-java-v3/CLAUDE.md
T
NB-076 2f61ad7f1a feat: 集成code-review skill到项目
- 项目级 skill: .claude/skills/code-review/ (398行SKILL.md + 参考文件)
- 自动触发: AI修改.py/.cbl/.cpy/.lark后自动review
- CLAUDE.md: 定义触发规则、review流程、严重级别
- .code-review.yaml: tier=standard, 高风险模块配置

效果: clone即用, 每次代码变更后自动审查, 防止低质量代码入库
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-25 10:24:15 +08:00

39 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# COBOL Test Data Generator — 项目指令
## 代码审查(自动触发)
本项目集成了 `code-review` skill(位于 `.claude/skills/code-review/`)。
### 触发规则
- **自动触发**AI 生成或修改 `.py` / `.cbl` / `.cpy` / `.lark` 文件后,自动执行 code-review
- **手动触发**:说 "审查代码"、"review"、"验收"、"检查代码"
### review 流程
1. Layer 1:链分解(Interface / Business / Data / Utility / Error / Security / Performance
2. Layer 2:量化指标(需求覆盖、异常分支、SQL风险等)
3. Layer 3:优化标准 + 输出 HTML 报告
### 严重级别
| 级别 | 含义 | 处理 |
|:----:|------|------|
| 🔴 Blocker | 必须立即修复 | ❌ FAIL,不可合并 |
| 🟡 Major | 合并前应修复 | ⚠️ 建议修复 |
| 🔵 Minor | 可后续优化 | — |
### 配置
参见 `.code-review.yaml` 调整 review 严苛程度(fast / standard / strict)。
## 项目结构
```
cobol_testgen/ # 核心代码
test-data/ # 测试套件
benchmark-programs/ # 测试基准(58 电信程序)
.claude/skills/ # 项目级 skills
.code-review.yaml # code-review 配置
```