[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBTD95WGZ30T5HH7ZC5ZZT":3,"skill-same:01M6XBTD95WGZ30T5HH7ZC5ZZT":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":13,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6XBTD95WGZ30T5HH7ZC5ZZT","pdf-verification-cli",null,"Verify PDF page count and content using command-line tools when Python libraries unavailable","UF-gzj\u002Fopenspace-claude-evolution","UF-gzj","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272393507?v=4","01M6XBCZB755P01VVYGQWPYZY3","01M6XBCZFJA5AREA17WGETA3FW",0,"MIT","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-verification-cli\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"PDF","cli","verification","pdf verification cli","pdf verification","python","libraries","content","Tools","verify","page","command","line","command-line","count","when","2026-11-10 10:12:30",false,"---\nname: pdf-verification-cli\ndescription: Verify PDF page count and content using command-line tools when Python libraries unavailable\n---\n\n# PDF Verification with Command-Line Tools\n\nWhen verifying PDF files during task execution, Python libraries like PyPDF2 may not be available in the environment. This skill provides a reliable alternative using standard command-line tools from the `poppler-utils` package.\n\n## When to Use This Skill\n\n- Need to verify PDF page count\n- Need to inspect PDF text content\n- PyPDF2 or similar Python PDF libraries are unavailable\n- Working in minimal\u002Fcontainerized environments\n\n## Core Tools\n\n### 1. `pdfinfo` - Extract PDF Metadata\n\nUse `pdfinfo` to get page count and other metadata:\n\n```bash\n# Get full PDF info\npdfinfo document.pdf\n\n# Get only page count\npdfinfo document.pdf | grep Pages\n\n# Extract page count as a number\npdfinfo document.pdf | grep Pages | awk '{print $2}'\n```\n\n**Key metadata fields:**\n- `Pages`: Number of pages in the PDF\n- `Title`: Document title\n- `Author`: Document author\n- `Creator`: Application that created the PDF\n- `Producer`: Application that processed the PDF\n- `CreationDate`: When the PDF was created\n- `ModDate`: Last modification date\n\n### 2. `pdftotext` - Extract Text Content\n\nUse `pdftotext` to inspect the actual content of the PDF:\n\n```bash\n# Extract all text to stdout\npdftotext document.pdf -\n\n# Extract text to a file\npdftotext document.pdf output.txt\n\n# Extract text from specific page range\npdftotext -f 1 -l 3 document.pdf output.txt\n\n# Preserve layout (rough formatting)\npdftotext -layout document.pdf output.txt\n```\n\n## Verification Workflow\n\n### Step 1: Check Tool Availability\n\n```bash\n# Check if tools are installed\nwhich pdfinfo\nwhich pdftotext\n\n# Or test with --help\npdfinfo --help 2>&1 | head -1\n```\n\n### Step 2: Install if Needed\n\n```bash\n# Debian\u002FUbuntu\napt-get update && apt-get install -y poppler-utils\n\n# RHEL\u002FCentOS\u002FFedora\nyum install -y poppler-utils\n# or\ndnf install -y poppler-utils\n\n# macOS (with Homebrew)\nbrew install poppler\n```\n\n### Step 3: Verify PDF Properties\n\n```bash\n# Verify page count matches expected\nEXPECTED_PAGES=4\nACTUAL_PAGES=$(pdfinfo document.pdf | grep Pages | awk '{print $2}')\n\nif [ \"$ACTUAL_PAGES\" -eq \"$EXPECTED_PAGES\" ]; then\n    echo \"✓ Page count verified: $ACTUAL_PAGES pages\"\nelse\n    echo \"✗ Page count mismatch: expected $EXPECTED_PAGES, got $ACTUAL_PAGES\"\nfi\n```\n\n### Step 4: Verify PDF Content\n\n```bash\n# Check for required sections\u002Fcontent\npdftotext document.pdf - | grep -i \"checklist\" && echo \"✓ Contains checklist section\"\npdftotext document.pdf - | grep -i \"references\" && echo \"✓ Contains references section\"\n\n# Count occurrences of key terms\npdftotext document.pdf - | grep -ci \"assessment\"  # Case-insensitive count\n```\n\n## Python Integration Example\n\n```python\nimport subprocess\n\ndef get_pdf_page_count(pdf_path):\n    \"\"\"Get page count using pdfinfo\"\"\"\n    result = subprocess.run(\n        ['pdfinfo', pdf_path],\n        capture_output=True,\n        text=True\n    )\n    for line in result.stdout.split('\\n'):\n        if line.startswith('Pages:'):\n            return int(line.split(':')[1].strip())\n    return None\n\ndef extract_pdf_text(pdf_path):\n    \"\"\"Extract all text from PDF using pdftotext\"\"\"\n    result = subprocess.run(\n        ['pdftotext', pdf_path, '-'],\n        capture_output=True,\n        text=True\n    )\n    return result.stdout\n\ndef verify_pdf(pdf_path, expected_pages, required_terms):\n    \"\"\"Verify PDF has expected page count and contains required terms\"\"\"\n    # Check page count\n    pages = get_pdf_page_count(pdf_path)\n    if pages != expected_pages:\n        return False, f\"Expected {expected_pages} pages, got {pages}\"\n    \n    # Check content\n    text = extract_pdf_text(pdf_path).lower()\n    missing = [term for term in required_terms if term.lower() not in text]\n    \n    if missing:\n        return False, f\"Missing terms: {missing}\"\n    \n    return True, \"PDF verification passed\"\n```\n\n## Common Use Cases\n\n| Task | Command |\n|------|---------|\n| Count pages | `pdfinfo file.pdf \\| grep Pages` |\n| Check if PDF has text | `pdftotext file.pdf - \\| head -5` |\n| Search for keyword | `pdftotext file.pdf - \\| grep -i \"keyword\"` |\n| Extract first page | `pdftotext -f 1 -l 1 file.pdf out.txt` |\n| Get PDF title | `pdfinfo file.pdf \\| grep Title` |\n\n## Troubleshooting\n\n**`pdfinfo: command not found`**\n- Install poppler-utils (see Step 2 above)\n- Ensure PATH includes the installation directory\n\n**`pdftotext` returns empty output**\n- PDF may be image-only (scanned) - requires OCR\n- PDF may be encrypted\u002Fpassword-protected\n- Try `pdftotext -layout` for better text extraction\n\n**Page count seems wrong**\n- Some PDFs have blank pages counted\n- Verify with `pdftotext` to see actual content per page\n\n## Best Practices\n\n1. **Always verify both structure and content** - Page count alone doesn't guarantee content quality\n2. **Use case-insensitive searches** - Content may vary in capitalization\n3. **Handle errors gracefully** - Tools may fail on corrupted or encrypted PDFs\n4. **Combine with file existence checks** - Verify PDF exists before running tools","# PDF Verification with Command-Line Tools\n\nWhen verifying PDF files during task execution, Python libraries like PyPDF2 may not be available in the environment. This skill provides a reliable alternative using standard command-line tools from the `poppler-utils` package.\n\n## When to Use This Skill\n\n- Need to verify PDF page count\n- Need to inspect PDF text content\n- PyPDF2 or similar Python PDF libraries are unavailable\n- Working in minimal\u002Fcontainerized environments\n\n## Core Tools\n\n### 1. `pdfinfo` - Extract PDF Metadata\n\nUse `pdfinfo` to get page count and other metadata:\n\n```bash\n# Get full PDF info\npdfinfo document.pdf\n\n# Get only page count\npdfinfo document.pdf | grep Pages\n\n# Extract page count as a number\npdfinfo document.pdf | grep Pages | awk '{print $2}'\n```\n\n**Key metadata fields:**\n- `Pages`: Number of pages in the PDF\n- `Title`: Document title\n- `Author`: Document author\n- `Creator`: Application that created the PDF\n- `Producer`: Application that processed the PDF\n- `CreationDate`: When the PDF was created\n- `ModDate`: Last modification date\n\n### 2. `pdftotext` - Extract Text Content\n\nUse `pdftotext` to inspect the actual content of the PDF:\n\n```bash\n# Extract all text to stdout\npdftotext document.pdf -\n\n# Extract text to a file\npdftotext document.pdf output.txt\n\n# Extract text from specific page range\npdftotext -f 1 -l 3 document.pdf output.txt\n\n# Preserve layout (rough formatting)\npdftotext -layout document.pdf output.txt\n```\n\n## Verification Workflow\n\n### Step 1: Check Tool Availability\n\n```bash\n# Check if tools are installed\nwhich pdfinfo\nwhich pdftotext\n\n# Or test with --help\npdfinfo --help 2>&1 | head -1\n```\n\n### Step 2: Install if Needed\n\n```bash\n# Debian\u002FUbuntu\napt-get update && apt-get install -y poppler-utils\n\n# RHEL\u002FCentOS\u002FFedora\nyum install -y poppler-utils\n# or\ndnf install -y poppler-utils\n\n# macOS (with Homebrew)\nbrew install poppler\n```\n\n### Step 3: Verify PDF Properties\n\n```bash\n# Verify page count matches expected\nEXPECTED_PAGES=4\nACTUAL_PAGES=$(pdfinfo document.pdf | grep Pages | awk '{print $2}')\n\nif [ \"$ACTUAL_PAGES\" -eq \"$EXPECTED_PAGES\" ]; then\n    echo \"✓ Page count verified: $ACTUAL_PAGES pages\"\nelse\n    echo \"✗ Page count mismatch: expected $EXPECTED_PAGES, got $ACTUAL_PAGES\"\nfi\n```\n\n### Step 4: Verify PDF Content\n\n```bash\n# Check for required sections\u002Fcontent\npdftotext document.pdf - | grep -i \"checklist\" && echo \"✓ Contains checklist section\"\npdftotext document.pdf - | grep -i \"references\" && echo \"✓ Contains references section\"\n\n# Count occurrences of key terms\npdftotext document.pdf - | grep -ci \"assessment\"  # Case-insensitive count\n```\n\n## Python Integration Example\n\n```python\nimport subprocess\n\ndef get_pdf_page_count(pdf_path):\n    \"\"\"Get page count using pdfinfo\"\"\"\n    result = subprocess.run(\n        ['pdfinfo', pdf_path],\n        capture_output=True,\n        text=True\n    )\n    for line in result.stdout.split('\\n'):\n        if line.startswith('Pages:'):\n            return int(line.split(':')[1].strip())\n    return None\n\ndef extract_pdf_text(pdf_path):\n    \"\"\"Extract all text from PDF using pdftotext\"\"\"\n    result = subprocess.run(\n        ['pdftotext', pdf_path, '-'],\n        capture_output=True,\n        text=True\n    )\n    return result.stdout\n\ndef verify_pdf(pdf_path, expected_pages, required_terms):\n    \"\"\"Verify PDF has expected page count and contains required terms\"\"\"\n    # Check page count\n    pages = get_pdf_page_count(pdf_path)\n    if pages != expected_pages:\n        return False, f\"Expected {expected_pages} pages, got {pages}\"\n    \n    # Check content\n    text = extract_pdf_text(pdf_path).lower()\n    missing = [term for term in required_terms if term.lower() not in text]\n    \n    if missing:\n        return False, f\"Missing terms: {missing}\"\n    \n    return True, \"PDF verification passed\"\n```\n\n## Common Use Cases\n\n| Task | Command |\n|------|---------|\n| Count pages | `pdfinfo file.pdf \\| grep Pages` |\n| Check if PDF has text | `pdftotext file.pdf - \\| head -5` |\n| Search for keyword | `pdftotext file.pdf - \\| grep -i \"keyword\"` |\n| Extract first page | `pdftotext -f 1 -l 1 file.pdf out.txt` |\n| Get PDF title | `pdfinfo file.pdf \\| grep Title` |\n\n## Troubleshooting\n\n**`pdfinfo: command not found`**\n- Install poppler-utils (see Step 2 above)\n- Ensure PATH includes the installation directory\n\n**`pdftotext` returns empty output**\n- PDF may be image-only (scanned) - requires OCR\n- PDF may be encrypted\u002Fpassword-protected\n- Try `pdftotext -layout` for better text extraction\n\n**Page count seems wrong**\n- Some PDFs have blank pages counted\n- Verify with `pdftotext` to see actual content per page\n\n## Best Practices\n\n1. **Always verify both structure and content** - Page count alone doesn't guarantee content quality\n2. **Use case-insensitive searches** - Content may vary in capitalization\n3. **Handle errors gracefully** - Tools may fail on corrupted or encrypted PDFs\n4. **Combine with file existence checks** - Verify PDF exists before running tools",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fpdf-verification-cli","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution","https:\u002F\u002Fgithub.com\u002FUF-gzj","2026-04-16 09:31:03",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-verification-cli",{"tool":51,"command":52},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-verification-cli",{"tool":54,"command":55},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-verification-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-verification-cli\u002FSKILL.md",true,[59],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},".skill_id","OTHER","其他",34,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-verification-cli\u002F.skill_id",[66,90,106,115,140,156],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":34},"01M6XCCXD3NCM2YKR3WNGBASPC","write-special-chars-ts-check","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, plus a reliable TypeScript type-checking step that filters output to only the newly-written files to avoid being misled by pre-existing errors.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,23],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","file",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":34},"01M6XCCT7E3J922Q345PBGSHPN","write-special-chars-readback","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, with mandatory post-write verification via read_file and cleanup of \u002Ftmp helper scripts.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[97,98,74,89,99,23,100,101,102,103,104,88,20,105,78,81,83],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","with",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":34},"01M6XCCMQX1R8B6FECWB3P63T7","write-special-chars-heredoc","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) by using a Python heredoc script executed via shell.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[113,74,78,114,83,101,88,89,23,81],"write special chars heredoc","shell",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":34},"01M6XCCG41M994JJEX6VN52PEP","worldmonitor-reference","Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[],[122,123,124,125,126,76,127,128,129,130,131,81,132,133,134,135,136,137,138,139],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":34},"01M6XCCCHWNKG2W4VH9E6A10HF","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[147,148,149,150,81,151,105,152,153,154,155],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":34},"01M6XCC7X8PKMR2DEW91XGHYSV","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[163,164,165,27,166,167,89,168,169,170],"directory","verify directory structure","structure","access","first","issues","diagnose","file access"]