integrated-report-bundle
它能做什么
这项技能描述了一种可重复的方法,用三个相关文件制作完整的报告包。适合需要数据、可视化图和摘要一并交付的人。
适用场景
- ✓当一项任务需要同一主题的数据表、可视化示意图和摘要 PDF 时。
- ✓当我希望这些文件作为一个整体彼此匹配时。
- ✓当工作可能遇到沙盒错误、需要预留恢复空间时。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pdf-checklist-workflow-enhanced-a53b26/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我制作一份项目评分的数据表、一张可视化布局图和一份摘要 PDF,并打包成一套交付。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 先准备工作区,然后分阶段制作电子表格、示意图和 PDF,并预留几次尝试次数用于修复错误。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Integrated Report Bundle Workflow
This skill provides a reusable pattern for creating a complete report package consisting of three interconnected deliverables: a spreadsheet (data table), a diagram (visual layout), and a PDF report (summary document). Designed for resilience with explicit iteration budgeting and workspace management.
Overview
Use this workflow when you need to:
- Generate multiple interconnected deliverables in a single task
- Create data spreadsheets with structured tables
- Produce visual diagrams (PNG/SVG) for layouts or workflows
- Generate summary PDF reports with scoring or assessments
- Manage iteration budgets across multiple components
- Handle sandbox execution failures gracefully
Critical: Iteration Budget Allocation
Total budget must be divided across deliverables:
| Deliverable | Recommended Budget | Purpose |
|---|---|---|
| Spreadsheet | 8-10 iterations | Data gathering, table creation, validation |
| Diagram | 8-10 iterations | Visual generation, layout refinement |
| PDF Report | 8-10 iterations | Report assembly, formatting, final output |
| Buffer | 2-4 iterations | Error recovery, verification, fixes |
Never spend entire budget on one deliverable. Track iterations explicitly.
Step-by-Step Instructions
Phase 0: Workspace Preparation (1 iteration)
Before generating any deliverables, establish clean workspace state:
# Check current workspace state
ls -la /workspace/
# Create dedicated output directory
mkdir -p /workspace/deliverables
# Verify write permissions
touch /workspace/deliverables/test.tmp && rm /workspace/deliverables/test.tmp
Why: Prevents workspace path confusion that caused previous failures.
Phase 1: Spreadsheet Creation (8-10 iterations max)
Step 1.1: Choose Approach
| Mode | Tool | Use When |
|---|---|---|
| A | execute_code_sandbox with openpyxl/pandas |
Programmatic table generation |
| B | shell_agent with Python script |
Complex data processing |
| C | create_file (CSV/XLSX) |
Simple tabular data |
Step 1.2: Generate Spreadsheet Code
Example using openpyxl:
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill, Alignment
wb = Workbook()
ws = wb.active
ws.title = "Hardware Selection"
# Headers with styling
headers = ["Component", "Model", "Qty", "Unit Price", "Total"]
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="4472C4", fill_type="solid")
cell.font = Font(color="FFFFFF", bold=True)
# Data rows
data = [
["CNC Controller", "Fanuc 0i-MF", 1, 2500, 2500],
["Servo Motor", "SGM7G-09A", 4, 450, 1800],
["HMI Panel", "GT2110-WTBD", 1, 380, 380]
]
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)
# Total row
ws.cell(row=len(data)+2, column=4, value="TOTAL:")
ws.cell(row=len(data)+2, column=5, value=f"=E2:E{len(data)+1}")
# Save
output_path = '/workspace/deliverables/hardware_selection_table.xlsx'
wb.save(output_path)
print(f'ARTIFACT_PATH:{output_path}')
print('Spreadsheet created successfully')
Step 1.3: Execute and Verify
execute_code_sandbox
code: <spreadsheet generation code>
language: python
Verification (use 1 iteration):
run_shell
command: ls -lh /workspace/deliverables/*.xlsx && file /workspace/deliverables/*.xlsx
If execute_code_sandbox fails with '[ERROR] unknown error':
- Retry once with
shell_agentinstead - If still failing, fall back to
create_filewith CSV format - Document the failure and proceed to next deliverable
Iteration checkpoint: After 8 iterations on spreadsheet, move to diagram regardless of completion status.
Phase 2: Diagram Generation (8-10 iterations max)
Step 2.1: Choose Diagram Type
| Type | Tool | Best For |
|---|---|---|
| Flowchart | graphviz + pydot |
Process flows, decision trees |
| Layout | matplotlib + patches |
Physical layouts, workcells |
| Architecture | diagrams library |
System architecture |
| Simple shapes | PIL/Pillow |
Basic diagrams |
Step 2.2: Generate Diagram Code
Example using matplotlib for layout diagram:
import matplotlib.pyplot as plt
import matplotlib.patches as patches
fig, ax = plt.subplots(fi
常见问题
为什么要预留几次尝试?
指南保留一小部分余量,用于恢复、核验和修复。
示意图阶段包括什么?
包括生成视觉图像并优化布局。
文件保存在哪里?
先准备工作区,使三个输出都保存在同一个地方。
详情
作者的原始描述
Generate spreadsheet, diagram, and PDF report as a cohesive deliverable set with iteration budgeting per component
repo: HKUDS/AgentPilot
热度
- GitHub 星标
- 7.8k
- 排名
- #12911
- 许可证
- 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帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。