Skills for Real Engineers. Straight from my .agents directory.
word-analysis
Agent skill fromOpenSenseNova/SenseNova-Skills
Word (.docx/.doc) 文档全量解析。覆盖:正文/段落文本提取、表格数据提取、高亮/颜色格式读取、多文件汇总对比、嵌入图片转 caption。
How to install word-analysis
npx skills add OpenSenseNova/SenseNova-Skills# or add only this skill to Claude Code: copy the folder
skills/sn-da-non-spreadsheet-analysis/capability/word-analysis/
# into
~/.claude/skills/word-analysis/ (all projects)
.claude/skills/word-analysis/ (one project)
1# Word Analysis — .docx / .doc23## Environment45```python6from docx import Document7import os89# python-docx is available; for .doc (old format) convert via libreoffice first10def load_doc(path):11 """Load .docx directly; convert .doc to .docx first if needed."""12 if path.lower().endswith('.doc'):13 import subprocess14 out_dir = os.path.dirname(path)15 subprocess.run(16 ['libreoffice', '--headless', '--convert-to', 'docx', '--outdir', out_dir, path],17 check=True, capture_output=True18 )19 path = path.rsplit('.', 1)[0] + '.docx'20 return Document(path)21```2223---2425## Core Method 1: Full Text Extraction2627```python28def extract_full_text(doc_path):29 """Extract all text: paragraphs + table cells, in document order."""30 doc = load_doc(doc_path)31 lines = []3233 # Iterate paragraphs and tables in body order34 from docx.oxml.ns import qn35 for block in doc.element.body:36 tag = block.tag.split('}')[-1]37 if tag == 'p':38 # Paragraph39 from docx.text.paragraph import Paragraph40 para = Paragraph(block, doc)41 text = para.text.strip()42 if text:43 lines.append(text)44 elif tag == 'tbl':45 # Table46 from docx.table import Table47 tbl = Table(block, doc)48 for row in tbl.rows:49 row_text = '\t'.join(cell.text.strip() for cell in row.cells)50 if row_text.strip():51…
Excerpt shown under the repository's MIT license.
More skills in SenseNova-Skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
