Files
rag_agent/.github/skills/format-output/SKILL.md

78 lines
1.7 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.
---
name: format-output
description: "当需要将测试项、测试用例、预期成果按统一格式输出时使用。"
---
# format-output
## 目标
将测试链路中生成的结构化数据整理为标准化三段式输出,确保可读性与追踪关系。
## 输入
- normal_test_items
- abnormal_test_items
- normal_test_cases
- abnormal_test_cases
- normal_expected_results
- abnormal_expected_results
- coverage_analysis可选
- method_alignment_report可选
- debug可选
## 输出
- markdown_output
## 强制规则
1. 输出必须包含三段:测试项、测试用例、预期成果。
2. 每段必须按正常测试与异常测试分组。
3. 编号必须保持追踪关系:
- 测试项编号TI-Nxx / TI-Exx
- 测试用例编号TC-Nxx / TC-Exx
- 预期成果编号ER-Nxx / ER-Exx
4. 测试用例必须显示对应测试项;预期成果必须显示对应测试用例。
5. 任一分段数据为空时,必须显式输出待补充,不允许静默省略。
6. 每条输出使用一段完整描述,不强制拆分为多个字段子项。
## 输出模板
**测试项**
**正常测试**
1. [TI-N01]...
**异常测试**
1. [TI-E01]...
**测试用例**
**正常测试**
1. [TC-N01](对应 TI-N01...
**异常测试**
1. [TC-E01](对应 TI-E01...
**预期成果**
**正常测试**
1. [ER-N01](对应 TC-N01...
**异常测试**
1. [ER-E01](对应 TC-E01...
## 调试模式
当 debug=true 时追加:
### 覆盖率分析
- requirement_coverage_rate
- uncovered_points
- recommended_supplementary_items
### 方法对齐分析
- method_alignment_report
### 步骤日志
- step_name
- success
- fallback_used
- duration_ms