unified-deliverable-workflow
它能做什么
这项技能是一份计划,用于一起制作多个相关文件,并为每个文件设定固定的尝试次数。适合需要配套的电子表格、示意图和报告的人。
适用场景
- ✓当一项任务同时要求 Excel 文件、示意图和 PDF 报告时。
- ✓当我希望分配工作,使任何单个文件都不会耗尽全部可用步骤时。
- ✓当我需要在沙盒出错时仍能完成整个任务时。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pdf-checklist-workflow-enhanced-780c5d/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我们的季度评审制作一份 Excel 数据表、一张流程图和一份 PDF 摘要报告。请规划步骤,确保三者都能完成。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 先检查工作区和工具,然后依次制作电子表格、示意图和 PDF,每个文件有固定的尝试次数,并预留少量次数用于恢复。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Unified Multi-Deliverable Workflow
This skill provides a structured pattern for creating multiple document artifacts (spreadsheets, diagrams, PDF reports) in a single workflow with explicit iteration budgeting and robust error handling.
Overview
Use this workflow when you need to:
- Generate multiple related deliverables (Excel, PNG diagrams, PDF reports)
- Manage iteration budget across different artifact types
- Handle execute_code_sandbox failures gracefully
- Ensure all deliverables are completed before budget exhaustion
- Create cohesive documentation packages with cross-referenced content
Iteration Budget Template
Default Allocation (adjust based on task complexity):
| Phase | Deliverable | Iterations | Validation |
|---|---|---|---|
| 1 | Spreadsheet (.xlsx) | 8-10 | File exists, readable, correct structure |
| 2 | Diagram (.png) | 8-10 | File exists, viewable, correct dimensions |
| 3 | PDF Report (.pdf) | 8-10 | File exists, downloadable, proper formatting |
| Buffer | Error recovery | 4-6 | Retry failed phases |
Total recommended budget: 30-36 iterations
Pre-Flight Checks (Iteration 1-2)
Before generating any deliverables:
- Verify workspace path: Always use
/workspace/as base directory - Test execute_code_sandbox: Run a simple print statement to confirm tool works
- Check required libraries: Plan to install via
!pip installif needed - Standardize filenames: Use consistent naming pattern (e.g.,
projectname_deliverable.ext)
# Quick sandbox test
print("SANDBOX_OK")
print(f"WORKSPACE_PATH:/workspace")
If this fails, use run_shell as fallback for file operations.
Phase 1: Spreadsheet Creation (Iterations 3-12)
Step 1.1: Plan Structure
Define your spreadsheet structure before coding:
- Sheet names
- Column headers
- Data types
- Any formulas or formatting
Step 1.2: Write Generation Code
Using openpyxl (recommended for .xlsx):
# Install if needed
# !pip install openpyxl
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill, Alignment
wb = Workbook()
ws = wb.active
ws.title = "Data"
# Header row with styling
headers = ["Item", "Description", "Value", "Status"]
for col, header in enumerate(headers, 1):
cell = ws.cell(row=1, column=col, value=header)
cell.font = Font(bold=True)
cell.fill = PatternFill(start_color="CCCCCC", end_color="CCCCCC", fill_type="solid")
cell.alignment = Alignment(horizontal="center")
# Data rows
data = [
["Item 1", "Description 1", 100, "Complete"],
["Item 2", "Description 2", 200, "Pending"],
]
for row_idx, row_data in enumerate(data, 2):
for col_idx, value in enumerate(row_data, 1):
ws.cell(row=row_idx, column=col_idx, value=value)
# Auto-adjust column widths
for column in ws.columns:
max_length = 0
column_letter = column[0].column_letter
for cell in column:
try:
if len(str(cell.value)) > max_length:
max_length = len(str(cell.value))
except:
pass
adjusted_width = min(max_length + 2, 50)
ws.column_dimensions[column_letter].width = adjusted_width
# Save with standard path
output_path = "/workspace/hardware_selection_table.xlsx"
wb.save(output_path)
print(f"ARTIFACT_PATH:{output_path}")
print("SPREADSHEET_GENERATED")
Step 1.3: Execute and Validate
execute_code_sandbox
code: <your spreadsheet code>
language: python
Validation checklist:
- ARTIFACT_PATH output present
- File exists:
run_shell command: ls -lh /workspace/*.xlsx - File size > 1KB
- No error messages in output
Step 1.4: Error Recovery
| Error | Recovery Action |
|---|---|
| Library not found | Add !pip install openpyxl at code start |
| '[ERROR] unknown error' | Retry once, then try simpler code structure |
| File not created | Check path is /workspace/ not ./ or /tmp/ |
| Permission denied | Ensure no file lock from previous execution |
If 2 consecutive failures: Skip to Phase 2 and return later with reduced scope.
Phase 2: Diagram Generation (Iterations 13-22)
Step 2.1: Choose Diagram Type
| Type | Library | Best For |
|---|---|---|
| Flowchart | graphviz or matplotlib |
Process flows, decision trees |
| Layout/Diagram | matplotlib |
Physical layouts, workcell designs |
| Network/Topology | networkx + matplotlib |
System architecture |
| Simp |
常见问题
每个文件有多少步?
指南建议每个文件约八到十次尝试,并预留几次。
每个文件检查什么?
会检查文件是否存在,以及是否可以读取或查看。
如果某个文件超出预算怎么办?
指南要求为该文件切换到备用方法。
详情
作者的原始描述
Generate spreadsheets, diagrams, and PDF reports with iteration budgeting and error recovery
repo: HKUDS/AgentPilot
热度
- GitHub 星标
- 7.8k
- 排名
- #12910
- 许可证
- 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帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。