[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HWE08EHBEW892YBZMBRX83":3,"skill-same:01M6HWE08EHBEW892YBZMBRX83":73},{"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":28,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6HWE08EHBEW892YBZMBRX83","docx-parse-resilient",null,"Extract text from DOCX files with shell-primary approach and Python zipfile fallback for maximum reliability","HKUDS\u002FAgentPilot","HKUDS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F118165258?v=4","01M6HW8VRNZP64G0P4MVJW2KKQ","✨Data Intelligence Lab@HKU✨","01M6HW8VWZVHBRHYH3T330PFWV",8029,"MIT","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Fdocx-shell-parse-enhanced\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39],"docx","docx parse resilient","python","shell","text","extract","reliability","files","fallback","with","for","2026-11-10 10:12:30",false,"---\nname: docx-parse-resilient\ndescription: Extract text from DOCX files with shell-primary approach and Python zipfile fallback for maximum reliability\n---\n\n# Resilient DOCX Text Extraction\n\nExtract text from Microsoft Word (.docx) files using a robust two-tier approach: shell-based extraction as the primary method, with Python zipfile fallback when shell commands fail or return no output.\n\n## When to Use\n\n- Python environment may lack `python-docx` but `zipfile` module is available (standard library)\n- Working in constrained or inconsistent environments (containers, minimal images, CI\u002FCD)\n- Shell `unzip` command returns errors or no output\n- Need reliable extraction with automatic fallback\n\n## Core Technique\n\nDOCX files are ZIP archives containing XML files. This skill provides two extraction methods:\n\n1. **Primary (Shell)**: `unzip -p` + `sed` for fast extraction\n2. **Fallback (Python)**: `zipfile` module for reliable extraction when shell fails\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. Test shell extraction first (recommended)\n\nTry the shell-based approach:\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml 2>\u002Fdev\u002Fnull | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg'\n```\n\n### 3. Check if shell extraction produced output\n\nVerify the shell method returned content:\n\n```bash\ncontent=$(unzip -p document.docx word\u002Fdocument.xml 2>\u002Fdev\u002Fnull | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg')\nif [ -z \"$content\" ]; then\n    echo \"Shell extraction returned no output, trying Python fallback...\"\nfi\n```\n\n### 4. Use Python zipfile fallback if needed\n\nWhen shell commands fail or return empty output, use Python's standard `zipfile` module:\n\n```bash\npython3 -c \"\nimport zipfile\nimport sys\nimport re\n\ntry:\n    with zipfile.ZipFile('document.docx', 'r') as z:\n        content = z.read('word\u002Fdocument.xml').decode('utf-8')\n        # Strip XML tags\n        text = re.sub(r'\u003C[^>]*>', '', content)\n        # Clean whitespace\n        lines = [line.strip() for line in text.split('\\n') if line.strip()]\n        print('\\n'.join(lines))\nexcept Exception as e:\n    print(f'Error: {e}', file=sys.stderr)\n    sys.exit(1)\n\"\n```\n\n### 5. Save extracted text to file\n\n```bash\n# Try shell first\nunzip -p document.docx word\u002Fdocument.xml 2>\u002Fdev\u002Fnull | \\\n  sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg' > output.txt\n\n# Verify output has content\nif [ ! -s output.txt ]; then\n    # Fallback to Python\n    python3 -c \"\nimport zipfile, re\nwith zipfile.ZipFile('document.docx', 'r') as z:\n    content = z.read('word\u002Fdocument.xml').decode('utf-8')\n    text = re.sub(r'\u003C[^>]*>', '', content)\n    lines = [line.strip() for line in text.split('\\n') if line.strip()]\n    print('\\n'.join(lines))\n\" > output.txt\nfi\n```\n\n## Complete Shell Function with Fallback\n\nAdd this resilient function to your scripts:\n\n```bash\nparse_docx_resilient() {\n    local file=\"$1\"\n    local output=\"$2\"\n    \n    if [ ! -f \"$file\" ]; then\n        echo \"Error: File not found: $file\" >&2\n        return 1\n    fi\n    \n    # Primary: Shell extraction\n    local content\n    content=$(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    # Check if shell extraction succeeded\n    if [ -n \"$content\" ]; then\n        echo \"$content\" > \"${output:-\u002Fdev\u002Fstdout}\"\n        return 0\n    fi\n    \n    # Fallback: Python zipfile\n    echo \"Shell extraction failed, using Python fallback...\" >&2\n    python3 -c \"\nimport zipfile, sys, re\ntry:\n    with zipfile.ZipFile('$file', 'r') as z:\n        content = z.read('word\u002Fdocument.xml').decode('utf-8')\n        text = re.sub(r'\u003C[^>]*>', '', content)\n        lines = [line.strip() for line in text.split('\\n') if line.strip()]\n        print('\\n'.join(lines))\nexcept Exception as e:\n    print(f'Python extraction failed: {e}', file=sys.stderr)\n    sys.exit(1)\n\" > \"${output:-\u002Fdev\u002Fstdout}\" || return 1\n}\n\n# Usage examples:\n# parse_docx_resilient document.docx          # Output to stdout\n# parse_docx_resilient document.docx out.txt  # Output to file\n```\n\n## Python Script Alternative\n\nFor complex workflows, save as a standalone script:\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"DOCX text extractor with resilient fallback.\"\"\"\n\nimport zipfile\nimport sys\nimport re\nimport subprocess\n\ndef extract_with_shell(filepath):\n    \"\"\"Try shell-based extraction first.\"\"\"\n    try:\n        result = subprocess.run(\n            ['unzip', '-p', filepath, 'word\u002Fdocument.xml'],\n            capture_output=True, text=True, timeout=10\n        )\n        if result.returncode == 0 and result.stdout.strip():\n            text = re.sub(r'\u003C[^>]*>', '', result.stdout)\n            lines = [l.strip() for l in text.split('\\n') if l.strip()]\n            return '\\n'.join(lines)\n    except Exception:\n        pass\n    return None\n\ndef extract_with_python(filepath):\n    \"\"\"Fallback Python zipfile extraction.\"\"\"\n    with zipfile.ZipFile(filepath, 'r') as z:\n        content = z.read('word\u002Fdocument.xml').decode('utf-8')\n        text = re.sub(r'\u003C[^>]*>', '', content)\n        lines = [l.strip() for l in text.split('\\n') if l.strip()]\n        return '\\n'.join(lines)\n\ndef parse_docx_resilient(filepath):\n    \"\"\"Extract text with automatic fallback.\"\"\"\n    # Try shell first\n    content = extract_with_shell(filepath)\n    if content:\n        return content, 'shell'\n    \n    # Fallback to Python\n    content = extract_with_python(filepath)\n    return content, 'python'\n\nif __name__ == '__main__':\n    if len(sys.argv) \u003C 2:\n        print(\"Usage: parse_docx_resilient.py \u003Cfile.docx>\", file=sys.stderr)\n        sys.exit(1)\n    \n    content, method = parse_docx_resilient(sys.argv[1])\n    if content:\n        print(f\"# Extracted using {method} method\", file=sys.stderr)\n        print(content)\n    else:\n        print(\"Failed to extract text from DOCX\", file=sys.stderr)\n        sys.exit(1)\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- Python fallback requires Python 3 with standard library (no external packages)\n\n## Verification\n\nConfirm extraction worked by checking output:\n\n```bash\n# Test shell method\nparse_docx_resilient document.docx | head -20\n\n# Test with file output\nparse_docx_resilient document.docx extracted.txt\nwc -l extracted.txt  # Should show line count > 0\n\n# Verify content\ngrep -c \"[a-zA-Z]\" extracted.txt  # Should show character content\n```\n\n## Troubleshooting\n\n**Shell returns \"unknown error\" or no output:**\n- This is expected in some environments\n- The function automatically falls back to Python zipfile\n- Check `which unzip` to verify unzip is available\n\n**Python also fails:**\n- Verify the file is a valid DOCX: `file document.docx`\n- Check if file is corrupted: `unzip -t document.docx`\n- Ensure Python 3 is available: `python3 --version`\n\n**File not found errors:**\n- Use absolute path or verify working directory\n- Check file permissions: `ls -la document.docx`\n\n## Environment Detection\n\nTo pre-detect which method to use:\n\n```bash\n# Check if unzip is available\nif command -v unzip &> \u002Fdev\u002Fnull; then\n    echo \"Shell method available\"\nelse\n    echo \"Only Python method available\"\nfi\n\n# Check if Python 3 is available\nif command -v python3 &> \u002Fdev\u002Fnull; then\n    echo \"Python fallback available\"\nelse\n    echo \"Warning: No extraction method available!\"\nfi\n```\n","# Resilient DOCX Text Extraction\n\nExtract text from Microsoft Word (.docx) files using a robust two-tier approach: shell-based extraction as the primary method, with Python zipfile fallback when shell commands fail or return no output.\n\n## When to Use\n\n- Python environment may lack `python-docx` but `zipfile` module is available (standard library)\n- Working in constrained or inconsistent environments (containers, minimal images, CI\u002FCD)\n- Shell `unzip` command returns errors or no output\n- Need reliable extraction with automatic fallback\n\n## Core Technique\n\nDOCX files are ZIP archives containing XML files. This skill provides two extraction methods:\n\n1. **Primary (Shell)**: `unzip -p` + `sed` for fast extraction\n2. **Fallback (Python)**: `zipfile` module for reliable extraction when shell fails\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. Test shell extraction first (recommended)\n\nTry the shell-based approach:\n\n```bash\nunzip -p document.docx word\u002Fdocument.xml 2>\u002Fdev\u002Fnull | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg'\n```\n\n### 3. Check if shell extraction produced output\n\nVerify the shell method returned content:\n\n```bash\ncontent=$(unzip -p document.docx word\u002Fdocument.xml 2>\u002Fdev\u002Fnull | sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg')\nif [ -z \"$content\" ]; then\n    echo \"Shell extraction returned no output, trying Python fallback...\"\nfi\n```\n\n### 4. Use Python zipfile fallback if needed\n\nWhen shell commands fail or return empty output, use Python's standard `zipfile` module:\n\n```bash\npython3 -c \"\nimport zipfile\nimport sys\nimport re\n\ntry:\n    with zipfile.ZipFile('document.docx', 'r') as z:\n        content = z.read('word\u002Fdocument.xml').decode('utf-8')\n        # Strip XML tags\n        text = re.sub(r'\u003C[^>]*>', '', content)\n        # Clean whitespace\n        lines = [line.strip() for line in text.split('\\n') if line.strip()]\n        print('\\n'.join(lines))\nexcept Exception as e:\n    print(f'Error: {e}', file=sys.stderr)\n    sys.exit(1)\n\"\n```\n\n### 5. Save extracted text to file\n\n```bash\n# Try shell first\nunzip -p document.docx word\u002Fdocument.xml 2>\u002Fdev\u002Fnull | \\\n  sed -e 's\u002F\u003C[^>]*>\u002F\u002Fg' > output.txt\n\n# Verify output has content\nif [ ! -s output.txt ]; then\n    # Fallback to Python\n    python3 -c \"\nimport zipfile, re\nwith zipfile.ZipFile('document.docx', 'r') as z:\n    content = z.read('word\u002Fdocument.xml').decode('utf-8')\n    text = re.sub(r'\u003C[^>]*>', '', content)\n    lines = [line.strip() for line in text.split('\\n') if line.strip()]\n    print('\\n'.join(lines))\n\" > output.txt\nfi\n```\n\n## Complete Shell Function with Fallback\n\nAdd this resilient function to your scripts:\n\n```bash\nparse_docx_resilient() {\n    local file=\"$1\"\n    local output=\"$2\"\n    \n    if [ ! -f \"$file\" ]; then\n        echo \"Error: File not found: $file\" >&2\n        return 1\n    fi\n    \n    # Primary: Shell extraction\n    local content\n    content=$(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    # Check if shell extraction succeeded\n    if [ -n \"$content\" ]; then\n        echo \"$content\" > \"${output:-\u002Fdev\u002Fstdout}\"\n        return 0\n    fi\n    \n    # Fallback: Python zipfile\n    echo \"Shell extraction failed, using Python fallback...\" >&2\n    python3 -c \"\nimport zipfile, sys, re\ntry:\n    with zipfile.ZipFile('$file', 'r') as z:\n        content = z.read('word\u002Fdocument.xml').decode('utf-8')\n        text = re.sub(r'\u003C[^>]*>', '', content)\n        lines = [line.strip() for line in text.split('\\n') if line.strip()]\n        print('\\n'.join(lines))\nexcept Exception as e:\n    print(f'Python extraction failed: {e}', file=sys.stderr)\n    sys.exit(1)\n\" > \"${output:-\u002Fdev\u002Fstdout}\" || return 1\n}\n\n# Usage examples:\n# parse_docx_resilient document.docx          # Output to stdout\n# parse_docx_resilient document.docx out.txt  # Output to file\n```\n\n## Python Script Alternative\n\nFor complex workflows, save as a standalone script:\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"DOCX text extractor with resilient fallback.\"\"\"\n\nimport zipfile\nimport sys\nimport re\nimport subprocess\n\ndef extract_with_shell(filepath):\n    \"\"\"Try shell-based extraction first.\"\"\"\n    try:\n        result = subprocess.run(\n            ['unzip', '-p', filepath, 'word\u002Fdocument.xml'],\n            capture_output=True, text=True, timeout=10\n        )\n        if result.returncode == 0 and result.stdout.strip():\n            text = re.sub(r'\u003C[^>]*>', '', result.stdout)\n            lines = [l.strip() for l in text.split('\\n') if l.strip()]\n            return '\\n'.join(lines)\n    except Exception:\n        pass\n    return None\n\ndef extract_with_python(filepath):\n    \"\"\"Fallback Python zipfile extraction.\"\"\"\n    with zipfile.ZipFile(filepath, 'r') as z:\n        content = z.read('word\u002Fdocument.xml').decode('utf-8')\n        text = re.sub(r'\u003C[^>]*>', '', content)\n        lines = [l.strip() for l in text.split('\\n') if l.strip()]\n        return '\\n'.join(lines)\n\ndef parse_docx_resilient(filepath):\n    \"\"\"Extract text with automatic fallback.\"\"\"\n    # Try shell first\n    content = extract_with_shell(filepath)\n    if content:\n        return content, 'shell'\n    \n    # Fallback to Python\n    content = extract_with_python(filepath)\n    return content, 'python'\n\nif __name__ == '__main__':\n    if len(sys.argv) \u003C 2:\n        print(\"Usage: parse_docx_resilient.py \u003Cfile.docx>\", file=sys.stderr)\n        sys.exit(1)\n    \n    content, method = parse_docx_resilient(sys.argv[1])\n    if content:\n        print(f\"# Extracted using {method} method\", file=sys.stderr)\n        print(content)\n    else:\n        print(\"Failed to extract text from DOCX\", file=sys.stderr)\n        sys.exit(1)\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- Python fallback requires Python 3 with standard library (no external packages)\n\n## Verification\n\nConfirm extraction worked by checking output:\n\n```bash\n# Test shell method\nparse_docx_resilient document.docx | head -20\n\n# Test with file output\nparse_docx_resilient document.docx extracted.txt\nwc -l extracted.txt  # Should show line count > 0\n\n# Verify content\ngrep -c \"[a-zA-Z]\" extracted.txt  # Should show character content\n```\n\n## Troubleshooting\n\n**Shell returns \"unknown error\" or no output:**\n- This is expected in some environments\n- The function automatically falls back to Python zipfile\n- Check `which unzip` to verify unzip is available\n\n**Python also fails:**\n- Verify the file is a valid DOCX: `file document.docx`\n- Check if file is corrupted: `unzip -t document.docx`\n- Ensure Python 3 is available: `python3 --version`\n\n**File not found errors:**\n- Use absolute path or verify working directory\n- Check file permissions: `ls -la document.docx`\n\n## Environment Detection\n\nTo pre-detect which method to use:\n\n```bash\n# Check if unzip is available\nif command -v unzip &> \u002Fdev\u002Fnull; then\n    echo \"Shell method available\"\nelse\n    echo \"Only Python method available\"\nfi\n\n# Check if Python 3 is available\nif command -v python3 &> \u002Fdev\u002Fnull; then\n    echo \"Python fallback available\"\nelse\n    echo \"Warning: No extraction method available!\"\nfi\n```\n",{"name":5,"description":7},"main","6b84b0689ca0d9e7b1e4061188ff6b60758e0f8a","openspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Fdocx-shell-parse-enhanced",944,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot","https:\u002F\u002Fgithub.com\u002FHKUDS","https:\u002F\u002Fsites.google.com\u002Fview\u002Fchaoh","2026-11-12 22:26:39",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add HKUDS\u002FAgentPilot --skill docx-parse-resilient",{"tool":59,"command":60},"bunx","bunx skills add HKUDS\u002FAgentPilot --skill docx-parse-resilient",{"tool":62,"command":63},"pnpm","pnpm dlx skills add HKUDS\u002FAgentPilot --skill docx-parse-resilient","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Fdocx-shell-parse-enhanced\u002FSKILL.md",true,[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},".skill_id","OTHER","其他",39,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Fdocx-shell-parse-enhanced\u002F.skill_id",[74,93,112,134,157,178],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":40},"01M6HYB297NDABRERJRVG0K8R0","agentpilot","Set up AgentPilot and use its single entry to prepare missing inputs and run configured RSI experiments. Use when the user requests AgentPilot installation or work with AgentPilot.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fplugins\u002Fagentpilot\u002Fskills\u002Fagentpilot\u002FSKILL.md",[],[76,81,82,38,83,84,85,86,87,88,89,90,91,92],"prepare","requests","missing","installation","rsi","up","use","user","work","SET","run","experiments",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":40},"01M6HYAYWXTTE1J7DJM0MFNQ4H","remember","Review auto-memory entries and propose promotions to OPENSPACE.md, OPENSPACE.local.md, or retained auto-memory topics; detect duplicates, stale facts, conflicts, and ambiguous entries before making changes.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fskills\u002Fremember\u002FSKILL.md",[],[95,100,101,102,103,104,105,106,107,108,109,110,111],"memory","review","auto","openspace","changes","facts","detect","entries","local","conflicts","stale","duplicates",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":121,"publishedAt":40},"01M6HYAVMPM4SBDV60R2B5HPV8","skill-discovery","Search reusable OpenSpace skills locally, and browse cloud packages step by step when a cloud skill may help. Reusing proven skills saves tokens, improves reliability, and extends your capabilities beyond built-in tools.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fhost_skills\u002Fskill-discovery\u002FSKILL.md",[118],{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[122,123,124,103,125,126,127,128,129,35,130,131,132,133],"skill discovery","discovery","reusable","step by step","tokens","packages","help","cloud","capabilities","browse","search","Tools",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":141,"publishedAt":40},"01M6HYAR811B3RB0M50RBEDGN6","delegate-task","Delegate tasks to OpenSpace — a full-stack autonomous worker for coding, DevOps, web research, and desktop automation, backed by an extensive MCP tool and skill library. Skills auto-improve through use, reducing token consumption over time. A cloud community lets agents share and collectively evolve reusable skills.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fhost_skills\u002Fdelegate-task\u002FSKILL.md",[140],{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},[142,143,144,103,145,146,147,148,149,124,102,87,150,151,152,39,153,154,155,156],"delegate","task","delegate task","time","improve","desktop automation","worker","community","autonomous","tool","stack","share","tasks","automation","MCP",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":40},"01M6HYAM9FSGV6E52AYENDQXYH","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\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[164,165,166,167,36,168,169,170,171,31,172,173,174,175,39,176,177],"write special chars ts check","write","check","type","filters","only","template","file","typescript","output","Existing","type-checking","errors","script",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":40},"01M6HYAH05HGV7SVWSVR8PJRQD","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\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[185,186,165,38,39,177,187,188,189,190,191,170,171,192,193,31],"write special chars readback","readback","helper","post","via","scripts","read","verification","cleanup"]