word-analysis
Word (.docx/.doc) 文档全量解析。覆盖:正文/段落文本提取、表格数据提取、高亮/颜色格式读取、多文件汇总对比、嵌入图片转 caption。
npx skills add OpenSenseNova/SenseNova-Skills --skill word-analysis --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Word Analysis — .docx / .doc ## Environment ```python from docx import Document import os # python-docx is available; for .doc (old format) convert via libreoffice first def load_doc(path): """Load .docx directly; convert .doc to .docx first if needed.""" if path.lower().endswith('.doc'): import subprocess out_dir = os.path.dirname(path) subprocess.run( ['libreoffice', '--headless', '--convert-to', 'docx', '--outdir', out_dir, path], check=True, capture_output=True ) path = path.rsplit('.', 1)[0] + '.docx' return Document(path) ``` --- ## Core Method 1: Full Text Extraction ```python def extract_full_text(doc_path): """Extract all text: paragraphs + table cells, in document order.""" doc = load_doc(doc_path) lines = [] # Iterate paragraphs and tables in body order from docx.oxml.ns import qn for block in doc.element.body: tag = block.tag.split('}')[-1] if tag == 'p': # Paragraph from docx.text.paragraph import Paragraph para = Paragraph(block, doc) text = para.text.strip() if text: lines.append(text) elif tag == 'tbl': # Table from docx.table import Table tbl = Table(block, doc) for row in tbl.rows: row_text = '\t'.join(cell.text.strip() for cell in row.cells) if row_text.strip()
- Environment
- Core Method 1: Full Text Extraction
- Core Method 2: Table Extraction (Structured)
- Core Method 3: Format-Aware Extraction (Color / Highlight)
- Core Method 4: Multi-File Aggregation
- Core Method 5: Embedded Images → Caption
- Common Patterns
- Font/size check (字号检查)
- Spell/grammar check (错别字)
- Keyword search (全文定位)
- Pitfalls
What does the word-analysis skill do?
Word (.docx/.doc) 文档全量解析。覆盖:正文/段落文本提取、表格数据提取、高亮/颜色格式读取、多文件汇总对比、嵌入图片转 caption。
How do I install it?
Run `npx skills add OpenSenseNova/SenseNova-Skills --skill word-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From OpenSenseNova/SenseNova-Skills, a repository with 4,855 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
