pdf-checklist-generation
What it does
This skill shows how to build structured PDF documents such as checklists, scorecards and reports with Python. It is for people who need a downloadable PDF with tables and scoring criteria.
When to use it
- ✓When I need a downloadable PDF checklist or assessment.
- ✓When the PDF needs tables, sections and a scoring rubric.
- ✓When I want a report with charts or graphs included.
Skill link
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pdf-checklist-generation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Make me a PDF checklist for our onboarding process, with sections, a table of items and a scoring column.”
5 new skills a week. 1 minute to read.
How it works
The AI picks a Python PDF library, writes a script with the title, sections and tables, saves the file and provides the path so it can be downloaded.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
PDF Checklist Generation
This skill provides a workflow for creating professional PDF documents (checklists, reports, scorecards) using Python libraries within an execute_code_sandbox environment.
When to Use
- Need to generate downloadable PDF reports or checklists
- Require structured documents with tables, sections, or scoring criteria
- Working in a sandbox environment without direct file system access
Available Libraries
Choose one based on your needs:
| Library | Best For | Complexity |
|---|---|---|
reportlab |
Professional layouts, tables, precise control | Medium |
fpdf |
Simple documents, quick generation | Low |
matplotlib |
Charts, graphs, visual reports | Medium |
Step-by-Step Workflow
Step 1: Install Required Library
!pip install reportlab # or fpdf, matplotlib
Step 2: Create PDF Generation Script
Example using reportlab:
from reportlab.lib.pagesizes import letter
from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph, Spacer
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.lib import colors
def create_checklist_pdf(filename, checklist_items):
doc = SimpleDocTemplate(filename, pagesize=letter)
styles = getSampleStyleSheet()
elements = []
# Title
elements.append(Paragraph("Assessment Checklist", styles['Heading1']))
elements.append(Spacer(1, 12))
# Table data
data = [['Item', 'Status', 'Score']]
for item in checklist_items:
data.append([item['name'], item['status'], item['score']])
# Create table
table = Table(data)
table.setStyle(TableStyle([
('BACKGROUND', (0, 0), (-1, 0), colors.grey),
('TEXTCOLOR', (0, 0), (-1, 0), colors.whitesmoke),
('ALIGN', (0, 0), (-1, -1), 'CENTER'),
('GRID', (0, 0), (-1, -1), 1, colors.black),
]))
elements.append(table)
doc.build(elements)
print(f"PDF created: {filename}")
# Usage
checklist = [
{'name': 'Security Check', 'status': 'Pass', 'score': 10},
{'name': 'Performance Test', 'status': 'Fail', 'score': 5},
]
create_checklist_pdf('report.pdf', checklist)
Step 3: Execute in Sandbox
Run the script using execute_code_sandbox:
execute_code_sandbox(code="<your pdf generation code>")
Step 4: Verify Output
After generation, verify the PDF was created:
read_file(path="report.pdf")
Or inspect via shell:
execute_code_sandbox(code="import os; print(os.path.exists('report.pdf'))")
Best Practices
- Keep it simple: Start with basic layouts before adding complexity
- Test incrementally: Generate a minimal PDF first, then add features
- Handle errors: Wrap PDF generation in try/except blocks
- Verify file existence: Always confirm the PDF was created before proceeding
- Use UTF-8: Ensure text encoding is proper for special characters
Common Pitfalls
- Forgetting to install the library before import
- Not checking if file was created successfully
- Using paths that don't exist in sandbox environment
- Missing required dependencies for advanced features
Troubleshooting
| Issue | Solution |
|---|---|
| Import error | Run !pip install <library> first |
| File not found | Check working directory with !pwd |
| Blank PDF | Ensure doc.build() is called |
| Encoding issues | Use Unicode strings, specify encoding |
FAQ
Which libraries are offered?
The guide lists reportlab for detailed layouts, fpdf for simple documents and matplotlib for charts.
Which library is best for tables?
The guide's template suggests reportlab for tables and precise layouts.
How does the user get the file?
The script saves the PDF and prints an artifact path so the file can be downloaded.
Details
Original description by the author
Generate structured PDF checklists and reports using Python libraries in sandbox
repo: HKUDS/AgentPilot
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #12908
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.