[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJ2G5VKXBYK3GQBNAARZHR":3,"skill-same:01M6KJ2G5VKXBYK3GQBNAARZHR":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M6KJ2G5VKXBYK3GQBNAARZHR","docx-shell-parse",null,"Extract text from DOCX files using shell commands when python-docx is unavailable","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fdocx-shell-parse\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26],"docx","shell","docx shell parse","python","text","extract","files","commands","python-docx","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","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Fdocx-shell-parse","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace","https:\u002F\u002Fgithub.com\u002FAG064","AG064, E.Mi.\r\n\r\nA person who thinks all the time, yet all they have to think about is nothing. I want to improve the world and work on open source projects","2026-10-08 06:53:48",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add AG064\u002FOpenSpace --skill docx-shell-parse",{"tool":45,"command":46},"bunx","bunx skills add AG064\u002FOpenSpace --skill docx-shell-parse",{"tool":48,"command":49},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill docx-shell-parse","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fdocx-shell-parse\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},".skill_id","OTHER","其他",30,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fdocx-shell-parse\u002F.skill_id",[60,82,99,107,132,148],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":27},"01M6KKMPWA0B5SCCH766F8M5EA","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[67,68,69,70,71,72,73,74,75,76,77,24,78,79,80,21,81],"write special chars ts check","check","write","filters","Existing","type-checking","for","errors","script","output","type","only","template","file","typescript",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":27},"01M6KKMJXVBNVEY3TRK055F4A7","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[89,90,69,79,91,92,80,21,93,94,95,96,97,73,75,98],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper","with",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":27},"01M6KKMEGX9M9NC105J0W3Q5B9","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[69,106,21,73,95,79,19,80,75],"write special chars heredoc",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":27},"01M6KKM8EJ2AATVHZBNB916WT0","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[],[114,115,116,117,81,118,119,120,121,122,73,123,124,125,126,127,128,129,130,131],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":27},"01M6KKM39PHYK627F19GE2B9XN","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[139,140,141,142,73,143,98,144,145,146,147],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":27},"01M6KKKY7T2P61Y0JH54CDEJKQ","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[155,156,157,158,159,160,80,161,162,163],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]