ワンクリックで
docx
Create, read, edit, and manipulate Word documents (.docx files).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create, read, edit, and manipulate Word documents (.docx files).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Complete guide to using and extending Hermes Agent — CLI usage, setup, configuration, spawning additional agents, gateway platforms, skills, voice, tools, profiles, and a concise contributor reference. Load this skill when helping users configure Hermes, troubleshoot issues, spawn agent instances, or make code contributions.
Create generative and algorithmic art using code - SVG, p5.js, canvas, and procedural techniques.
Create visual art, posters, infographics, and designs as PNG or PDF using HTML/CSS canvas rendering.
Thorough code review with security, performance, correctness, and maintainability checks.
Full workflow - commit changes, push to remote, and create a pull request with description.
Create clean git commits with descriptive messages based on staged or working changes.
| name | docx |
| description | Create, read, edit, and manipulate Word documents (.docx files). |
| tools | bash, read_file, write_file, terminal |
You are an expert at creating and editing Microsoft Word documents using Python. You produce professional, well-formatted documents.
pip install python-docx 2>/dev/null
from docx import Document
from docx.shared import Inches, Pt, RGBColor
from docx.enum.text import WD_ALIGN_PARAGRAPH
doc = Document()
# Title
title = doc.add_heading('Document Title', level=0)
# Subtitle or intro paragraph
p = doc.add_paragraph()
run = p.add_run('Subtitle or introductory text')
run.font.size = Pt(14)
run.font.color.rgb = RGBColor(100, 100, 100)
# Section heading
doc.add_heading('Section 1', level=1)
# Body text
doc.add_paragraph('This is a body paragraph with normal formatting.')
# Bold and italic
p = doc.add_paragraph()
p.add_run('Bold text').bold = True
p.add_run(' and ')
p.add_run('italic text').italic = True
# Bullet list
doc.add_paragraph('First item', style='List Bullet')
doc.add_paragraph('Second item', style='List Bullet')
doc.add_paragraph('Third item', style='List Bullet')
# Numbered list
doc.add_paragraph('Step one', style='List Number')
doc.add_paragraph('Step two', style='List Number')
# Table
table = doc.add_table(rows=3, cols=3, style='Table Grid')
headers = table.rows[0].cells
headers[0].text = 'Column 1'
headers[1].text = 'Column 2'
headers[2].text = 'Column 3'
for i in range(1, 3):
for j in range(3):
table.rows[i].cells[j].text = f'Row {i}, Col {j+1}'
# Page break
doc.add_page_break()
# Second page content
doc.add_heading('Section 2', level=1)
doc.add_paragraph('Content on the second page.')
doc.save('output.docx')
from docx import Document
doc = Document('input.docx')
for para in doc.paragraphs:
print(f"[{para.style.name}] {para.text}")
# Read tables
for table in doc.tables:
for row in table.rows:
print([cell.text for cell in row.cells])
from docx import Document
doc = Document('input.docx')
# Find and replace text
for para in doc.paragraphs:
if 'OLD_TEXT' in para.text:
for run in para.runs:
run.text = run.text.replace('OLD_TEXT', 'NEW_TEXT')
# Add content at the end
doc.add_heading('New Section', level=1)
doc.add_paragraph('Additional content appended to the document.')
doc.save('output.docx')
from docx import Document
from docx.shared import Inches
doc = Document()
doc.add_heading('Report with Images', level=0)
doc.add_picture('image.png', width=Inches(5.0))
doc.save('with_image.docx')
from docx import Document
from docx.shared import Pt
doc = Document()
section = doc.sections[0]
header = section.header
header_para = header.paragraphs[0]
header_para.text = "Company Name - Confidential"
footer = section.footer
footer_para = footer.paragraphs[0]
footer_para.text = "Page footer text"
doc.save('with_headers.docx')
from docx import Document
from docx.shared import Inches
doc = Document()
for section in doc.sections:
section.top_margin = Inches(1)
section.bottom_margin = Inches(1)
section.left_margin = Inches(1.25)
section.right_margin = Inches(1.25)
doc.save('custom_margins.docx')
Normal, Heading 1, List Bullet, Table Grid)