[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFQC70YV1EE22KM39VQ1H1":3,"skill-same:01M6KFQC70YV1EE22KM39VQ1H1":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":14,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6KFQC70YV1EE22KM39VQ1H1","pdf-extraction-fallbacks",null,"Multi-fallback PDF\u002Ftext extraction with early failure detection and sequential tool fallbacks","xyliu-cs\u002FOpenSpace-GDPval","xyliu-cs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89236536?v=4","01M6KF8Z1V4TXS86CKSH48BY8T","xy","01M6KF8Z67443W0SHXM85JEF0B",0,"MIT","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-extraction-fallbacks\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33],"PDF","extraction","pdf extraction","pdf extraction fallbacks","detection","tool","text","fallback","multi","with","2026-11-10 10:12:30",false,"---\nname: pdf-extraction-fallbacks\ndescription: Multi-fallback PDF\u002Ftext extraction with early failure detection and sequential tool fallbacks\n---\n\n# PDF Extraction with Multi-Fallback Strategy\n\n## Purpose\n\nWhen extracting text from PDFs (especially regulatory documents, handbooks, or protected content), single-method approaches often fail due to JavaScript protection, CORS restrictions, encoding issues, or corrupted downloads. This skill provides a robust multi-fallback workflow that detects failures early and tries sequential extraction methods.\n\n## Core Pattern\n\n1. **Download with validation** - Check file size and content sanity immediately\n2. **Sequential extraction attempts** - Try multiple tools in order of reliability\n3. **Early failure detection** - Don't proceed with obviously corrupt files\n4. **Document fallback path** - Log which method succeeded for future reference\n\n## Step-by-Step Instructions\n\n### Step 1: Download and Validate\n\nBefore attempting extraction, validate the downloaded file:\n\n```bash\n# Download the PDF\ncurl -L -o document.pdf \"$URL\"\n\n# Check file size (reject if \u003C 1KB - likely error page)\nFILE_SIZE=$(stat -f%z document.pdf 2>\u002Fdev\u002Fnull || stat -c%s document.pdf 2>\u002Fdev\u002Fnull)\nif [ \"$FILE_SIZE\" -lt 1024 ]; then\n    echo \"ERROR: File too small ($FILE_SIZE bytes) - likely not a valid PDF\"\n    # Check if it's an HTML error page\n    head -c 200 document.pdf | grep -i \"\u003Chtml\\|\u003C!doctype\\|error\\|access denied\" && \\\n        echo \"Detected HTML error page instead of PDF\"\n    exit 1\nfi\n\n# Check PDF magic bytes\nHEAD_BYTES=$(head -c 4 document.pdf)\nif [ \"$HEAD_BYTES\" != \"%PDF\" ]; then\n    echo \"ERROR: File does not start with PDF magic bytes\"\n    head -c 100 document.pdf\n    exit 1\nfi\n```\n\n### Step 2: Primary Extraction (pdftotext)\n\n```bash\n# Try pdftotext first (fastest, most reliable for simple PDFs)\nif command -v pdftotext &> \u002Fdev\u002Fnull; then\n    pdftotext -layout document.pdf output.txt 2>\u002Fdev\u002Fnull\n    if [ -s output.txt ]; then\n        WORD_COUNT=$(wc -w \u003C output.txt)\n        if [ \"$WORD_COUNT\" -gt 50 ]; then\n            echo \"SUCCESS: pdftotext extracted $WORD_COUNT words\"\n            exit 0\n        fi\n    fi\nfi\n```\n\n### Step 3: Fallback 1 (PyMuPDF\u002Ffitz)\n\n```python\n# Try PyMuPDF - handles more complex PDFs\nimport fitz  # pymupdf\n\ntry:\n    doc = fitz.open(\"document.pdf\")\n    text = \"\"\n    for page in doc:\n        text += page.get_text()\n    \n    if len(text.strip()) > 500:  # Sanity check\n        with open(\"output.txt\", \"w\") as f:\n            f.write(text)\n        print(f\"SUCCESS: PyMuPDF extracted {len(text)} characters\")\n    else:\n        print(\"WARNING: PyMuPDF extraction too short, trying next method\")\nexcept Exception as e:\n    print(f\"PyMuPDF failed: {e}\")\n```\n\n### Step 4: Fallback 2 (pdfplumber)\n\n```python\n# Try pdfplumber - better for tables and structured content\nimport pdfplumber\n\ntry:\n    text = \"\"\n    with pdfplumber.open(\"document.pdf\") as pdf:\n        for page in pdf.pages:\n            page_text = page.extract_text()\n            if page_text:\n                text += page_text + \"\\n\"\n    \n    if len(text.strip()) > 500:\n        with open(\"output.txt\", \"w\") as f:\n            f.write(text)\n        print(f\"SUCCESS: pdfplumber extracted {len(text)} characters\")\n    else:\n        print(\"WARNING: pdfplumber extraction too short\")\nexcept Exception as e:\n    print(f\"pdfplumber failed: {e}\")\n```\n\n### Step 5: Handle JavaScript-Protected Pages\n\nIf all methods fail, the PDF may be JavaScript-protected:\n\n```python\n# Check for JavaScript in PDF\nimport fitz\n\ndoc = fitz.open(\"document.pdf\")\nhas_js = False\nfor page in doc:\n    if page.get_java_script():\n        has_js = True\n        break\n\nif has_js:\n    print(\"WARNING: PDF contains JavaScript - may be protected\")\n    # Try rendering pages as images and OCR (requires additional tools)\n    # Or try alternative download source\n```\n\n### Step 6: Alternative Sources\n\nIf the primary URL fails:\n- Try alternative domains (e.g., `.gov` mirrors, archive.org)\n- Check if the document is available via API\n- Look for HTML version of the same content\n- Search for the document title + \"pdf\" to find mirrors\n\n## Decision Tree\n\n```\nDownload PDF\n    │\n    ├─→ File \u003C 1KB? → REJECT (likely error page)\n    ├─→ No %PDF header? → REJECT (not a PDF)\n    │\n    └─→ Valid PDF\n         │\n         ├─→ pdftotext → >50 words? → SUCCESS\n         │              └─→ Try next\n         │\n         ├─→ PyMuPDF → >500 chars? → SUCCESS\n         │             └─→ Try next\n         │\n         ├─→ pdfplumber → >500 chars? → SUCCESS\n         │                 └─→ Try next\n         │\n         └─→ All failed → Check for JS protection, try alternative sources\n```\n\n## Common Failure Modes\n\n| Symptom | Likely Cause | Solution |\n|---------|-------------|----------|\n| File \u003C 100 bytes | JavaScript error page | Check CORS, try different user-agent |\n| File ~1-5KB | HTML error\u002Fwarning page | Parse HTML for actual PDF link |\n| pdftotext returns empty | Encrypted\u002Fprotected PDF | Try PyMuPDF with password handling |\n| Garbled text output | Encoding issue | Try pdfplumber, specify encoding |\n| Extraction very short | Images-only PDF | Need OCR (tesseract) |\n\n## Example Complete Workflow Script\n\nSave as `extract_pdf_robust.sh`:\n\n```bash\n#!\u002Fbin\u002Fbash\nset -e\n\nURL=\"$1\"\nOUTPUT=\"${2:-output.txt}\"\nTEMP_PDF=\"temp_download.pdf\"\n\necho \"Downloading from: $URL\"\ncurl -L -A \"Mozilla\u002F5.0\" -o \"$TEMP_PDF\" \"$URL\"\n\n# Validate\nSIZE=$(stat -c%s \"$TEMP_PDF\" 2>\u002Fdev\u002Fnull || stat -f%z \"$TEMP_PDF\")\necho \"Downloaded: $SIZE bytes\"\n\nif [ \"$SIZE\" -lt 1024 ]; then\n    echo \"ERROR: File too small - checking content...\"\n    head -200 \"$TEMP_PDF\"\n    exit 1\nfi\n\nif ! head -c 4 \"$TEMP_PDF\" | grep -q \"%PDF\"; then\n    echo \"ERROR: Not a valid PDF file\"\n    head -100 \"$TEMP_PDF\"\n    exit 1\nfi\n\n# Try extraction methods\npython3 \u003C\u003C 'PYTHON'\nimport sys\nimport fitz\nimport pdfplumber\n\npdf_path = \"temp_download.pdf\"\noutput_path = \"output.txt\"\n\n# Method 1: PyMuPDF\ntry:\n    doc = fitz.open(pdf_path)\n    text = \"\".join(page.get_text() for page in doc)\n    if len(text.strip()) > 500:\n        with open(output_path, \"w\") as f:\n            f.write(text)\n        print(f\"PyMuPDF: {len(text)} chars\")\n        sys.exit(0)\nexcept Exception as e:\n    print(f\"PyMuPDF failed: {e}\")\n\n# Method 2: pdfplumber\ntry:\n    text = \"\"\n    with pdfplumber.open(pdf_path) as pdf:\n        for page in pdf.pages:\n            txt = page.extract_text()\n            if txt:\n                text += txt + \"\\n\"\n    if len(text.strip()) > 500:\n        with open(output_path, \"w\") as f:\n            f.write(text)\n        print(f\"pdfplumber: {len(text)} chars\")\n        sys.exit(0)\nexcept Exception as e:\n    print(f\"pdfplumber failed: {e}\")\n\nprint(\"All extraction methods failed\")\nsys.exit(1)\nPYTHON\n```\n\n## Best Practices\n\n1. **Always validate** - Never assume a download succeeded\n2. **Log the path taken** - Record which method worked for debugging\n3. **Set reasonable thresholds** - 50 words \u002F 500 chars minimum for \"success\"\n4. **Keep raw PDF** - Don't delete the original until extraction is confirmed\n5. **Retry with variations** - Different user-agents, referer headers, or mirrors\n\n## Dependencies\n\n- `curl` - For downloading\n- `poppler-utils` (pdftotext) - Optional, fast extraction\n- `PyMuPDF` (`fitz`) - `pip install pymupdf`\n- `pdfplumber` - `pip install pdfplumber`","# PDF Extraction with Multi-Fallback Strategy\n\n## Purpose\n\nWhen extracting text from PDFs (especially regulatory documents, handbooks, or protected content), single-method approaches often fail due to JavaScript protection, CORS restrictions, encoding issues, or corrupted downloads. This skill provides a robust multi-fallback workflow that detects failures early and tries sequential extraction methods.\n\n## Core Pattern\n\n1. **Download with validation** - Check file size and content sanity immediately\n2. **Sequential extraction attempts** - Try multiple tools in order of reliability\n3. **Early failure detection** - Don't proceed with obviously corrupt files\n4. **Document fallback path** - Log which method succeeded for future reference\n\n## Step-by-Step Instructions\n\n### Step 1: Download and Validate\n\nBefore attempting extraction, validate the downloaded file:\n\n```bash\n# Download the PDF\ncurl -L -o document.pdf \"$URL\"\n\n# Check file size (reject if \u003C 1KB - likely error page)\nFILE_SIZE=$(stat -f%z document.pdf 2>\u002Fdev\u002Fnull || stat -c%s document.pdf 2>\u002Fdev\u002Fnull)\nif [ \"$FILE_SIZE\" -lt 1024 ]; then\n    echo \"ERROR: File too small ($FILE_SIZE bytes) - likely not a valid PDF\"\n    # Check if it's an HTML error page\n    head -c 200 document.pdf | grep -i \"\u003Chtml\\|\u003C!doctype\\|error\\|access denied\" && \\\n        echo \"Detected HTML error page instead of PDF\"\n    exit 1\nfi\n\n# Check PDF magic bytes\nHEAD_BYTES=$(head -c 4 document.pdf)\nif [ \"$HEAD_BYTES\" != \"%PDF\" ]; then\n    echo \"ERROR: File does not start with PDF magic bytes\"\n    head -c 100 document.pdf\n    exit 1\nfi\n```\n\n### Step 2: Primary Extraction (pdftotext)\n\n```bash\n# Try pdftotext first (fastest, most reliable for simple PDFs)\nif command -v pdftotext &> \u002Fdev\u002Fnull; then\n    pdftotext -layout document.pdf output.txt 2>\u002Fdev\u002Fnull\n    if [ -s output.txt ]; then\n        WORD_COUNT=$(wc -w \u003C output.txt)\n        if [ \"$WORD_COUNT\" -gt 50 ]; then\n            echo \"SUCCESS: pdftotext extracted $WORD_COUNT words\"\n            exit 0\n        fi\n    fi\nfi\n```\n\n### Step 3: Fallback 1 (PyMuPDF\u002Ffitz)\n\n```python\n# Try PyMuPDF - handles more complex PDFs\nimport fitz  # pymupdf\n\ntry:\n    doc = fitz.open(\"document.pdf\")\n    text = \"\"\n    for page in doc:\n        text += page.get_text()\n    \n    if len(text.strip()) > 500:  # Sanity check\n        with open(\"output.txt\", \"w\") as f:\n            f.write(text)\n        print(f\"SUCCESS: PyMuPDF extracted {len(text)} characters\")\n    else:\n        print(\"WARNING: PyMuPDF extraction too short, trying next method\")\nexcept Exception as e:\n    print(f\"PyMuPDF failed: {e}\")\n```\n\n### Step 4: Fallback 2 (pdfplumber)\n\n```python\n# Try pdfplumber - better for tables and structured content\nimport pdfplumber\n\ntry:\n    text = \"\"\n    with pdfplumber.open(\"document.pdf\") as pdf:\n        for page in pdf.pages:\n            page_text = page.extract_text()\n            if page_text:\n                text += page_text + \"\\n\"\n    \n    if len(text.strip()) > 500:\n        with open(\"output.txt\", \"w\") as f:\n            f.write(text)\n        print(f\"SUCCESS: pdfplumber extracted {len(text)} characters\")\n    else:\n        print(\"WARNING: pdfplumber extraction too short\")\nexcept Exception as e:\n    print(f\"pdfplumber failed: {e}\")\n```\n\n### Step 5: Handle JavaScript-Protected Pages\n\nIf all methods fail, the PDF may be JavaScript-protected:\n\n```python\n# Check for JavaScript in PDF\nimport fitz\n\ndoc = fitz.open(\"document.pdf\")\nhas_js = False\nfor page in doc:\n    if page.get_java_script():\n        has_js = True\n        break\n\nif has_js:\n    print(\"WARNING: PDF contains JavaScript - may be protected\")\n    # Try rendering pages as images and OCR (requires additional tools)\n    # Or try alternative download source\n```\n\n### Step 6: Alternative Sources\n\nIf the primary URL fails:\n- Try alternative domains (e.g., `.gov` mirrors, archive.org)\n- Check if the document is available via API\n- Look for HTML version of the same content\n- Search for the document title + \"pdf\" to find mirrors\n\n## Decision Tree\n\n```\nDownload PDF\n    │\n    ├─→ File \u003C 1KB? → REJECT (likely error page)\n    ├─→ No %PDF header? → REJECT (not a PDF)\n    │\n    └─→ Valid PDF\n         │\n         ├─→ pdftotext → >50 words? → SUCCESS\n         │              └─→ Try next\n         │\n         ├─→ PyMuPDF → >500 chars? → SUCCESS\n         │             └─→ Try next\n         │\n         ├─→ pdfplumber → >500 chars? → SUCCESS\n         │                 └─→ Try next\n         │\n         └─→ All failed → Check for JS protection, try alternative sources\n```\n\n## Common Failure Modes\n\n| Symptom | Likely Cause | Solution |\n|---------|-------------|----------|\n| File \u003C 100 bytes | JavaScript error page | Check CORS, try different user-agent |\n| File ~1-5KB | HTML error\u002Fwarning page | Parse HTML for actual PDF link |\n| pdftotext returns empty | Encrypted\u002Fprotected PDF | Try PyMuPDF with password handling |\n| Garbled text output | Encoding issue | Try pdfplumber, specify encoding |\n| Extraction very short | Images-only PDF | Need OCR (tesseract) |\n\n## Example Complete Workflow Script\n\nSave as `extract_pdf_robust.sh`:\n\n```bash\n#!\u002Fbin\u002Fbash\nset -e\n\nURL=\"$1\"\nOUTPUT=\"${2:-output.txt}\"\nTEMP_PDF=\"temp_download.pdf\"\n\necho \"Downloading from: $URL\"\ncurl -L -A \"Mozilla\u002F5.0\" -o \"$TEMP_PDF\" \"$URL\"\n\n# Validate\nSIZE=$(stat -c%s \"$TEMP_PDF\" 2>\u002Fdev\u002Fnull || stat -f%z \"$TEMP_PDF\")\necho \"Downloaded: $SIZE bytes\"\n\nif [ \"$SIZE\" -lt 1024 ]; then\n    echo \"ERROR: File too small - checking content...\"\n    head -200 \"$TEMP_PDF\"\n    exit 1\nfi\n\nif ! head -c 4 \"$TEMP_PDF\" | grep -q \"%PDF\"; then\n    echo \"ERROR: Not a valid PDF file\"\n    head -100 \"$TEMP_PDF\"\n    exit 1\nfi\n\n# Try extraction methods\npython3 \u003C\u003C 'PYTHON'\nimport sys\nimport fitz\nimport pdfplumber\n\npdf_path = \"temp_download.pdf\"\noutput_path = \"output.txt\"\n\n# Method 1: PyMuPDF\ntry:\n    doc = fitz.open(pdf_path)\n    text = \"\".join(page.get_text() for page in doc)\n    if len(text.strip()) > 500:\n        with open(output_path, \"w\") as f:\n            f.write(text)\n        print(f\"PyMuPDF: {len(text)} chars\")\n        sys.exit(0)\nexcept Exception as e:\n    print(f\"PyMuPDF failed: {e}\")\n\n# Method 2: pdfplumber\ntry:\n    text = \"\"\n    with pdfplumber.open(pdf_path) as pdf:\n        for page in pdf.pages:\n            txt = page.extract_text()\n            if txt:\n                text += txt + \"\\n\"\n    if len(text.strip()) > 500:\n        with open(output_path, \"w\") as f:\n            f.write(text)\n        print(f\"pdfplumber: {len(text)} chars\")\n        sys.exit(0)\nexcept Exception as e:\n    print(f\"pdfplumber failed: {e}\")\n\nprint(\"All extraction methods failed\")\nsys.exit(1)\nPYTHON\n```\n\n## Best Practices\n\n1. **Always validate** - Never assume a download succeeded\n2. **Log the path taken** - Record which method worked for debugging\n3. **Set reasonable thresholds** - 50 words \u002F 500 chars minimum for \"success\"\n4. **Keep raw PDF** - Don't delete the original until extraction is confirmed\n5. **Retry with variations** - Different user-agents, referer headers, or mirrors\n\n## Dependencies\n\n- `curl` - For downloading\n- `poppler-utils` (pdftotext) - Optional, fast extraction\n- `PyMuPDF` (`fitz`) - `pip install pymupdf`\n- `pdfplumber` - `pip install pdfplumber`",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fpdf-extraction-fallbacks","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs","https:\u002F\u002Fxyliu-cs.github.io","PhD Student in CS, CUHK-Shenzhen.","2026-04-06 20:32:15",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pdf-extraction-fallbacks",{"tool":53,"command":54},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pdf-extraction-fallbacks",{"tool":56,"command":57},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pdf-extraction-fallbacks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-extraction-fallbacks\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},".skill_id","OTHER","其他",38,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-extraction-fallbacks\u002F.skill_id",[68,81,89,104,129,147],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":34},"01M6KG8MF1S664SWBDENYRSCK8","zip-export-deliverable","Ensures codebase deliverables are properly exported as ZIP archives through a dedicated finalization step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-export-deliverable\u002FSKILL.md",[],[75,76,77,78,79,80],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":34},"01M6KG8GAZWHHEK7VNJDW0ME21","zip-deliverable-finalization","Ensure codebase deliverables are properly packaged as ZIP exports in a dedicated final step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-deliverable-finalization\u002FSKILL.md",[],[88,76,78,79,80],"zip deliverable finalization",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":34},"01M6KG8CMQQ1PYMNTSRZ9VS1MD","zero-iteration-failure-analysis","Identify and handle agent failures with 0 iterations as pre-execution system issues","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzero-iteration-failure-analysis\u002FSKILL.md",[],[96,97,98,99,100,33,101,102,80,103],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","issues","execution","system",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":115,"publishedAt":34},"01M6KG86W3PA07FT9W58YHHERM","write-file-fallback-report","Generate professional documents using write_file when primary data sources fail, leveraging embedded domain knowledge instead of external retrieval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report\u002FSKILL.md",[110],{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[31,116,117,118,119,120,121,122,123,124,125,126,127,128],"write","file","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":138,"publishedAt":34},"01M6KG82GAEY3GG77CMGCK1C2T","fallback-doc-with-delegation","Generate professional documents after tool failures using shell_agent for complex formats or write_file for simple text\u002Fmarkdown","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced\u002FSKILL.md",[135],{"categoryNo":136,"categoryName":137,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[139,33,31,140,141,142,126,124,117,143,29,30,116,144,121,145,146],"fallback doc with delegation","doc","delegation","shell","markdown","simple","formats","for",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":154,"publishedAt":34},"01M6KG7WT7GX5NYCGEFHW22NV7","context-anchored-fallback-report","Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced-4bc5c2\u002FSKILL.md",[153],{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},[31,118,155,156,124,117,157,158,116,159,160,123,33,161,126],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]