[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFV668QY36MK0VV4JXBATZ":3,"skill-same:01M6KFV668QY36MK0VV4JXBATZ":63},{"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":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":14,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6KFV668QY36MK0VV4JXBATZ","pptx-validation-fallback",null,"Validate PowerPoint files using python-pptx when read_file fails","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\u002Fpptx-validation-fallback\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"pptx","validation","fallback","pptx validation fallback","python","validate","powerpoint","file","read","files","python-pptx","2026-11-10 10:12:30",false,"---\nname: pptx-validation-fallback\ndescription: Validate PowerPoint files using python-pptx when read_file fails\n---\n\n# PowerPoint Validation Fallback\n\n## When to Use\n\nUse this skill when `read_file` fails to properly read or validate PowerPoint (.pptx) files. This provides a reliable alternative for verifying presentation contents including slide count, titles, and structure.\n\n## Procedure\n\n### Step 1: Check if read_file Failed\n\nIf `read_file` with filetype `pptx` returns errors, incomplete content, or cannot extract slide information, proceed to the fallback method.\n\n### Step 2: Use run_shell with python-pptx\n\nExecute Python code via `run_shell` using the `python-pptx` library to inspect the presentation:\n\n```python\nfrom pptx import Presentation\n\n# Load the presentation\nprs = Presentation('path\u002Fto\u002Ffile.pptx')\n\n# Get basic info\nslide_count = len(prs.slides)\nprint(f\"Total slides: {slide_count}\")\n\n# Extract slide titles\nfor i, slide in enumerate(prs.slides):\n    if slide.shapes.title:\n        title = slide.shapes.title.text\n        print(f\"Slide {i+1}: {title}\")\n    else:\n        print(f\"Slide {i+1}: [No title]\")\n```\n\n### Step 3: Validate Structure\n\nCheck that the presentation meets expected requirements:\n\n```python\nfrom pptx import Presentation\n\nprs = Presentation('path\u002Fto\u002Ffile.pptx')\n\n# Validation checks\nexpected_slides = 10  # Adjust based on requirements\nactual_slides = len(prs.slides)\n\nif actual_slides >= expected_slides:\n    print(f\"✓ Slide count OK: {actual_slides} slides\")\nelse:\n    print(f\"✗ Insufficient slides: {actual_slides}\u002F{expected_slides}\")\n\n# Check for content on each slide\nfor i, slide in enumerate(prs.slides):\n    has_title = slide.shapes.title is not None\n    has_content = len(slide.shapes) > 1\n    print(f\"Slide {i+1}: title={has_title}, content={has_content}\")\n```\n\n### Step 4: Extract Detailed Content (Optional)\n\nFor deeper validation, extract text content from all shapes:\n\n```python\nfrom pptx import Presentation\n\nprs = Presentation('path\u002Fto\u002Ffile.pptx')\n\nfor i, slide in enumerate(prs.slides):\n    print(f\"\\n=== Slide {i+1} ===\")\n    for shape in slide.shapes:\n        if hasattr(shape, \"text\") and shape.text.strip():\n            print(shape.text)\n```\n\n## Expected Output\n\nSuccessful validation should provide:\n- Confirmed slide count\n- List of slide titles\n- Verification that each slide has expected content structure\n\n## Common Use Cases\n\n- Verifying generated presentations have correct number of slides\n- Confirming slide titles match required topics\n- Validating presentation structure before delivery\n- Debugging why read_file cannot parse a .pptx file\n\n## Dependencies\n\nThe `python-pptx` library must be available in the execution environment. Most Python environments support it via pip:\n\n```bash\npip install python-pptx\n```","# PowerPoint Validation Fallback\n\n## When to Use\n\nUse this skill when `read_file` fails to properly read or validate PowerPoint (.pptx) files. This provides a reliable alternative for verifying presentation contents including slide count, titles, and structure.\n\n## Procedure\n\n### Step 1: Check if read_file Failed\n\nIf `read_file` with filetype `pptx` returns errors, incomplete content, or cannot extract slide information, proceed to the fallback method.\n\n### Step 2: Use run_shell with python-pptx\n\nExecute Python code via `run_shell` using the `python-pptx` library to inspect the presentation:\n\n```python\nfrom pptx import Presentation\n\n# Load the presentation\nprs = Presentation('path\u002Fto\u002Ffile.pptx')\n\n# Get basic info\nslide_count = len(prs.slides)\nprint(f\"Total slides: {slide_count}\")\n\n# Extract slide titles\nfor i, slide in enumerate(prs.slides):\n    if slide.shapes.title:\n        title = slide.shapes.title.text\n        print(f\"Slide {i+1}: {title}\")\n    else:\n        print(f\"Slide {i+1}: [No title]\")\n```\n\n### Step 3: Validate Structure\n\nCheck that the presentation meets expected requirements:\n\n```python\nfrom pptx import Presentation\n\nprs = Presentation('path\u002Fto\u002Ffile.pptx')\n\n# Validation checks\nexpected_slides = 10  # Adjust based on requirements\nactual_slides = len(prs.slides)\n\nif actual_slides >= expected_slides:\n    print(f\"✓ Slide count OK: {actual_slides} slides\")\nelse:\n    print(f\"✗ Insufficient slides: {actual_slides}\u002F{expected_slides}\")\n\n# Check for content on each slide\nfor i, slide in enumerate(prs.slides):\n    has_title = slide.shapes.title is not None\n    has_content = len(slide.shapes) > 1\n    print(f\"Slide {i+1}: title={has_title}, content={has_content}\")\n```\n\n### Step 4: Extract Detailed Content (Optional)\n\nFor deeper validation, extract text content from all shapes:\n\n```python\nfrom pptx import Presentation\n\nprs = Presentation('path\u002Fto\u002Ffile.pptx')\n\nfor i, slide in enumerate(prs.slides):\n    print(f\"\\n=== Slide {i+1} ===\")\n    for shape in slide.shapes:\n        if hasattr(shape, \"text\") and shape.text.strip():\n            print(shape.text)\n```\n\n## Expected Output\n\nSuccessful validation should provide:\n- Confirmed slide count\n- List of slide titles\n- Verification that each slide has expected content structure\n\n## Common Use Cases\n\n- Verifying generated presentations have correct number of slides\n- Confirming slide titles match required topics\n- Validating presentation structure before delivery\n- Debugging why read_file cannot parse a .pptx file\n\n## Dependencies\n\nThe `python-pptx` library must be available in the execution environment. Most Python environments support it via pip:\n\n```bash\npip install python-pptx\n```",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fpptx-validation-fallback","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":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pptx-validation-fallback",{"tool":49,"command":50},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pptx-validation-fallback",{"tool":52,"command":53},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pptx-validation-fallback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpptx-validation-fallback\u002FSKILL.md",true,[57],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},".skill_id","OTHER","其他",38,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpptx-validation-fallback\u002F.skill_id",[64,77,85,101,120,137],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":30},"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",[],[71,72,73,74,75,76],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":30},"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",[],[84,72,74,75,76],"zip deliverable finalization",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":30},"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",[],[92,93,94,95,96,97,98,99,76,100],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","execution","system",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":30},"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",[],[21,108,26,109,110,111,112,113,114,115,116,117,118,119],"write","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":30},"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",[],[127,97,21,128,129,130,117,115,26,131,132,133,108,134,112,135,136],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats","for",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":30},"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",[],[21,109,144,145,115,26,146,147,108,148,149,114,97,150,117],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]