agentsclimarketplace

Excel edit

Skill Fly-onlyone/Qingyi/skills/excel-edit

This skill should be used when the user wants to WRITE, FORMAT, STYLE, or DESIGN Excel files. FILE-BASED TRIGGERS (highest priority): - Any mention of ".xlsx" or ".xls" files WITH edit/create intent - "the excel file", "this excel" + modification context ACTION TRIGGERS: - EDIT: "edit excel", "modify spreadsheet", "update cells", "change values" - CREATE: "create excel", "new spreadsheet", "make xlsx", "build a table" - FORMAT: "format excel", "style cells", "add colors", "professional formatting", "beautify spreadsheet", "eye-catching", "modern look" - STRUCTURE: "add worksheet", "merge cells", "add chart", "pivot table", "add rows", "delete columns", "insert data", "freeze panes" - ORGANIZE: "reorganize excel", "restructure spreadsheet", "clean up excel", "sort spreadsheet", "rearrange columns" NATURAL LANGUAGE PATTERNS: - "make the excel" + improvement verb - "add" / "change" / "update" + excel/spreadsheet context - File path ending in .xlsx or .xls + modification requestFrom its SKILL.md

Install
npx -y skills add Fly-onlyone/Qingyi --skill excel-edit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.0 KB, as published. Nobody here has run it

Excel Edit & Design with Python openpyxl

Write, format, style, and design professional Excel files using Python openpyxl.

Environment

Before running any script, determine the Python runner (checked in order, first match wins):

  1. Global: Read ~/.claude/qingyi.local.md, parse YAML frontmatter for excel_runner
  2. Project-level: Read .claude/qingyi.local.md from the project root, parse YAML frontmatter for excel_runner ( overrides global)
  3. Default: python

Run command: <excel_runner> <script_path>

Workflow

  1. Create Python script at scripts/excel/ from project root
  2. Execute script: <excel_runner> scripts/excel/<script_name>.py
  3. Keep scripts for reference and reusability

Common Imports

from openpyxl import Workbook, load_workbook
from openpyxl.styles import Font, PatternFill, Border, Side, Alignment
from openpyxl.utils import get_column_letter
from pathlib import Path

Import additional modules as needed: NamedStyle, DataValidation, ColorScaleRule, FormulaRule, DifferentialStyle, Rule.

Writing Operations

ws['A1'] = 'Header'  # Single cell
ws.append(['Col1', 'Col2', 'Col3'])  # Append row
wb.save(path)  # Save

Column & Row Sizing

ws.column_dimensions['A'].width = 15
ws.row_dimensions[1].height = 25

# Multiple columns
for i, width in enumerate([5, 12, 35, 10], 1):
    ws.column_dimensions[get_column_letter(i)].width = width

Design Principles

  1. White backgrounds -- Always use white (#FFFFFF) for data cells
  2. 3-4 colors max -- Primary + 2-3 accent colors
  3. High contrast -- Dark text on light backgrounds
  4. Consistent spacing -- Uniform column widths where logical
  5. Visual hierarchy -- Headers clearly distinguished from data
  6. Minimal borders -- Use sparingly, prefer whitespace

MS Office 2023 Color Palette

# Primary (headers, accents)
BLUE_PRIMARY = "2B579A"  # Headers, titles
GREEN_PRIMARY = "217346"  # Positive/success
ORANGE_PRIMARY = "D24726"  # Warnings/highlights

# Neutral (backgrounds, borders)
WHITE = "FFFFFF"  # Cell backgrounds
LIGHT_GRAY = "F5F5F5"  # Alternate row shading
MEDIUM_GRAY = "E0E0E0"  # Borders, dividers
DARK_GRAY = "333333"  # Primary text

# Status (semantic)
SUCCESS_BG, SUCCESS_TEXT = "E8F5E9", "1B5E20"
WARNING_BG, WARNING_TEXT = "FFF3E0", "E65100"
ERROR_BG, ERROR_TEXT = "FFEBEE", "B71C1C"
INFO_BG, INFO_TEXT = "E3F2FD", "0D47A1"

Font Sizes

FONT_TITLE = 16  # Main title
FONT_HEADER = 11  # Column headers (bold)
FONT_DATA = 10  # Regular data cells
FONT_SMALL = 9  # Notes, footnotes

Reference Files

For detailed API patterns, see:

  • styling.md -- Headers, borders, alternating rows, named styles, status colors
  • formatting.md -- Conditional formatting, color scales, data validation
  • operations.md -- Merge, freeze, worksheets, hyperlinks, tabs, dashboard patterns

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.