본문으로 건너뛰기
Skillpedia
PDF, Word, 슬라이드7.8k · #12908

pdf-checklist-generation

하는 일

이 스킬은 체크리스트, 점수표, 보고서 같은 구조화된 PDF 문서를 Python으로 만드는 방법을 보여 줍니다. 표와 점수 기준이 들어간 다운로드 가능한 PDF가 필요한 사람에게 맞습니다.

사용하는 경우

  • ✓다운로드 가능한 PDF 체크리스트나 평가표가 필요할 때.
  • ✓PDF에 표, 섹션, 채점 기준이 필요한 경우.
  • ✓차트나 그래프가 포함된 보고서를 원할 때.

스킬 링크

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pdf-checklist-generation/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pdf-checklist-generation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“온보딩 과정을 위한 PDF 체크리스트를 만들어 주세요. 섹션, 항목 표, 점수 열을 넣어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 Python PDF 라이브러리를 고르고, 제목, 섹션, 표가 있는 스크립트를 쓰고, 파일을 저장한 뒤 다운로드할 수 있도록 경로를 알려 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

  1. Keep it simple: Start with basic layouts before adding complexity
  2. Test incrementally: Generate a minimal PDF first, then add features
  3. Handle errors: Wrap PDF generation in try/except blocks
  4. Verify file existence: Always confirm the PDF was created before proceeding
  5. 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
자주 묻는 질문

어떤 라이브러리가 제공되나요?

가이드는 세부 레이아웃용 reportlab, 간단한 문서용 fpdf, 차트용 matplotlib을 나열합니다.

표에는 어떤 라이브러리가 좋나요?

가이드의 템플릿은 표와 정밀한 레이아웃에 reportlab을 추천합니다.

사용자는 파일을 어떻게 받나요?

스크립트가 PDF를 저장하고 결과 파일 경로를 출력하므로 다운로드할 수 있습니다.

상세 정보

작성자의 원본 설명

Generate structured PDF checklists and reports using Python libraries in sandbox

repo: HKUDS/AgentPilot

인기도

GitHub 스타
7.8k
순위
#12908
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬