AGENT SKILL
dual-verify
派两个子 Agent 独立探索同一问题,主 Agent 对比审核结果,防止单 Agent 幻觉。用于源码分析、架构理解、外部研究、重要事实核查等场景。
- License 许可
- MIT
- 所属仓库
- lucy971326/EDITH
- 最近更新
- 2026-08-18
- Stars
- ★ 71
- Forks
- 2
01 前言 Front Matter
- name
- dual-verify
- description
- 派两个子 Agent 独立探索同一问题,主 Agent 对比审核结果,防止单 Agent 幻觉。用于源码分析、架构理解、外部研究、重要事实核查等场景。
03 SKILL.md 正文
双源验证模式
当任务涉及源码探索、架构理解、外部研究、重要事实核查时,必须使用双 Agent 验证。
执行步骤
Step 1: 同时派出两个子 Agent
在同一条消息里发出两个 Agent 调用,让它们独立探索:
Agent A: 从 X 角度探索 [问题]
Agent B: 从 Y 角度探索 [问题]
关键原则:
- 两个 Agent 不能互相看到对方的结果
- 用不同的搜索路径或角度(如 A 读源码,B 读文档)
- 每个 Agent 的 prompt 必须自包含,不引用另一个 Agent 的输出
Step 2: 等待两个 Agent 都完成
两个 Agent 会并行运行,等待两个都返回结果。
Step 3: 主 Agent 对比审核
| 情况 | 处理方式 |
|---|---|
| A 和 B 结论一致 | ✅ 高置信度,直接采信 |
| A 和 B 细节不同 | ⚠️ 找出差异点,深入核实 |
| A 和 B 结论矛盾 | ❌ 不采信任何一方,自己读源码确认 |
Step 4: 报告结果
输出时标注:
- 哪些结论经过双源验证
- 哪些有差异需要澄清
- 最终可信结论是什么
适用场景
- 源码分析(函数调用链、数据流、模块职责)
- 架构理解(组件关系、设计模式)
- 外部研究(技术方案对比、最佳实践)
- 事实核查(API 行为、库的特性)
不适用场景
- 简单的文件查找(Glob/Grep 就够了)
- 已知明确答案的问题
- 紧急修复(先修再验证)
示例 Prompt
# Agent A
Explore the SQLite session service to understand how session_events
is written. Focus on the addEvent() function in service_helper.go.
Report the exact write condition and which functions call it.
# Agent B
Investigate the same topic from the runner perspective. How does
the base runner (not AG-UI) write to the session? Search for
AppendEvent calls in the runner package.
Report which tables get written and through what code paths.
04 同仓库更多 Skills
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends EDITH's capabilities with specialized knowledge, workflows, or tool integrations.
★ 71
cold-joke-explainer
拆解冷笑话的笑点机制(谐音/双关/反转/逻辑错位),让听者"懂一下"。适用于用户给出冷笑话并请求解释,或希望把笑点讲清楚的场景。
★ 71
skill-creator
创建或更新用户私有 Skills。用户要求新增可复用的专业能力、工作流、领域规范,或要求修改已有用户 Skill 时使用。
★ 71
concept-explanation
从问题倒推概念:先重建困境,再揭示本质,最后用跨领域类比建立心智模型
★ 71
skill-creator
创建或更新 EDITH Skill,把可复用的工作方法、领域知识和资源组织成结构清晰的 Skill。当用户要求新增 Skill、修改已有 Skill、为某类任务沉淀流程时使用。
★ 71
current-time
需要知道当前时间时,调用 get_current_time 工具。
★ 71