with one click
document-editor
Create, read, and modify Word (.docx) and Excel (.xlsx/.xls) documents. Use when the user wants to work with office documents.
Menu
Create, read, and modify Word (.docx) and Excel (.xlsx/.xls) documents. Use when the user wants to work with office documents.
Search the web for information. Use when you need to find current information, research topics, or fetch web content.
Fetch web pages and convert HTML to clean Markdown. Use when you need to read article content, documentation, or any web page as structured text.
Create, read, and modify PowerPoint (.pptx) presentations. Use when the user wants to build or edit slide decks, add charts, images, tables, or formatted text to presentations.
Conversational task management and automation control. Use when the user wants to create, manage, monitor, or query scheduled tasks and background jobs via natural language.
Analyze code structure and quality. Use when reviewing code for bugs, anti-patterns, security issues, or best practices.
Process and analyze structured data. Use when working with CSV, JSON, or other structured data formats for transformation, filtering, or analysis.
| name | document_editor |
| description | Create, read, and modify Word (.docx) and Excel (.xlsx/.xls) documents. Use when the user wants to work with office documents. |
| category | document-processing |
| tags | word, excel, docx, xlsx, office, document, spreadsheet |
| required_tools | execute_python, read_file, write_file |
This skill enables you to work with Microsoft Word (.docx) and Excel (.xlsx) documents using Python libraries python-docx and openpyxl.
Use this skill when:
execute_python tool with appropriate libraryUse openpyxl library. Example patterns:
# Reading an Excel file
from openpyxl import load_workbook
wb = load_workbook('file.xlsx')
sheet = wb.active # or wb['SheetName']
# Access cells
value = sheet['A1'].value
row_data = [cell.value for cell in sheet[1]] # First row
# Modify cells
sheet['A1'] = 'New Value'
sheet.append(['Col1', 'Col2', 'Col3']) # New row
# Save
wb.save('output.xlsx')
Common operations:
sheet.iter_rows() or sheet.iter_cols()sheet.max_row, sheet.max_columnsheet.cell(row=1, column=1, value='New')sheet['A1'] = '=SUM(B1:B10)'openpyxl.styles (Font, PatternFill, Alignment, Border)Use docx library (python-docx). Example patterns:
# Reading a Word document
from docx import Document
doc = Document('file.docx')
# Access paragraphs
for para in doc.paragraphs:
print(para.text)
# Access tables
for table in doc.tables:
for row in table.rows:
for cell in row.cells:
print(cell.text)
# Modify document
doc.add_paragraph('New paragraph')
doc.add_table(rows=3, cols=3)
# Save
doc.save('output.docx')
Common operations:
doc.add_paragraph('Text')doc.add_heading('Title', level=1)table = doc.add_table(rows=2, cols=3) then fill cellspara.text or cell.textpara.style, run.bold, run.font_sizeUser: "Read this Excel file and tell me what's in it"
Your approach:
execute_python with script to load and inspect the fileUser: "Update the total column in this spreadsheet"
Your approach:
User: "Create a Word document with a summary table"
Your approach:
User: "Convert this Excel data to a Word table"
Your approach: