docs

GitHub

提供DOCX文档的阅读、创建、编辑及审查指南。阅读时通过LibreOffice转PDF再截图以保留格式细节;创建时使用python-docx,并循环渲染检查确保排版完美。强调字体、图表清晰度及引用规范性,避免格式缺陷。

macos/OpenBridge/Resources/SystemSkills.bundle/docs/SKILL.md AFK-surf/OpenBridge

Trigger Scenarios

需要读取或分析DOCX文档内容 需要创建新的DOCX文档 需要编辑现有DOCX文档并添加批注 需要审查DOCX文档的格式和质量

Install

npx skills add AFK-surf/OpenBridge --skill docs -g -y
More Options

Non-standard path

npx skills add https://github.com/AFK-surf/OpenBridge/tree/main/macos/OpenBridge/Resources/SystemSkills.bundle/docs -g -y

Use without installing

npx skills use AFK-surf/OpenBridge@docs

指定 Agent (Claude Code)

npx skills add AFK-surf/OpenBridge --skill docs -a claude-code -g -y

安装 repo 全部 skill

npx skills add AFK-surf/OpenBridge --all -g -y

预览 repo 内 skill

npx skills add AFK-surf/OpenBridge --list

SKILL.md

Frontmatter
{
    "name": "docs",
    "metadata": {
        "icon": "doc.text.fill",
        "color": "blue",
        "displayName": "Word Docxs Skill",
        "placeholder": "Upload a document or ask a question"
    },
    "description": "Read, create, and review DOCXs guidance"
}

DOCX reading, creation, editing, and review guidance

Workflow Decision

Task Tool Reference
Reading/analyzing content soffice + pdftoppm See "Reading DOCXs" below
Creating new documents python-docx See "Primary tooling" below
Editing with tracked changes OOXML XML manipulation ooxml-editing.md
Adding comments OOXML XML manipulation ooxml-editing.md

Reading DOCXs

  • Use soffice -env:UserInstallation=file:///tmp/lo_profile_$$ --headless --convert-to pdf --outdir $OUTDIR $INPUT_DOCX to convert DOCXs to PDFs.
    • The -env:UserInstallation=file:///tmp/lo_profile_$$ flag is important. Otherwise, it will time out.
  • Then Convert the PDF to page images so you can visually inspect the result:
    • pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME
  • Then open the PNGs and read the images.
  • Only do python printing as a last resort because you will miss important details with text extraction (e.g. figures, tables, diagrams).

Primary tooling for creating DOCXs

  • Create and edit DOCX files with python-docx. Use it to control structure, styles, tables, and lists. Install it with pip install python-docx if it's not already installed.
  • After every meaningful batch of edits—new sections, layout tweaks, styling changes—render the DOCX to PDF:
    • soffice -env:UserInstallation=file:///tmp/lo_profile_$$ --headless --convert-to pdf --outdir $OUTDIR $INPUT_DOCX
  • Convert the PDF to page images so you can visually inspect the result:
    • pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME
  • Inspect every PNG before moving on. If you see any defect, fix the DOCX and repeat the render → inspect loop until all pages look perfect.

Quality expectations

  • Aim for a client-ready document: consistent typography, spacing, margins, and layout hierarchy. Heading levels should be obvious, lists aligned, and paragraphs easy to scan.
  • Never ship obvious formatting defects such as clipped or overlapping text, default-template styling, broken tables, unreadable characters, or inconsistent bullet styling.
  • Charts, tables, and visuals must be legible in the rendered PNGs—no pixelation, misalignment, missing labels, or mismatched colors.
  • Never use the U+2011 non-breaking hyphen or other unicode dashes as they will not be rendered correctly. Use ASCII hyphens instead.
  • Citations, references, and footnotes must be human-readable and professional. No tool-internal tokens (e.g., [145036110387964†L158-L160]), malformed URLs, or placeholder text should be present in the document.
  • You must convert all citations into a human-readable format in the document with standard scholarly citation format. No 【【turn1541736113682297662view0†L11-L19】 notations are allowed in the document as the reader cannot interpret them (such citations will be severely penalized).
  • Content should be concise, relevant, and free of boilerplate AI phrasing. Ensure each section adds value and flows logically.

Final checks

  • Re-run the DOCX → PDF → PNG loop after your final changes and inspect every page at 100% zoom. Look for subtle issues like inconsistent spacing, widows/orphans, or misaligned bullet levels.
  • Correct every formatting defect you see in the PNGs, including but not limited to: overlapping text or shapes, clipped text or shapes that are cut off, black squares, broken tables, unreadable characters, etc.
  • Only deliver the DOCX once the latest PNG review confirms the document is visually flawless and professionally styled.
  • Keep intermediate files organized (or cleaned up) so reviewers can easily locate final outputs.

Advanced: OOXML Editing and Tracked Changes

For editing existing DOCXs with tracked changes (legal/business document review), comments, or raw XML manipulation, read references/ooxml-editing.md.

Key capabilities:

  • Tracked changes (Redlining): Mark insertions with <w:ins> and deletions with <w:del>
  • Comments: Add review comments with <w:commentRangeStart/End>
  • Raw XML access: Direct manipulation of word/document.xml for complex edits

Use this approach when:

  • Editing someone else's document (use redlining)
  • Working with legal, academic, business, or government documents
  • Adding review comments to existing content

Version History

  • a9ca905 Current 2026-07-24 11:34

Same Skill Collection

.agents/skills/app-store-changelog/SKILL.md
.agents/skills/bridge-agent-log-analyzer/SKILL.md
.agents/skills/gh-issue-fix-flow/SKILL.md
.agents/skills/github/SKILL.md
.agents/skills/react-component-performance/SKILL.md
.agents/skills/swift-concurrency-expert/SKILL.md
.agents/skills/swift-testing-expert/SKILL.md
.agents/skills/swiftui-expert-skill/SKILL.md
.agents/skills/swiftui-performance-audit/SKILL.md
.agents/skills/swiftui-ui-patterns/SKILL.md
.agents/skills/swiftui-view-refactor/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/format-converter/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/github/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/linear/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/skill-manager/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/ui-designer/SKILL.md
.agents/skills/swift-concurrency/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/pdfs/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/spreadsheets/SKILL.md

Metadata

Files
0
Version
a9ca905
Hash
132e507f
Indexed
2026-07-24 11:34

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 12:42
浙ICP备14020137号-1 $Carte des visiteurs$