[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77YGHM3RRH4PQ474KXYWQZX":3,"skill-same:01M77YGHM3RRH4PQ474KXYWQZX":58},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M77YGHM3RRH4PQ474KXYWQZX","word-document-organizer",null,"智能整理Word文档，自动格式化、生成目录、统一样式，支持学术\u002F商务\u002F极简模板","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fw\u002Fword-document-organizer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: word-document-organizer\nversion: 1.0.0\ndescription: 智能整理Word文档，自动格式化、生成目录、统一样式，支持学术\u002F商务\u002F极简模板\nauthor: Jasper.W\ntags: [productivity, microsoft-office, document, automation, word]\ntools: [bash, python]\n---\n\n# Word 文档整理助手\n\n智能识别文档结构，自动应用标准化排版，生成专业目录，让文档整理一键完成。\n\n## 触发条件\n当用户提出以下请求时激活此技能：\n- \"整理word文档\"\n- \"格式化文档\" \n- \"生成文档目录\"\n- \"统一文档样式\"\n- \"排版优化\"\n- \"修复word格式\"\n- \"规范文档格式\"\n- \"word排版\"\n\n## 参数定义\n\n### document_path（必需）\n- **类型**: string\n- **描述**: Word文档的完整路径（支持.docx格式）\n- **示例**: \"C:\u002FUsers\u002FDesktop\u002F报告.docx\", \"\u002Fhome\u002Fuser\u002Fdocs\u002F论文.docx\"\n\n### operations（可选，默认: all）\n- **类型**: array[string]\n- **描述**: 要执行的操作列表\n- **可选值**: \n  - `format`: 格式化段落（行距、间距、字体统一）\n  - `toc`: 生成文档目录\n  - `styles`: 应用标准样式模板\n  - `cleanup`: 清理空段落和冗余格式\n  - `all`: 执行所有操作（默认）\n\n### style_template（可选，默认: academic）\n- **类型**: string\n- **描述**: 样式模板类型\n- **可选值**:\n  - `academic`: 学术模板（宋体、层级分明，适合论文\u002F报告）\n  - `business`: 商务模板（微软雅黑、现代简洁，适合商业文档）\n  - `minimal`: 极简模板（Arial、紧凑排版，适合笔记\u002F草稿）\n  - `default`: 默认模板（通用设置）\n\n### output_path（可选）\n- **类型**: string\n- **描述**: 输出文件路径（默认覆盖原文件，建议指定新路径保留原文件）\n- **示例**: \"C:\u002FUsers\u002FDesktop\u002F报告_整理版.docx\"\n\n## 执行流程\n\n### 步骤1: 环境检查与备份\n```bash\n#!\u002Fbin\u002Fbash\n# 检查文件存在性\nif [ ! -f \"${document_path}\" ]; then\n    echo \"错误：文件不存在 ${document_path}\"\n    echo \"请检查路径是否正确，或文件是否被移动\u002F删除\"\n    exit 1\nfi\n\n# 检查文件扩展名\nif [[ ! \"${document_path}\" =~ \\.(docx|doc)$ ]]; then\n    echo \"错误：仅支持 .docx 或 .doc 格式\"\n    exit 1\nfi\n\n# 创建时间戳备份\nbackup_path=\"${document_path}.backup.$(date +%Y%m%d_%H%M%S)\"\ncp \"${document_path}\" \"${backup_path}\"\necho \"已创建备份: ${backup_path}\"\n```\n\n### 步骤2: 安装Python依赖\n```bash\n#!\u002Fbin\u002Fbash\n# 检查python-docx是否已安装\npython3 -c \"import docx\" 2>\u002Fdev\u002Fnull || pip3 install python-docx -q\necho \"依赖检查完成\"\n```\n\n### 步骤3: 执行文档整理（核心Python脚本）\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n# -*- coding: utf-8 -*-\n\nfrom docx import Document\nfrom docx.shared import Pt, Inches, RGBColor\nfrom docx.enum.text import WD_ALIGN_PARAGRAPH\nfrom docx.oxml.ns import qn\nimport sys\nimport re\nimport os\n\n# 获取参数\ndoc_path = \"${document_path}\"\noutput_path = \"${output_path}\" if \"${output_path}\" else doc_path\ntemplate = \"${style_template}\"\noperations = [op.strip() for op in \"${operations}\".split(\",\")] if \"${operations}\" else [\"all\"]\n\nprint(f\"处理文件: {doc_path}\")\nprint(f\"执行操作: {operations}\")\nprint(f\"使用模板: {template}\")\n\n# 加载文档\ntry:\n    doc = Document(doc_path)\nexcept Exception as e:\n    print(f\"无法打开文档: {e}\")\n    print(\"提示：请确保文档未被Microsoft Word占用（关闭Word后重试）\")\n    sys.exit(1)\n\n# 模板配置\nTEMPLATES = {\n    \"academic\": {\n        \"h1_size\": 18, \"h2_size\": 16, \"h3_size\": 14, \"body_size\": 12,\n        \"h1_font\": \"黑体\", \"h2_font\": \"黑体\", \"body_font\": \"宋体\",\n        \"line_spacing\": 1.5, \"space_after\": 6\n    },\n    \"business\": {\n        \"h1_size\": 16, \"h2_size\": 14, \"h3_size\": 12, \"body_size\": 11,\n        \"h1_font\": \"微软雅黑\", \"h2_font\": \"微软雅黑\", \"body_font\": \"微软雅黑\",\n        \"line_spacing\": 1.5, \"space_after\": 6\n    },\n    \"minimal\": {\n        \"h1_size\": 14, \"h2_size\": 12, \"h3_size\": 11, \"body_size\": 10.5,\n        \"h1_font\": \"Arial\", \"h2_font\": \"Arial\", \"body_font\": \"Arial\",\n        \"line_spacing\": 1.15, \"space_after\": 3\n    },\n    \"default\": {\n        \"h1_size\": 16, \"h2_size\": 14, \"h3_size\": 12, \"body_size\": 12,\n        \"h1_font\": \"宋体\", \"h2_font\": \"宋体\", \"body_font\": \"宋体\",\n        \"line_spacing\": 1.5, \"space_after\": 6\n    }\n}\n\nconfig = TEMPLATES.get(template, TEMPLATES[\"academic\"])\nchanges_log = []\n\n# 操作1: 格式化\nif \"format\" in operations or \"all\" in operations:\n    print(\"正在格式化文档...\")\n    count = 0\n    for para in doc.paragraphs:\n        para.paragraph_format.line_spacing = config[\"line_spacing\"]\n        para.paragraph_format.space_after = Pt(config[\"space_after\"])\n        para.paragraph_format.space_before = Pt(0)\n\n        if not para.style.name.startswith('Heading'):\n            for run in para.runs:\n                run.font.name = config[\"body_font\"]\n                run._element.rPr.rFonts.set(qn('w:eastAsia'), config[\"body_font\"])\n                run.font.size = Pt(config[\"body_size\"])\n        count += 1\n\n    changes_log.append(f\"格式化 {count} 个段落\")\n\n# 操作2: 应用样式\nif \"styles\" in operations or \"all\" in operations:\n    print(\"正在应用样式模板...\")\n    title_count = 0\n\n    for para in doc.paragraphs:\n        text = para.text.strip()\n        if not text:\n            continue\n\n        if re.match(r'^[第][一二三四五六七八九十\\d]+[章\\s]|^[\\d]+\\s*[、.．\\s]|^[（(][一二三四五六七八九十]+[)）]', text):\n            para.style = doc.styles['Heading 1']\n            for run in para.runs:\n                run.font.name = config[\"h1_font\"]\n                run._element.rPr.rFonts.set(qn('w:eastAsia'), config[\"h1_font\"])\n                run.font.size = Pt(config[\"h1_size\"])\n                run.font.bold = True\n                run.font.color.rgb = RGBColor(0, 0, 0)\n            title_count += 1\n\n        elif re.match(r'^\\d+\\.\\d+[\\s.、]|^[（(][\\d一二三四五六七八九十]+[)）]', text):\n            para.style = doc.styles['Heading 2']\n            for run in para.runs:\n                run.font.name = config[\"h2_font\"]\n                run._element.rPr.rFonts.set(qn('w:eastAsia'), config[\"h2_font\"])\n                run.font.size = Pt(config[\"h2_size\"])\n                run.font.bold = True\n            title_count += 1\n\n        elif re.match(r'^\\d+\\.\\d+\\.\\d+|^[（(]\\d+[)）]', text):\n            para.style = doc.styles['Heading 3']\n            for run in para.runs:\n                run.font.size = Pt(config[\"h3_size\"])\n                run.font.bold = True\n            title_count += 1\n\n    changes_log.append(f\"识别并格式化 {title_count} 个标题\")\n\n# 操作3: 生成目录\nif \"toc\" in operations or \"all\" in operations:\n    print(\"正在生成目录...\")\n\n    toc_entries = []\n    for para in doc.paragraphs:\n        if para.style.name.startswith('Heading'):\n            level = int(para.style.name[-1]) if para.style.name[-1].isdigit() else 1\n            toc_entries.append((level, para.text.strip()))\n\n    if toc_entries:\n        first_para = doc.paragraphs[0]\n        toc_title = first_para.insert_paragraph_before(\"目录\")\n        toc_title.alignment = WD_ALIGN_PARAGRAPH.CENTER\n        for run in toc_title.runs:\n            run.font.size = Pt(config[\"h1_size\"])\n            run.font.bold = True\n            run.font.name = config[\"h1_font\"]\n            run._element.rPr.rFonts.set(qn('w:eastAsia'), config[\"h1_font\"])\n\n        for level, text in toc_entries[:50]:\n            indent = \"    \" * (level - 1)\n            entry_para = first_para.insert_paragraph_before(f\"{indent}{text}\")\n            entry_para.paragraph_format.left_indent = Inches(0.3 * (level - 1))\n            for run in entry_para.runs:\n                run.font.size = Pt(config[\"body_size\"])\n\n        separator = first_para.insert_paragraph_before(\"—\" * 30)\n        separator.alignment = WD_ALIGN_PARAGRAPH.CENTER\n\n        changes_log.append(f\"生成目录，包含 {len(toc_entries)} 个条目\")\n    else:\n        changes_log.append(\"未检测到标题结构，跳过目录生成\")\n\n# 操作4: 清理\nif \"cleanup\" in operations or \"all\" in operations:\n    print(\"正在清理冗余内容...\")\n    removed = 0\n    prev_empty = False\n\n    for i in range(len(doc.paragraphs) - 1, -1, -1):\n        para = doc.paragraphs[i]\n        is_empty = not para.text.strip()\n\n        if is_empty and prev_empty:\n            p_element = para._element\n            p_element.getparent().remove(p_element)\n            removed += 1\n        prev_empty = is_empty\n\n    changes_log.append(f\"删除 {removed} 个冗余空段落\")\n\n# 保存文档\ntry:\n    doc.save(output_path)\n    print(f\"文档已保存: {output_path}\")\nexcept Exception as e:\n    print(f\"保存失败: {e}\")\n    sys.exit(1)\n\nprint(\"\n\" + \"=\"*50)\nprint(\"整理报告\")\nprint(\"=\"*50)\nfor log in changes_log:\n    print(log)\nprint(\"=\"*50)\nprint(\"文档整理完成！\")\n```\n\n### 步骤4: 验证输出\n```bash\n#!\u002Fbin\u002Fbash\nif [ -f \"${output_path}\" ]; then\n    file_size=$(ls -lh \"${output_path}\" | awk '{print $5}')\n    echo \"输出文件: ${output_path} (${file_size})\"\n    echo \"提示：原文件已备份，如有问题可恢复\"\nelse\n    echo \"错误：输出文件未生成\"\n    exit 1\nfi\n```\n\n## 使用示例\n\n### 示例1: 全面整理（推荐）\n```\n整理文档 C:\u002FUsers\u002FDesktop\u002F毕业论文.docx，使用学术模板，执行所有操作，输出到 C:\u002FUsers\u002FDesktop\u002F毕业论文_整理版.docx\n```\n\n### 示例2: 仅格式化和生成目录\n```\n格式化 C:\u002FDocs\u002F报告.docx，操作包括format,toc，模板用business\n```\n\n## 错误处理\n\n| 错误场景 | 处理方式 |\n|---------|---------|\n| 文件不存在 | 提示检查路径，退出码1 |\n| 文件格式不支持 | 提示仅支持docx\u002Fdoc，退出码1 |\n| 文件被Word占用 | 提示关闭Word后重试，退出码1 |\n| 权限不足 | 提示以管理员身份运行，退出码1 |\n\n## 安全说明\n\n- **本地执行**: 所有操作在本地完成，不上传任何文件到云端\n- **自动备份**: 每次执行自动创建带时间戳的备份\n- **原子操作**: 失败时不会损坏原文件（先处理再保存）\n- **权限最小化**: 仅需文件读写权限，无需网络或系统管理权限\n","# Word 文档整理助手\n\n智能识别文档结构，自动应用标准化排版，生成专业目录，让文档整理一键完成。\n\n## 触发条件\n当用户提出以下请求时激活此技能：\n- \"整理word文档\"\n- \"格式化文档\" \n- \"生成文档目录\"\n- \"统一文档样式\"\n- \"排版优化\"\n- \"修复word格式\"\n- \"规范文档格式\"\n- \"word排版\"\n\n## 参数定义\n\n### document_path（必需）\n- **类型**: string\n- **描述**: Word文档的完整路径（支持.docx格式）\n- **示例**: \"C:\u002FUsers\u002FDesktop\u002F报告.docx\", \"\u002Fhome\u002Fuser\u002Fdocs\u002F论文.docx\"\n\n### operations（可选，默认: all）\n- **类型**: array[string]\n- **描述**: 要执行的操作列表\n- **可选值**: \n  - `format`: 格式化段落（行距、间距、字体统一）\n  - `toc`: 生成文档目录\n  - `styles`: 应用标准样式模板\n  - `cleanup`: 清理空段落和冗余格式\n  - `all`: 执行所有操作（默认）\n\n### style_template（可选，默认: academic）\n- **类型**: string\n- **描述**: 样式模板类型\n- **可选值**:\n  - `academic`: 学术模板（宋体、层级分明，适合论文\u002F报告）\n  - `business`: 商务模板（微软雅黑、现代简洁，适合商业文档）\n  - `minimal`: 极简模板（Arial、紧凑排版，适合笔记\u002F草稿）\n  - `default`: 默认模板（通用设置）\n\n### output_path（可选）\n- **类型**: string\n- **描述**: 输出文件路径（默认覆盖原文件，建议指定新路径保留原文件）\n- **示例**: \"C:\u002FUsers\u002FDesktop\u002F报告_整理版.docx\"\n\n## 执行流程\n\n### 步骤1: 环境检查与备份\n```bash\n#!\u002Fbin\u002Fbash\n# 检查文件存在性\nif [ ! -f \"${document_path}\" ]; then\n    echo \"错误：文件不存在 ${document_path}\"\n    echo \"请检查路径是否正确，或文件是否被移动\u002F删除\"\n    exit 1\nfi\n\n# 检查文件扩展名\nif [[ ! \"${document_path}\" =~ \\.(docx|doc)$ ]]; then\n    echo \"错误：仅支持 .docx 或 .doc 格式\"\n    exit 1\nfi\n\n# 创建时间戳备份\nbackup_path=\"${document_path}.backup.$(date +%Y%m%d_%H%M%S)\"\ncp \"${document_path}\" \"${backup_path}\"\necho \"已创建备份: ${backup_path}\"\n```\n\n### 步骤2: 安装Python依赖\n```bash\n#!\u002Fbin\u002Fbash\n# 检查python-docx是否已安装\npython3 -c \"import docx\" 2>\u002Fdev\u002Fnull || pip3 install python-docx -q\necho \"依赖检查完成\"\n```\n\n### 步骤3: 执行文档整理（核心Python脚本）\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n# -*- coding: utf-8 -*-\n\nfrom docx import Document\nfrom docx.shared import Pt, Inches, RGBColor\nfrom docx.enum.text import WD_ALIGN_PARAGRAPH\nfrom docx.oxml.ns import qn\nimport sys\nimport re\nimport os\n\n# 获取参数\ndoc_path = \"${document_path}\"\noutput_path = \"${output_path}\" if \"${output_path}\" else doc_path\ntemplate = \"${style_template}\"\noperations = [op.strip() for op in \"${operations}\".split(\",\")] if \"${operations}\" else [\"all\"]\n\nprint(f\"处理文件: {doc_path}\")\nprint(f\"执行操作: {operations}\")\nprint(f\"使用模板: {template}\")\n\n# 加载文档\ntry:\n    doc = Document(doc_path)\nexcept Exception as e:\n    print(f\"无法打开文档: {e}\")\n    print(\"提示：请确保文档未被Microsoft Word占用（关闭Word后重试）\")\n    sys.exit(1)\n\n# 模板配置\nTEMPLATES = {\n    \"academic\": {\n        \"h1_size\": 18, \"h2_size\": 16, \"h3_size\": 14, \"body_size\": 12,\n        \"h1_font\": \"黑体\", \"h2_font\": \"黑体\", \"body_font\": \"宋体\",\n        \"line_spacing\": 1.5, \"space_after\": 6\n    },\n    \"business\": {\n        \"h1_size\": 16, \"h2_size\": 14, \"h3_size\": 12, \"body_size\": 11,\n        \"h1_font\": \"微软雅黑\", \"h2_font\": \"微软雅黑\", \"body_font\": \"微软雅黑\",\n        \"line_spacing\": 1.5, \"space_after\": 6\n    },\n    \"minimal\": {\n        \"h1_size\": 14, \"h2_size\": 12, \"h3_size\": 11, \"body_size\": 10.5,\n        \"h1_font\": \"Arial\", \"h2_font\": \"Arial\", \"body_font\": \"Arial\",\n        \"line_spacing\": 1.15, \"space_after\": 3\n    },\n    \"default\": {\n        \"h1_size\": 16, \"h2_size\": 14, \"h3_size\": 12, \"body_size\": 12,\n        \"h1_font\": \"宋体\", \"h2_font\": \"宋体\", \"body_font\": \"宋体\",\n        \"line_spacing\": 1.5, \"space_after\": 6\n    }\n}\n\nconfig = TEMPLATES.get(template, TEMPLATES[\"academic\"])\nchanges_log = []\n\n# 操作1: 格式化\nif \"format\" in operations or \"all\" in operations:\n    print(\"正在格式化文档...\")\n    count = 0\n    for para in doc.paragraphs:\n        para.paragraph_format.line_spacing = config[\"line_spacing\"]\n        para.paragraph_format.space_after = Pt(config[\"space_after\"])\n        para.paragraph_format.space_before = Pt(0)\n\n        if not para.style.name.startswith('Heading'):\n            for run in para.runs:\n                run.font.name = config[\"body_font\"]\n                run._element.rPr.rFonts.set(qn('w:eastAsia'), config[\"body_font\"])\n                run.font.size = Pt(config[\"body_size\"])\n        count += 1\n\n    changes_log.append(f\"格式化 {count} 个段落\")\n\n# 操作2: 应用样式\nif \"styles\" in operations or \"all\" in operations:\n    print(\"正在应用样式模板...\")\n    title_count = 0\n\n    for para in doc.paragraphs:\n        text = para.text.strip()\n        if not text:\n            continue\n\n        if re.match(r'^[第][一二三四五六七八九十\\d]+[章\\s]|^[\\d]+\\s*[、.．\\s]|^[（(][一二三四五六七八九十]+[)）]', text):\n            para.style = doc.styles['Heading 1']\n            for run in para.runs:\n                run.font.name = config[\"h1_font\"]\n                run._element.rPr.rFonts.set(qn('w:eastAsia'), config[\"h1_font\"])\n                run.font.size = Pt(config[\"h1_size\"])\n                run.font.bold = True\n                run.font.color.rgb = RGBColor(0, 0, 0)\n            title_count += 1\n\n        elif re.match(r'^\\d+\\.\\d+[\\s.、]|^[（(][\\d一二三四五六七八九十]+[)）]', text):\n            para.style = doc.styles['Heading 2']\n            for run in para.runs:\n                run.font.name = config[\"h2_font\"]\n                run._element.rPr.rFonts.set(qn('w:eastAsia'), config[\"h2_font\"])\n                run.font.size = Pt(config[\"h2_size\"])\n                run.font.bold = True\n            title_count += 1\n\n        elif re.match(r'^\\d+\\.\\d+\\.\\d+|^[（(]\\d+[)）]', text):\n            para.style = doc.styles['Heading 3']\n            for run in para.runs:\n                run.font.size = Pt(config[\"h3_size\"])\n                run.font.bold = True\n            title_count += 1\n\n    changes_log.append(f\"识别并格式化 {title_count} 个标题\")\n\n# 操作3: 生成目录\nif \"toc\" in operations or \"all\" in operations:\n    print(\"正在生成目录...\")\n\n    toc_entries = []\n    for para in doc.paragraphs:\n        if para.style.name.startswith('Heading'):\n            level = int(para.style.name[-1]) if para.style.name[-1].isdigit() else 1\n            toc_entries.append((level, para.text.strip()))\n\n    if toc_entries:\n        first_para = doc.paragraphs[0]\n        toc_title = first_para.insert_paragraph_before(\"目录\")\n        toc_title.alignment = WD_ALIGN_PARAGRAPH.CENTER\n        for run in toc_title.runs:\n            run.font.size = Pt(config[\"h1_size\"])\n            run.font.bold = True\n            run.font.name = config[\"h1_font\"]\n            run._element.rPr.rFonts.set(qn('w:eastAsia'), config[\"h1_font\"])\n\n        for level, text in toc_entries[:50]:\n            indent = \"    \" * (level - 1)\n            entry_para = first_para.insert_paragraph_before(f\"{indent}{text}\")\n            entry_para.paragraph_format.left_indent = Inches(0.3 * (level - 1))\n            for run in entry_para.runs:\n                run.font.size = Pt(config[\"body_size\"])\n\n        separator = first_para.insert_paragraph_before(\"—\" * 30)\n        separator.alignment = WD_ALIGN_PARAGRAPH.CENTER\n\n        changes_log.append(f\"生成目录，包含 {len(toc_entries)} 个条目\")\n    else:\n        changes_log.append(\"未检测到标题结构，跳过目录生成\")\n\n# 操作4: 清理\nif \"cleanup\" in operations or \"all\" in operations:\n    print(\"正在清理冗余内容...\")\n    removed = 0\n    prev_empty = False\n\n    for i in range(len(doc.paragraphs) - 1, -1, -1):\n        para = doc.paragraphs[i]\n        is_empty = not para.text.strip()\n\n        if is_empty and prev_empty:\n            p_element = para._element\n            p_element.getparent().remove(p_element)\n            removed += 1\n        prev_empty = is_empty\n\n    changes_log.append(f\"删除 {removed} 个冗余空段落\")\n\n# 保存文档\ntry:\n    doc.save(output_path)\n    print(f\"文档已保存: {output_path}\")\nexcept Exception as e:\n    print(f\"保存失败: {e}\")\n    sys.exit(1)\n\nprint(\"\n\" + \"=\"*50)\nprint(\"整理报告\")\nprint(\"=\"*50)\nfor log in changes_log:\n    print(log)\nprint(\"=\"*50)\nprint(\"文档整理完成！\")\n```\n\n### 步骤4: 验证输出\n```bash\n#!\u002Fbin\u002Fbash\nif [ -f \"${output_path}\" ]; then\n    file_size=$(ls -lh \"${output_path}\" | awk '{print $5}')\n    echo \"输出文件: ${output_path} (${file_size})\"\n    echo \"提示：原文件已备份，如有问题可恢复\"\nelse\n    echo \"错误：输出文件未生成\"\n    exit 1\nfi\n```\n\n## 使用示例\n\n### 示例1: 全面整理（推荐）\n```\n整理文档 C:\u002FUsers\u002FDesktop\u002F毕业论文.docx，使用学术模板，执行所有操作，输出到 C:\u002FUsers\u002FDesktop\u002F毕业论文_整理版.docx\n```\n\n### 示例2: 仅格式化和生成目录\n```\n格式化 C:\u002FDocs\u002F报告.docx，操作包括format,toc，模板用business\n```\n\n## 错误处理\n\n| 错误场景 | 处理方式 |\n|---------|---------|\n| 文件不存在 | 提示检查路径，退出码1 |\n| 文件格式不支持 | 提示仅支持docx\u002Fdoc，退出码1 |\n| 文件被Word占用 | 提示关闭Word后重试，退出码1 |\n| 权限不足 | 提示以管理员身份运行，退出码1 |\n\n## 安全说明\n\n- **本地执行**: 所有操作在本地完成，不上传任何文件到云端\n- **自动备份**: 每次执行自动创建带时间戳的备份\n- **原子操作**: 失败时不会损坏原文件（先处理再保存）\n- **权限最小化**: 仅需文件读写权限，无需网络或系统管理权限\n",{"name":5,"tags":24,"tools":30,"author":33,"version":34,"description":7},[25,26,27,28,29],"productivity","microsoft-office","document","automation","word",[31,32],"bash","python","Jasper.W","1.0.0","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fw\u002Fword-document-organizer",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill word-document-organizer",{"tool":50,"command":51},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill word-document-organizer",{"tool":53,"command":54},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill word-document-organizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fw\u002Fword-document-organizer\u002FSKILL.md",true,[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]