मुख्य सामग्री पर जाएँ
Skillpedia
PDF, Word और स्लाइड7.8k · #12908

pdf-checklist-generation

यह क्या करती है

यह स्किल Python से चेकलिस्ट, स्कोरकार्ड और रिपोर्ट जैसे संरचित PDF दस्तावेज़ बनाने का तरीका बताती है। यह उन लोगों के लिए है जिन्हें तालिकाओं और स्कोरिंग मानदंडों वाली डाउनलोड करने योग्य PDF चाहिए।

कब इस्तेमाल करें

  • ✓जब मुझे डाउनलोड करने योग्य PDF चेकलिस्ट या मूल्यांकन चाहिए।
  • ✓जब PDF में तालिकाएँ, खंड और स्कोरिंग रूब्रिक चाहिए।
  • ✓जब मुझे चार्ट या ग्राफ़ शामिल वाली रिपोर्ट चाहिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pdf-checklist-generation/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारी ऑनबोर्डिंग प्रक्रिया के लिए एक PDF चेकलिस्ट बनाइए, जिसमें खंड, आइटम की तालिका और स्कोर वाला कॉलम हो।”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills