unified-deliverables-flow
它能做什么
这项技能规定了在一项任务中按阶段制作多种文件的方法,每个阶段都有固定预算。适合需要 Excel、图片和 PDF 输出、且不希望任何一种被遗漏的人。
适用场景
- ✓当一项任务同时要求 Excel 文件、图片和 PDF 时。
- ✓当我希望在开始下一个文件前,先确认每个文件已存在时。
- ✓当工具可能失败、每个文件都需要重试时。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pdf-checklist-workflow-enhanced/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 Generation Workflow
This skill provides a structured, phased approach for creating multiple deliverable types (spreadsheets, diagrams, PDF reports) in a single cohesive workflow with explicit iteration budgeting to prevent premature exhaustion.
Overview
Use this workflow when you need to:
- Generate multiple deliverable types (Excel, images, PDFs) in one task
- Ensure balanced iteration allocation across all deliverables
- Handle tool failures gracefully with retries and fallbacks
- Produce downloadable artifacts with verified paths
Critical: Iteration Budget Allocation
Allocate iterations BEFORE starting work:
| Phase | Deliverable | Budget | Checkpoint |
|---|---|---|---|
| Phase 1 | Spreadsheet | 8 iterations | File exists + readable |
| Phase 2 | Diagram | 8 iterations | File exists + >1KB |
| Phase 3 | PDF Report | 8 iterations | File exists + ARTIFACT_PATH output |
| Buffer | Error recovery | 6 iterations | Remaining for retries |
| Total | All deliverables | 30 iterations | All verified |
Rules:
- Complete each phase before moving to the next
- If a phase exceeds budget, use fallback strategy (see below)
- Never spend >10 iterations on a single deliverable without checkpoint
- Verify each deliverable before proceeding
Step-by-Step Instructions
Phase 0: Pre-Work Setup (1 iteration max)
Define all deliverables explicitly:
Deliverable 1: hardware_selection_table.xlsx (Excel with comparison data) Deliverable 2: cnc_workcell_layout.png (PNG diagram of layout) Deliverable 3: final_report.pdf (PDF summary report)Verify workspace is accessible:
run_shell command: ls -la /workspace/ && mkdir -p /workspace/artifactsSet path variables for consistency:
- All files go to
/workspace/or/workspace/artifacts/ - Use absolute paths in all code
- Never use relative paths like
./output.xlsx
- All files go to
Phase 1: Spreadsheet Generation (Budget: 8 iterations)
Step 1.1: Choose approach
| Method | Tool | Best For |
|---|---|---|
| Direct Python | execute_code_sandbox |
Quick generation, simple tables |
| Shell agent | shell_agent |
Complex logic, error recovery |
Step 1.2: Create spreadsheet code
from openpyxl import Workbook
from openpyxl.styles import Font, Alignment, Border, Side
def create_hardware_table():
wb = Workbook()
ws = wb.active
ws.title = "Hardware Selection"
# Headers with styling
headers = ["Component", "Option A", "Option B", "Option C", "Recommendation"]
for col, header in enumerate(headers, 1):
cell = ws.cell(row=1, column=col, value=header)
cell.font = Font(bold=True)
cell.alignment = Alignment(horizontal='center')
# Data rows
data = [
["Controller", "PLC-X100 ($500)", "PLC-Y200 ($650)", "PLC-Z300 ($800)", "PLC-Y200"],
["Motor", "Servo-500W ($300)", "Servo-750W ($400)", "Stepper-1kW ($250)", "Servo-750W"],
["Sensor", "Proximity-S1 ($50)", "Vision-V2 ($200)", "Laser-L3 ($150)", "Vision-V2"]
]
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 col in ws.columns:
max_length = max(len(str(cell.value)) for cell in col if cell.value)
ws.column_dimensions[col[0].column_letter].width = min(max_length + 2, 25)
output_path = '/workspace/hardware_selection_table.xlsx'
wb.save(output_path)
print(f'SUCCESS: Spreadsheet created at {output_path}')
print(f'ARTIFACT_PATH:{output_path}')
return output_path
create_hardware_table()
Step 1.3: Execute with verification
execute_code_sandbox
code: <spreadsheet code from Step 1.2>
language: python
Step 1.4: Verify (REQUIRED before proceeding)
run_shell
command: ls -lh /workspace/*.xlsx && python3 -c "import openpyxl; openpyxl.load_workbook('/workspace/hardware_selection_table.xlsx')"
Checkpoint criteria:
- ✓ File exists
- ✓ Size > 1KB
- ✓ No errors opening file
- ✗ If failed, retry once with shell_agent, then proceed to Phase 2 with note
Phase 2: Diagram Generation (Budget: 8 iterations)
Step 2.1: Choose diagram type and tool
| Diagram Type | Tool | Library |
|---|---|---|
| Flowchart/Bl |
常见问题
示意图要检查什么?
指南会检查图片文件是否存在,并且大于最小尺寸。
PDF 要检查什么?
指南会检查文件是否存在,以及是否打印出了输出路径。
如果某个阶段超出预算怎么办?
指南要求对该阶段使用备用策略。
详情
作者的原始描述
Generate spreadsheets, diagrams, and PDF reports in a phased workflow with explicit iteration budgets and error recovery
repo: HKUDS/AgentPilot
热度
- GitHub 星标
- 7.8k
- 排名
- #12912
- 许可证
- 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帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。