Confirm successful installation by checking the skill directory location:
.cursor/skills/document-docx
Restart Cursor to activate document-docx. Access via /document-docx in your agent's command palette.
โ
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
from docx import Document
doc = Document('input.docx')# Extract all textfull_text =[]for para in doc.paragraphs: full_text.append(para.text)# Extract tablesfor table in doc.tables:for row in table.rows: row_data =[cell.text for cell in row.cells]print(row_data)
Styling Reference
Element
Python Method
Node.js Class
Heading 1
add_heading(text, 1)
HeadingLevel.HEADING_1
Bold
run.bold = True
TextRun({ bold: true })
Italic
run.italic = True
TextRun({ italics: true })
Font size
run.font.size = Pt(12)
TextRun({ size: 24 }) (half-points)
Alignment
WD_ALIGN_PARAGRAPH.CENTER
AlignmentType.CENTER
Page break
doc.add_page_break()
new PageBreak()
Do / Avoid (Dec 2025)
Do
Use consistent heading levels and a table of contents for long docs.
Capture decisions and action items with owners and due dates.
Store docs in a versioned, searchable system.
Avoid
Manual formatting instead of styles (breaks consistency).
Docs with no owner or review cadence (stale quickly).
Copy/pasting without updating definitions and links.
Output Quality Checklist
Structure: consistent heading hierarchy, styles, and (when needed) an auto-generated table of contents.
Decisions: decisions/actions captured with owner + due date (not buried in prose).
Versioning: doc ID + version + change summary; review cadence defined.
Accessibility hygiene: headings/reading order are correct; table headers are marked; alt text for non-decorative images.
Reuse: use assets/doc-template-pack.md for decision logs and recurring doc types.
Optional: AI / Automation
Use only when explicitly requested and policy-compliant.
Summarize meeting notes into decisions/actions; humans verify accuracy.
Draft first-pass docs from outlines; do not invent facts or quotes.