Markitdown
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
Complete PDF workflow: extract content from source PDFs and generate new PDF reports using command-line tools
$ npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HKUDS/OpenSpace pdf-to-report-workflow --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 .claude/skills/pdf-to-report-workflow && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "pdf-to-report-workflow" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 into .claude/skills/pdf-to-report-workflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pdf-to-report-workflow", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HKUDS/OpenSpace pdf-to-report-workflow --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .agents/skills && cp -r skills-src/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 .agents/skills/pdf-to-report-workflow && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pdf-to-report-workflow" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 into .agents/skills/pdf-to-report-workflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pdf-to-report-workflow", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HKUDS/OpenSpace pdf-to-report-workflow --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 .cursor/skills/pdf-to-report-workflow && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pdf-to-report-workflow" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 into .cursor/skills/pdf-to-report-workflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pdf-to-report-workflow", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/HKUDS/OpenSpace.git --path benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HKUDS/OpenSpace pdf-to-report-workflow --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 .gemini/skills/pdf-to-report-workflow && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pdf-to-report-workflow" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 into .gemini/skills/pdf-to-report-workflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pdf-to-report-workflow", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install HKUDS/OpenSpace pdf-to-report-workflowInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .github/skills && cp -r skills-src/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 .github/skills/pdf-to-report-workflow && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pdf-to-report-workflow" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 into .github/skills/pdf-to-report-workflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pdf-to-report-workflow", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HKUDS/OpenSpace pdf-to-report-workflow --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 .opencode/skills/pdf-to-report-workflow && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pdf-to-report-workflow" agent skill from https://github.com/HKUDS/OpenSpace/tree/main/benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 into .opencode/skills/pdf-to-report-workflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pdf-to-report-workflow", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pdf-to-report-workflowComplete PDF workflow: extract content from source PDFs and generate new PDF reports using command-line tools
PDF To Report Workflow is an agent skill from HKUDS/OpenSpace. Complete PDF workflow: extract content from source PDFs and generate new PDF reports using command-line tools
Its SKILL.md is about 4.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file.
It sits in Documents & Office, covering PDF. The repository describes itself as: "OpenSpace: The Skill Management Layer for AI Agents" -- https://open-space.cloud/. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3827781. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
apt-getpdftotextpandoclibreofficeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
PDF To Report Workflow loads about 4.3k tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 522 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from HKUDS/OpenSpace at commit 3827781, republished under its MIT licence (© HKUDS). 522 words, ~4,252 tokens.
.claude/skills/pdf-to-report-workflow/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.This skill provides a complete end-to-end workflow for processing PDF documents: extracting content from source PDFs, assembling report data, and generating new PDF output files—all using command-line tools when Python libraries are unavailable.
pdfinfo - Extract PDF Metadata# Get full PDF info
pdfinfo document.pdf
# Get only page count
pdfinfo document.pdf | grep Pages
# Extract page count as a number
pdfinfo document.pdf | grep Pages | awk '{print $2}'Key metadata fields:
Pages: Number of pages in the PDFTitle: Document titleAuthor: Document authorCreationDate: When the PDF was createdModDate: Last modification datepdftotext - Extract Text Content# Extract all text to stdout
pdftotext document.pdf -
# Extract text to a file
pdftotext document.pdf output.txt
# Extract text from specific page range
pdftotext -f 1 -l 3 document.pdf output.txt
# Preserve layout (rough formatting)
pdftotext -layout document.pdf output.txtenscript + ps2pdf - Text to PDF (Recommended)Convert plain text to PDF via PostScript:
# Install if needed
apt-get install -y enscript ghostscript
# Convert text file to PDF
enscript -B -o output.ps input.txt && ps2pdf output.ps output.pdf
# One-liner
enscript -B input.txt -o - | ps2pdf - output.pdfOptions:
-B: No borders-o: Output file (- for stdout)-f: Font specification (e.g., -fCourier10)wkhtmltopdf - HTML to PDFConvert HTML to PDF with full formatting support:
# Install if needed
apt-get install -y wkhtmltopdf
# Convert HTML file to PDF
wkhtmltopdf input.html output.pdf
# Convert from stdin
echo "<html><body><h1>Report</h1></body></html>" | wkhtmltopdf - output.pdf
# With options for better quality
wkhtmltopdf --page-size A4 --margin-top 25mm input.html output.pdflibreoffice - Document ConversionConvert various document formats to PDF:
# Install if needed
apt-get install -y libreoffice-writer
# Convert to PDF (headless mode)
libreoffice --headless --convert-to pdf input.docx
libreoffice --headless --convert-to pdf input.odt
libreoffice --headless --convert-to pdf input.txtpandoc - Universal Document ConverterConvert between many formats including PDF:
# Install if needed
apt-get install -y pandoc texlive-latex-base
# Convert markdown to PDF
pandoc input.md -o output.pdf
# Convert text to PDF
pandoc input.txt -o output.pdf
# With custom template
pandoc input.md --template=template.tex -o output.pdfpdftk - PDF ManipulationMerge, split, or modify existing PDFs:
# Install if needed
apt-get install -y pdftk
# Merge multiple PDFs
pdftk file1.pdf file2.pdf file3.pdf cat output merged.pdf
# Extract pages
pdftk input.pdf cat 1-3 output extracted.pdf
# Split into individual pages
pdftk input.pdf burst# Check extraction tools
which pdfinfo || echo "pdfinfo not found"
which pdftotext || echo "pdftotext not found"
# Check generation tools (at least one should be available)
which enscript || echo "enscript not found"
which wkhtmltopdf || echo "wkhtmltopdf not found"
which libreoffice || echo "libreoffice not found"
which pandoc || echo "pandoc not found"# Debian/Ubuntu - Full installation
apt-get update && apt-get install -y poppler-utils enscript ghostscript
# Or install wkhtmltopdf instead
apt-get install -y poppler-utils wkhtmltopdf
# Or install pandoc for markdown-based reports
apt-get install -y poppler-utils pandoc texlive-latex-base# Create working directory
mkdir -p workdir/extracted
cd workdir
# Extract text from each source PDF
for pdf in ../source_pdfs/*.pdf; do
filename=$(basename "$pdf" .pdf)
pdftotext -layout "$pdf" "extracted/${filename}.txt"
echo "Extracted: $filename"
done
# Verify extraction
for txt in extracted/*.txt; do
lines=$(wc -l < "$txt")
echo "$txt: $lines lines"
done# Create report from extracted content
cat > final_report.txt << 'EOF'
===========================================
NEW CASE CREATION REPORT
Generated: $(date)
===========================================
EOF
# Add sections from each source
echo "SECTION 1: CASE CREATION GUIDE" >> final_report.txt
echo "-------------------------------------------" >> final_report.txt
cat extracted/case_creation_guide.txt >> final_report.txt
echo "" >> final_report.txt
echo "SECTION 2: CASE DETAIL SUMMARY" >> final_report.txt
echo "-------------------------------------------" >> final_report.txt
cat extracted/case_detail_summary.txt >> final_report.txt
echo "" >> final_report.txt
echo "SECTION 3: PATERNITY TEST RESULTS" >> final_report.txt
echo "-------------------------------------------" >> final_report.txt
cat extracted/paternity_test_results.txt >> final_report.txt
echo "" >> final_report.txt
echo "SECTION 4: ORDER OF CHILD SUPPORT" >> final_report.txt
echo "-------------------------------------------" >> final_report.txt
cat extracted/order_of_child_support.txt >> final_report.txt
echo "" >> final_report.txt
echo "===========================================" >> final_report.txt
echo "END OF REPORT" >> final_report.txt
echo "===========================================" >> final_report.txtOption A: Using enscript + ps2pdf
# Convert text to PDF
enscript -B -fCourier10 -o report.ps final_report.txt && ps2pdf report.ps final_report.pdf
# Or one-liner
enscript -B final_report.txt -o - | ps2pdf - final_report.pdf
# Verify output
pdfinfo final_report.pdf | grep PagesOption B: Using wkhtmltopdf (with HTML formatting)
# Convert text to simple HTML
cat > final_report.html << 'EOF'
<!DOCTYPE html>
<html>
<head>
<style>
body { font-family: monospace; margin: 40px; }
h1 { text-align: center; }
.section { margin-top: 30px; }
</style>
</head>
<body>
EOF
# Add content (escape HTML special chars if needed)
sed 's/&/\&/g; s/</\</g; s/>/\>/g' final_report.txt | \
sed 's/^=\{30,\}/<h1>/; s/$/<\/h1>/; /^<h1>/!s/^/--<br>/; /^----/!s/$/<br>/' >> final_report.html
echo "</body></html>" >> final_report.html
# Convert to PDF
wkhtmltopdf --page-size A4 --margin-top 25mm final_report.html final_report.pdfOption C: Using pandoc (markdown format)
# Create markdown version
cat > final_report.md << 'EOF'
# New Case Creation Report
*Generated: $(date)*
---
EOF
# Add sections with markdown formatting
for txt in extracted/*.txt; do
filename=$(basename "$txt" .txt)
echo "## $filename" >> final_report.md
echo "" >> final_report.md
cat "$txt" >> final_report.md
echo "" >> final_report.md
done
# Convert to PDF
pandoc final_report.md -o final_report.pdf# Check PDF was created
if [ -f final_report.pdf ]; then
echo "✓ PDF created successfully"
# Verify page count
pages=$(pdfinfo final_report.pdf | grep Pages | awk '{print $2}')
echo " Pages: $pages"
# Verify file size
size=$(ls -lh final_report.pdf | awk '{print $5}')
echo " Size: $size"
# Verify content
if pdftotext final_report.pdf - | grep -q "CASE CREATION REPORT"; then
echo "✓ Content verified"
else
echo "✗ Content verification failed"
fi
else
echo "✗ PDF generation failed"
exit 1
fiimport subprocess
import os
from datetime import datetime
class PDFReportGenerator:
def __init__(self, workdir="workdir"):
self.workdir = workdir
os.makedirs(workdir, exist_ok=True)
os.makedirs(f"{workdir}/extracted", exist_ok=True)
def check_tools(self):
"""Check available tools and return best option"""
tools = {}
for tool in ['pdfinfo', 'pdftotext', 'enscript', 'ps2pdf',
'wkhtmltopdf', 'pandoc']:
result = subprocess.run(['which', tool],
capture_output=True, text=True)
tools[tool] = result.returncode == 0
return tools
def extract_pdf(self, pdf_path, output_txt=None):
"""Extract text from PDF"""
if output_txt is None:
output_txt = f"{self.workdir}/extracted/{os.path.basename(pdf_path).replace('.pdf', '.txt')}"
result = subprocess.run(
['pdftotext', '-layout', pdf_path, output_txt],
capture_output=True, text=True
)
if result.returncode != 0:
raise Exception(f"Extraction failed: {result.stderr}")
return output_txt
def generate_report_pdf(self, text_content, output_pdf):
"""Generate PDF from text content using best available tool"""
tools = self.check_tools()
# Write content to temp file
temp_txt = f"{self.workdir}/temp_report.txt"
with open(temp_txt, 'w') as f:
f.write(text_content)
if tools.get('enscript') and tools.get('ps2pdf'):
# Use enscript + ps2pdf
temp_ps = f"{self.workdir}/temp_report.ps"
subprocess.run(['enscript', '-B', '-fCourier10', '-o', temp_ps, temp_txt], check=True)
subprocess.run(['ps2pdf', temp_ps, output_pdf], check=True)
return output_pdf
elif tools.get('pandoc'):
# Use pandoc
temp_md = f"{self.workdir}/temp_report.md"
with open(temp_md, 'w') as f:
f.write(f"# Report\n\nGenerated: {datetime.now()}\n\n---\n\n")
f.write(text_content)
subprocess.run(['pandoc', temp_md, '-o', output_pdf], check=True)
return output_pdf
elif tools.get('wkhtmltopdf'):
# Use wkhtmltopdf
temp_html = f"{self.workdir}/temp_report.html"
with open(temp_html, 'w') as f:
f.write(f"""<!DOCTYPE html>
<html><head><style>body{{font-family:monospace;margin:40px;}}</style></head>
<body><pre>{text_content}</pre></body></html>""")
subprocess.run(['wkhtmltopdf', temp_html, output_pdf], check=True)
return output_pdf
else:
raise Exception("No PDF generation tools available")
def get_pdf_info(self, pdf_path):
"""Get PDF metadata"""
result = subprocess.run(['pdfinfo', pdf_path],
capture_output=True, text=True)
info = {}
for line in result.stdout.split('\n'):
if ':' in line:
key, value = line.split(':', 1)
info[key.strip()] = value.strip()
return info
def create_report_from_pdfs(self, source_pdfs, output_pdf, report_title="Report"):
"""Complete workflow: extract from multiple PDFs and create report"""
extracted_texts = []
# Extract from each source
for pdf in source_pdfs:
txt = self.extract_pdf(pdf)
with open(txt, 'r') as f:
content = f.read()
extracted_texts.append((os.path.basename(pdf), content))
# Assemble report
report_content = f"""{'='*50}
{report_title}
Generated: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}
{'='*50}
"""
for filename, content in extracted_texts:
report_content += f"\n{'-'*50}\n"
report_content += f"SOURCE: {filename}\n"
report_content += f"{'-'*50}\n\n"
report_content += content + "\n"
report_content += f"\n{'='*50}\nEND OF REPORT\n{'='*50}\n"
# Generate PDF
return self.generate_report_pdf(report_content, output_pdf)
# Usage example
if __name__ == "__main__":
generator = PDFReportGenerator()
source_pdfs = [
"source_pdfs/case_creation_guide.pdf",
"source_pdfs/case_detail_summary.pdf",
"source_pdfs/paternity_test_results.pdf",
"source_pdfs/order_of_child_support.pdf"
]
output = generator.create_report_from_pdfs(
source_pdfs,
"final_report.pdf",
"NEW CASE CREATION REPORT"
)
print(f"Report created: {output}")
print(f"Pages: {generator.get_pdf_info(output).get('Pages', 'Unknown')}")| Task | Command Sequence |
|---|---|
| Extract single PDF | pdftotext -layout file.pdf output.txt |
| Extract multiple PDFs | for f in *.pdf; do pdftotext -layout "$f" "${f%.pdf}.txt"; done |
| Text to PDF (enscript) | enscript -B input.txt -o - | ps2pdf - output.pdf |
| Text to PDF (pandoc) | pandoc input.md -o output.pdf |
| Merge PDFs | pdftk file1.pdf file2.pdf cat output merged.pdf |
| Verify PDF | pdfinfo file.pdf | grep Pages |
| Check PDF content | pdftotext file.pdf - | grep -i "keyword" |
No PDF generation tools available
apt-get install enscript ghostscript (simplest)apt-get install pandoc texlive-latex-base (best formatting)apt-get install wkhtmltopdf (HTML support)enscript produces garbled output
file input.txt-r option for raw output-fCourier10 for fixed-width fontps2pdf produces large files
ps2pdf -dPDFSETTINGS=/ebook input.ps output.pdfps2pdf -dPDFSETTINGS=/screen input.ps output.pdf (smaller, lower quality)pdftotext returns empty output
pdftotext -layout for better extractionReport formatting looks poor
pandoc with markdown for better formattingwkhtmltopdf with HTML/CSS for full control-layout flag to pdftotext to preserve structurepdftotext -layout for better structure#!/bin/bash
# Quick PDF Report Generation Script
set -e
# Configuration
SOURCE_DIR="${1:-source_pdfs}"
OUTPUT_PDF="${2:-final_report.pdf}"
WORKDIR="workdir_$$"
# Setup
mkdir -p "$WORKDIR/extracted"
trap "rm -rf $WORKDIR" EXIT
# Check tools
for tool in pdfinfo pdftotext; do
if ! which "$tool" &>/dev/null; then
echo "ERROR: $tool not found. Install poppler-utils."
exit 1
fi
done
# Extract all source PDFs
echo "Extracting PDFs from $SOURCE_DIR..."
for pdf in "$SOURCE_DIR"/*.pdf; do
[ -f "$pdf" ] || continue
name=$(basename "$pdf" .pdf)
pdftotext -layout "$pdf" "$WORKDIR/extracted/${name}.txt"
echo " Extracted: $name"
done
# Assemble report
echo "Assembling report..."
{
echo "========================================"
echo "REPORT GENERATED: $(date)"
echo "========================================"
echo ""
for txt in "$WORKDIR/extracted"/*.txt; do
[ -f "$txt" ] || continue
name=$(basename "$txt" .txt)
echo "=== $name ==="
cat "$txt"
echo ""
done
echo "========================================"
echo "END OF REPORT"
} > "$WORKDIR/report.txt"
# Generate PDF
echo "Generating PDF..."
if which enscript &>/dev/null && which ps2pdf &>/dev/null; then
enscript -B "$WORKDIR/report.txt" -o - | ps2pdf - "$OUTPUT_PDF"
elif which pandoc &>/dev/null; then
pandoc "$WORKDIR/report.txt" -o "$OUTPUT_PDF"
else
echo "ERROR: No PDF generation tool available"
exit 1
fi
# Verify
echo "Verifying output..."
pages=$(pdfinfo "$OUTPUT_PDF" | grep Pages | awk '{print $2}')
echo "✓ Report created: $OUTPUT_PDF ($pages pages)"© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 of HKUDS/OpenSpace.
Open the folder on GitHubat commit 3827781
PDF To Report Workflow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| PDF To Report Workflow this skillHKUDS/OpenSpace | 7.8k | — | ~4.3k | Automated safety check: Pass | MIT | |
| MarkitdownImCa0/just-laws | 781 | 14 repos | ~3.2k | Automated safety check: Notes | MIT | |
| Gzh Designisjiamu/gzh-design-skill | 4k | — | ~2.2k | Automated safety check: Pass | AGPL-3.0 | |
| GenOffice Document CLIgenspark-ai/genoffice | 9.2k | — | ~19k | Automated safety check: Pass | Apache-2.0 | |
| Harness Book Best Practicewquguru/harness-books | 3.2k | — | ~4.1k | Automated safety check: Pass | None | |
| Bookforge Korean Ebook PDF Makergongnyang/bookforge | 316 | 1 repos | ~1.7k | Automated safety check: Pass | MIT |
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
isjiamu/gzh-design-skill
微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…
genspark-ai/genoffice
Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.
wquguru/harness-books
Best practices for working on the Harness books repo. An agent skill from wquguru/harness-books.
gongnyang/bookforge
Produces book-style Korean ebook PDFs from a topic or finished manuscript, with six design styles, real book parts and quality-check gates before output.
aws-samples/amazon-bedrock-agents-healthcare-lifesciences
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV.
HKUDS/OpenSpace
Walks through producing a master audio track plus stems in Python, from checking a reference file and timing sections by BPM to effects, a zip archive and final verification.
HKUDS/OpenSpace
Handle cascading data retrieval tool failures by falling back to embedded knowledge generation
HKUDS/OpenSpace
Gives an agent a workaround when its code-execution sandbox keeps failing: save the Python script to a file and run it through the shell instead.
HKUDS/OpenSpace
A recovery routine for agents whose sandboxed code runner keeps failing: save the Python script to disk, then run it through the shell and read the output.
HKUDS/OpenSpace
Fallback ladder for failed sandboxed code runs, plus the habit of fixing the working directory first so generated files land in the right place.
HKUDS/OpenSpace
Fallback workflow for executing Python code when executecodesandbox fails repeatedly
Categories
Complete PDF workflow: extract content from source PDFs and generate new PDF reports using command-line tools. PDF To Report Workflow is an agent skill from HKUDS/OpenSpace.
PDF To Report Workflow fits situations like: tasks that involve PDF.
Run `npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a claude-code`. Or copy the skill folder (benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 in HKUDS/OpenSpace) into .claude/skills/pdf-to-report-workflow in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a codex`. Or copy the skill folder (benchmarks/gdpval/skills/pdf-verification-cli-enhanced-657992 in HKUDS/OpenSpace) into .agents/skills/pdf-to-report-workflow in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/OpenSpace --skill pdf-to-report-workflow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pdf-to-report-workflow, .gemini/skills/pdf-to-report-workflow, .github/skills/pdf-to-report-workflow and .opencode/skills/pdf-to-report-workflow in your project.
Going by SKILL.md and its folder, PDF To Report Workflow needs the command-line tools its instructions call (apt-get, pdftotext, pandoc and libreoffice). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
PDF To Report Workflow is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with PDF To Report Workflow: Markitdown (ImCa0/just-laws, 781 stars), Gzh Design (isjiamu/gzh-design-skill, 4k stars), GenOffice Document CLI (genspark-ai/genoffice, 9.2k stars) and Harness Book Best Practice (wquguru/harness-books, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
HKUDS (a GitHub organization) maintains it in HKUDS/OpenSpace, which has 7,754 GitHub stars. The repository holds 199 skills in this directory. The repository was last updated on August 12, 2026.
Source: HKUDS/OpenSpace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.