[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBJEE4FJQ89SJE4B4358NJ":3,"skill-same:01M6XBJEE4FJQ89SJE4B4358NJ":70},{"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":27,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":13,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6XBJEE4FJQ89SJE4B4358NJ","docx-shell-parse",null,"Extract text from DOCX files using shell commands when python-docx is 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\u002Fdocx-shell-parse\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[28,29,30,31,32,33,34,35,36,37,38],"docx","shell","docx shell parse","parse","python","text","extract","files","commands","python-docx","when","2026-11-10 10:12:30",false,"---\nname: docx-shell-parse\ndescription: Extract text from DOCX files using shell commands when python-docx is unavailable\n---\n\n# DOCX Shell Parsing Workaround\n\nWhen you need to read content from Microsoft Word (.docx) files but python-docx or similar libraries are unavailable, use this shell-based approach to extract text reliably.\n\n## When to Use\n\n- Python environment lacks `python-docx` or similar libraries\n- You need quick text extraction without installing dependencies\n- Working in constrained environments (containers, minimal images, etc.)\n\n## Core Technique\n\nDOCX files are ZIP archives containing XML files. Extract and parse the main document XML:\n\n```bash\nunzip -p filename.docx word\u002Fdocument.xml | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg'\n```\n\n## Step-by-Step Instructions\n\n### 1. Verify the DOCX file exists\n\n```bash\nls -la document.docx\n```\n\n### 2. Extract raw XML content\n\nUse `unzip -p` to pipe the document.xml content directly to stdout:\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml\n```\n\n### 3. Strip XML tags from content\n\nPipe through `sed` to remove all XML tags:\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg'\n```\n\n### 4. Clean up whitespace (optional)\n\nFor cleaner output, remove excessive whitespace and newlines:\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml | \\\n  sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg' | \\\n  sed -e 's\u002F^[[:space:]]*\u002F\u002F' -e 's\u002F[[:space:]]*$\u002F\u002F' | \\\n  sed -e '\u002F^$\u002Fd'\n```\n\n### 5. Save extracted text to file\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml | \\\n  sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg' > output.txt\n```\n\n## Complete Shell Function\n\nAdd this reusable function to your scripts:\n\n```bash\nparse_docx() {\n    local file=\"$1\"\n    if [ ! -f \"$file\" ]; then\n        echo \"Error: File not found: $file\" >&2\n        return 1\n    fi\n    unzip -p \"$file\" word\u002Fdocument.xml 2>\u002Fdev\u002Fnull | \\\n        sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg' | \\\n        sed -e 's\u002F^[[:space:]]*\u002F\u002F' -e 's\u002F[[:space:]]*$\u002F\u002F' | \\\n        sed -e '\u002F^$\u002Fd'\n}\n\n# Usage: parse_docx document.docx\n```\n\n## Limitations\n\n- Does not preserve formatting, images, or tables structure\n- May include some residual XML entity references\n- Works best for simple text extraction needs\n- DOCX must be a valid Office Open XML format\n\n## Verification\n\nConfirm extraction worked by checking output:\n\n```bash\nparse_docx document.docx | head -20\n```\n\n## Alternative: Extract to Temporary Directory\n\nFor more complex parsing needs:\n\n```bash\ntmpdir=$(mktemp -d)\nunzip document.docx -d \"$tmpdir\"\ncat \"$tmpdir\u002Fword\u002Fdocument.xml\" | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg'\nrm -rf \"$tmpdir\"\n```","# DOCX Shell Parsing Workaround\n\nWhen you need to read content from Microsoft Word (.docx) files but python-docx or similar libraries are unavailable, use this shell-based approach to extract text reliably.\n\n## When to Use\n\n- Python environment lacks `python-docx` or similar libraries\n- You need quick text extraction without installing dependencies\n- Working in constrained environments (containers, minimal images, etc.)\n\n## Core Technique\n\nDOCX files are ZIP archives containing XML files. Extract and parse the main document XML:\n\n```bash\nunzip -p filename.docx word\u002Fdocument.xml | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg'\n```\n\n## Step-by-Step Instructions\n\n### 1. Verify the DOCX file exists\n\n```bash\nls -la document.docx\n```\n\n### 2. Extract raw XML content\n\nUse `unzip -p` to pipe the document.xml content directly to stdout:\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml\n```\n\n### 3. Strip XML tags from content\n\nPipe through `sed` to remove all XML tags:\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg'\n```\n\n### 4. Clean up whitespace (optional)\n\nFor cleaner output, remove excessive whitespace and newlines:\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml | \\\n  sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg' | \\\n  sed -e 's\u002F^[[:space:]]*\u002F\u002F' -e 's\u002F[[:space:]]*$\u002F\u002F' | \\\n  sed -e '\u002F^$\u002Fd'\n```\n\n### 5. Save extracted text to file\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml | \\\n  sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg' > output.txt\n```\n\n## Complete Shell Function\n\nAdd this reusable function to your scripts:\n\n```bash\nparse_docx() {\n    local file=\"$1\"\n    if [ ! -f \"$file\" ]; then\n        echo \"Error: File not found: $file\" >&2\n        return 1\n    fi\n    unzip -p \"$file\" word\u002Fdocument.xml 2>\u002Fdev\u002Fnull | \\\n        sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg' | \\\n        sed -e 's\u002F^[[:space:]]*\u002F\u002F' -e 's\u002F[[:space:]]*$\u002F\u002F' | \\\n        sed -e '\u002F^$\u002Fd'\n}\n\n# Usage: parse_docx document.docx\n```\n\n## Limitations\n\n- Does not preserve formatting, images, or tables structure\n- May include some residual XML entity references\n- Works best for simple text extraction needs\n- DOCX must be a valid Office Open XML format\n\n## Verification\n\nConfirm extraction worked by checking output:\n\n```bash\nparse_docx document.docx | head -20\n```\n\n## Alternative: Extract to Temporary Directory\n\nFor more complex parsing needs:\n\n```bash\ntmpdir=$(mktemp -d)\nunzip document.docx -d \"$tmpdir\"\ncat \"$tmpdir\u002Fword\u002Fdocument.xml\" | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg'\nrm -rf \"$tmpdir\"\n```",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fdocx-shell-parse","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":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill docx-shell-parse",{"tool":56,"command":57},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill docx-shell-parse",{"tool":59,"command":60},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill docx-shell-parse","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fdocx-shell-parse\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},".skill_id","OTHER","其他",30,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fdocx-shell-parse\u002F.skill_id",[71,94,111,119,147,163],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":39},"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",[],[78,79,80,81,82,83,84,85,86,87,88,89,90,35,91,92,93,32],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","only","template","file",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"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",[],[101,102,79,93,103,32,104,105,106,107,108,92,109,110,83,86,88],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"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":39},"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",[],[118,79,83,29,88,105,92,93,32,86],"write special chars heredoc",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":128,"publishedAt":39},"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",[125],{"categoryNo":126,"categoryName":127,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000033","数据分析师",[129,130,131,132,133,81,134,135,136,137,138,86,139,140,141,142,143,144,145,146],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":39},"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",[],[154,155,156,157,86,158,110,159,160,161,162],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":39},"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",[],[170,171,172,173,174,175,93,176,177,178],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]