[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBNKHM6QWQJH2G4D0XHKD8":3,"skill-same:01M6XBNKHM6QWQJH2G4D0XHKD8":61},{"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":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":13,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M6XBNKHM6QWQJH2G4D0XHKD8","local-pdf-extraction",null,"Extract text from local PDFs using pdftotext or PyMuPDF via run_shell","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\u002Flocal-pdf-extraction\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29],"PDF","extraction","local","pdf extraction","local pdf extraction","run","shell","text","extract","via","pymupdf","pdftotext","2026-11-10 10:12:30",false,"---\nname: local-pdf-extraction\ndescription: Extract text from local PDFs using pdftotext or PyMuPDF via run_shell\n---\n\n# Local PDF Extraction Workflow\n\nUse this skill when you need to extract text from PDF files that exist locally on the filesystem, and `read_file` returns binary data instead of readable text.\n\n## When to Use\n\n- PDF files exist in the local workspace or known directories\n- `read_file` on PDFs returns binary\u002Fgarbled data instead of text\n- You need to process PDF content for analysis, summarization, or data extraction\n\n## Step-by-Step Instructions\n\n### Step 1: Locate PDF Files\n\nFirst, list directory contents to find all PDF files:\n\n```bash\nls -la *.pdf\n# or for recursive search\nfind . -name \"*.pdf\" -type f\n```\n\n### Step 2: Extract PDFs to Text\n\nChoose one of these methods based on available tools:\n\n#### Method A: Using pdftotext (poppler-utils)\n\n```bash\n# Extract single PDF\npdftotext input.pdf output.txt\n\n# Batch extract all PDFs in directory\nfor pdf in *.pdf; do\n    pdftotext \"$pdf\" \"${pdf%.pdf}.txt\"\ndone\n```\n\n#### Method B: Using PyMuPDF (fitz) via Python\n\n```bash\npython3 \u003C\u003C 'EOF'\nimport fitz  # PyMuPDF\nimport glob\nimport os\n\nfor pdf_path in glob.glob(\"*.pdf\"):\n    doc = fitz.open(pdf_path)\n    text = \"\"\n    for page in doc:\n        text += page.get_text()\n    \n    txt_path = pdf_path.replace(\".pdf\", \".txt\")\n    with open(txt_path, \"w\", encoding=\"utf-8\") as f:\n        f.write(text)\n    print(f\"Extracted: {pdf_path} -> {txt_path}\")\nEOF\n```\n\n### Step 3: Read Extracted Text Files\n\nOnce extracted, use `read_file` to read the `.txt` files:\n\n```python\n# Now you can read the text files normally\ncontent = read_file(filetype=\"txt\", file_path=\"document.txt\")\n```\n\n### Step 4: Process Content\n\nProceed with your analysis, summarization, or data extraction on the text content.\n\n## Complete Workflow Example\n\n```bash\n# Step 1: Find PDFs\nls -la *.pdf\n\n# Step 2: Extract all PDFs to text\nfor pdf in *.pdf; do\n    pdftotext \"$pdf\" \"${pdf%.pdf}.txt\"\ndone\n\n# Step 3: Verify extraction\nls -la *.txt\n```\n\nOr as a Python script via `run_shell`:\n\n```bash\npython3 \u003C\u003C 'SCRIPT'\nimport fitz, glob\nfor pdf in glob.glob(\"*.pdf\"):\n    doc = fitz.open(pdf)\n    text = \"\".join(page.get_text() for page in doc)\n    with open(pdf.replace(\".pdf\", \".txt\"), \"w\") as f:\n        f.write(text)\n    print(f\"Done: {pdf}\")\nSCRIPT\n```\n\n## Troubleshooting\n\n- **pdftotext not found**: Install with `apt-get install poppler-utils` or use PyMuPDF method\n- **Empty text output**: PDF may be image-based; consider OCR tools like `pdftoppm` + `tesseract`\n- **Encoding issues**: Ensure output files use UTF-8 encoding\n\n## Key Takeaways\n\n1. Never use `read_file` directly on PDFs for text extraction\n2. Always list directory first to confirm PDF locations\n3. Use `run_shell` with pdftotext or PyMuPDF for reliable extraction\n4. Batch process when multiple PDFs exist\n5. Read the resulting `.txt` files for further processing","# Local PDF Extraction Workflow\n\nUse this skill when you need to extract text from PDF files that exist locally on the filesystem, and `read_file` returns binary data instead of readable text.\n\n## When to Use\n\n- PDF files exist in the local workspace or known directories\n- `read_file` on PDFs returns binary\u002Fgarbled data instead of text\n- You need to process PDF content for analysis, summarization, or data extraction\n\n## Step-by-Step Instructions\n\n### Step 1: Locate PDF Files\n\nFirst, list directory contents to find all PDF files:\n\n```bash\nls -la *.pdf\n# or for recursive search\nfind . -name \"*.pdf\" -type f\n```\n\n### Step 2: Extract PDFs to Text\n\nChoose one of these methods based on available tools:\n\n#### Method A: Using pdftotext (poppler-utils)\n\n```bash\n# Extract single PDF\npdftotext input.pdf output.txt\n\n# Batch extract all PDFs in directory\nfor pdf in *.pdf; do\n    pdftotext \"$pdf\" \"${pdf%.pdf}.txt\"\ndone\n```\n\n#### Method B: Using PyMuPDF (fitz) via Python\n\n```bash\npython3 \u003C\u003C 'EOF'\nimport fitz  # PyMuPDF\nimport glob\nimport os\n\nfor pdf_path in glob.glob(\"*.pdf\"):\n    doc = fitz.open(pdf_path)\n    text = \"\"\n    for page in doc:\n        text += page.get_text()\n    \n    txt_path = pdf_path.replace(\".pdf\", \".txt\")\n    with open(txt_path, \"w\", encoding=\"utf-8\") as f:\n        f.write(text)\n    print(f\"Extracted: {pdf_path} -> {txt_path}\")\nEOF\n```\n\n### Step 3: Read Extracted Text Files\n\nOnce extracted, use `read_file` to read the `.txt` files:\n\n```python\n# Now you can read the text files normally\ncontent = read_file(filetype=\"txt\", file_path=\"document.txt\")\n```\n\n### Step 4: Process Content\n\nProceed with your analysis, summarization, or data extraction on the text content.\n\n## Complete Workflow Example\n\n```bash\n# Step 1: Find PDFs\nls -la *.pdf\n\n# Step 2: Extract all PDFs to text\nfor pdf in *.pdf; do\n    pdftotext \"$pdf\" \"${pdf%.pdf}.txt\"\ndone\n\n# Step 3: Verify extraction\nls -la *.txt\n```\n\nOr as a Python script via `run_shell`:\n\n```bash\npython3 \u003C\u003C 'SCRIPT'\nimport fitz, glob\nfor pdf in glob.glob(\"*.pdf\"):\n    doc = fitz.open(pdf)\n    text = \"\".join(page.get_text() for page in doc)\n    with open(pdf.replace(\".pdf\", \".txt\"), \"w\") as f:\n        f.write(text)\n    print(f\"Done: {pdf}\")\nSCRIPT\n```\n\n## Troubleshooting\n\n- **pdftotext not found**: Install with `apt-get install poppler-utils` or use PyMuPDF method\n- **Empty text output**: PDF may be image-based; consider OCR tools like `pdftoppm` + `tesseract`\n- **Encoding issues**: Ensure output files use UTF-8 encoding\n\n## Key Takeaways\n\n1. Never use `read_file` directly on PDFs for text extraction\n2. Always list directory first to confirm PDF locations\n3. Use `run_shell` with pdftotext or PyMuPDF for reliable extraction\n4. Batch process when multiple PDFs exist\n5. Read the resulting `.txt` files for further processing",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Flocal-pdf-extraction","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":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill local-pdf-extraction",{"tool":47,"command":48},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill local-pdf-extraction",{"tool":50,"command":51},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill local-pdf-extraction","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Flocal-pdf-extraction\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},".skill_id","OTHER","其他",34,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Flocal-pdf-extraction\u002F.skill_id",[62,87,103,111,136,152],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":30},"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",[],[69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","file","python",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":30},"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",[],[94,95,70,85,96,86,97,27,98,99,100,84,101,102,74,77,79],"readback","write special chars readback","helper","post","scripts","cleanup","read","verification","with",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":30},"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",[],[110,70,74,24,79,27,84,85,86,77],"write special chars heredoc",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":30},"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",[],[118,119,120,121,122,72,123,124,125,126,127,77,128,129,130,131,132,133,134,135],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":30},"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",[],[143,144,145,146,77,147,102,148,149,150,151],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":30},"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",[],[159,160,161,162,163,164,85,165,166,167],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]