resilient-research-workflow
它能做什么
这套工作流指导智能体即使在搜索工具失败时也能收集网络数据,然后把这些数据转化为经过验证的 Excel 工作簿。适合需要把研究结果整理成可靠表格的人。
适用场景
- ✓当你需要当前的网络数据,例如价格或市场信息,用于表格的时候。
- ✓当之前的搜索调用失败或结果不一致的时候。
- ✓当研究结果必须先经过检查,才能放入带有指定工作表和列的工作簿时。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-proof-gate-merged/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请查询这五种产品的当前价格,并按我指定的工作表制作 Excel 对比表。完成前请先检查工作簿。”
每周 5 个新技能,1 分钟读完。
工作原理
如果网络搜索失败,智能体会把研究工作交给 shell 智能体。随后它检查收集到的数据,制作工作簿,并用读取已保存文件的 Python 脚本进行验证。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Resilient Research-to-Spreadsheet Workflow
Use this skill when you must gather web-based information AND produce verified Excel workbooks, with particular emphasis on handling tool failures gracefully and proving final outputs against explicit criteria.
This skill combines:
- Phase A: Resilient web research with automatic failure detection and shell_agent delegation
- Phase B: Research data validation before spreadsheet integration
- Phase C: Anchored spreadsheet proof gate for workbook creation/editing
- Cross-phase gates: Explicit handoff criteria between research and spreadsheet phases
This is an end-to-end workflow skill. It requires:
- autonomous retry logic for web research (via shell_agent when needed)
- direct Python verification of research outputs
- deterministic spreadsheet proof methodology before finalizing
When to use
Use this skill when ANY of the following are true:
Research-phase triggers:
- You need current web-based data (prices, market info, competitor analysis, etc.)
- Prior search_web calls have failed or returned inconsistent results
- The task requires multi-step data collection from multiple sources
- You need resilient data gathering that can adapt to tool instability
Spreadsheet-phase triggers:
- You must create or modify an Excel workbook based on research data
- The user requires exact sheet names, columns, counts, or samples
- Prior summaries are inconsistent or not trustworthy
- Exact post-edit workbook state matters
- You must prove that mandatory criteria were satisfied
Both phases:
- A delegated agent may perform parts of the work
- Tool instability has been observed in the task context
- The task has failed previously due to tool errors
Core rules
Rule 1: Detect and escalate research failures
When search_web returns errors like:
- "unknown error"
- Empty or incomplete results
- Consistent failures across multiple queries (>2 failures)
Immediately delegate to shell_agent rather than retrying the same failing tool.
Rule 2: Never finalize from narrative summary alone
A spreadsheet task is only complete when:
- The target workbook was identified from the anchored workspace path
- Pre-edit structure matched the intended operation
- The edit was performed on the correct file
- The saved workbook was directly re-read from disk
- Every requested criterion was checked in a deterministic verification report
- Each criterion is marked as one of:
PASS,FAIL, orUNAVAILABLE-IN-SOURCE - Any non-pass result is explicitly reconciled before finalizing
Rule 3: Workspace anchoring is absolute
All discovery, reads, writes, and verification must be anchored to the exact workspace path provided for the task.
- Treat the provided workspace path as the authoritative root
- Resolve workbooks to exact paths under that root
- Do not silently switch to similarly named files elsewhere
- Do not trust delegated tool reports without independent confirmation
- If the anchored file cannot be found, stop rather than guessing
Rule 4: Research criteria flow into spreadsheet criteria
The data you gather in Phase A becomes part of the verification criteria in Phase C. Track:
- What data was required vs. what was obtained
- Which sources were used
- Which data points could not be obtained (and why)
- How missing data affects spreadsheet requirements
Outcome contract
Your output should be based on proof, not inference.
For every task using this workflow, maintain these artifacts internally:
- Research inventory: sources tried, data obtained, failures encountered
- Pre-edit audit checklist: workbook structure before modification
- Post-write proof checklist: deterministic verification of every spreadsheet criterion
The post-write proof checklist is decisive for spreadsheet claims. The research inventory is decisive for data coverage claims.
Workflow
Phase A: Resilient Web Research
Step A1: Attempt direct search
First, try search_web with your primary query:
search_web(query="your specific query with date/context")
Step A2: Detect failure patterns
Monitor for these failure signals:
- Return error messages ("unknown error", "connection failed", etc.)
- Empty results or clearly incomplete data
- Repeated failures on related queries
Failure threshold: If search_web fails 2+ times on the same or related queries, escalate to shell_agent.
Step A3: Delegate to shell_agent
常见问题
搜索失败时会怎样?
技能要求把研究工作交给一个 shell 智能体,它可以重试并尝试其他来源。
研究结果在放入表格之前会被检查吗?
会的,技能在表格工作开始之前包含一个验证阶段。
工作簿如何验证?
一个 Python 脚本会读取已保存的工作簿,确认所需的工作表、列和数量。
详情
作者的原始描述
Unified workflow that delegates failed web searches to shell_agent for resilient data gathering, then applies anchored spreadsheet proof gates for verified Excel output
repo: HKUDS/AgentPilot
热度
- GitHub 星标
- 7.8k
- 排名
- #13018
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
agentpilot
7.8k帮你的智能体准备任务并运行 AgentPilot 循环,逐步改进项目:循环会提出修改、测试修改并为其打分。
openspace
7.8k帮你的智能体设置 OpenSpace,这是一个用于存储和获取智能体技能的工具,并通过 MCP 将其连接到你的 AI 应用。
rsi-arena
7.8k帮你的智能体设置并运行标准 AI 基准测试,例如 AIME 和 Terminal-Bench,用来比较不同的改进方法。
experiment-guide
7.8k帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。