Loading...
Loading...
Compare original and translation side by side
1. IDENTIFY → What independent task needs an agent?
2. DEFINE → Role, inputs, process, outputs
3. DESIGN → Step-by-step instructions
4. CREATE → Write agent.md following the pattern1. 识别 → 哪些独立任务需要agent?
2. 定义 → 角色、输入、流程、输出
3. 设计 → 分步执行指令
4. 创建 → 按照模板编写agent.mdundefinedundefined{output_path}{output_path}{
"field": "value"
}{
"field": "value"
}undefinedundefinedskill-name/agents/.trae/agents/~/.trae/agents/skill-name/agents/.trae/agents/~/.trae/agents/| Pattern | Why Agent? | Example |
|---|---|---|
| Grader | Needs objectivity | Output evaluator |
| Comparator | Blind comparison | A/B tester |
| Analyzer | Deep dive, isolated context | Performance analyzer |
| Transformer | Parallel processing | File converter |
| Researcher | Independent investigation | Doc researcher |
| 模式 | 为何选择Agent? | 示例 |
|---|---|---|
| 评分器 | 需要客观性 | 输出评估器 |
| 比较器 | 盲态比较 | A/B测试器 |
| 分析器 | 深度分析、隔离上下文 | 性能分析器 |
| 转换器 | 并行处理 | 文件转换器 |
| 研究员 | 独立调研 | 文档研究员 |
User: "I need an agent to grade code review outputs"
📄 review-grader.md用户:"我需要一个agent来评估代码评审输出"
📄 review-grader.md{output_path}/grading.json{output_path}/grading.json{
"expectations": [
{"text": "...", "passed": true, "evidence": "..."}
],
"summary": {"passed": 4, "failed": 1, "pass_rate": 0.80}
}{
"expectations": [
{"text": "...", "passed": true, "evidence": "..."}
],
"summary": {"passed": 4, "failed": 1, "pass_rate": 0.80}
}undefinedundefined