Skip to content
cccskills
FreePublished on GitHub

artifact_spreadsheet

Create, edit, and clean spreadsheet files, including Excel workbooks and CSV data. Build formulas and formatting with openpyxl, a Python library, then recalculate and validate workbooks to check for formula errors and file problems.

OriginalShow the original description

Create, read, edit, fix, or clean spreadsheet files (.xlsx, .xlsm, .csv, .tsv). Use whenever a build task's artifact kind is spreadsheet, or the task names a spreadsheet file and wants something done to it or produced from it, including restructuring messy tabular data into a proper workbook. Covers openpyxl generation, formulas and recalculation, editing existing workbooks, and the validation gates. Not for tasks whose deliverable is a document, report, or web page that merely contains a table.

Works withExcel
See how to install

Good for

  • Create a workbook with formulas and formatting
  • Edit an existing spreadsheet
  • Restructure messy CSV or TSV data
  • Recalculate formulas and validate workbook files

Files included (3)

  • SKILL.md3.5 KB
  • references/formulas.md3.4 KB
  • references/visual.md3.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Spreadsheet artifacts

An xlsx is generated with the preinstalled openpyxl library from a generator script. Keep the generator under .src/: it is the editable source for future revisions, and the binary is always regenerated from it.

TaskPath
Create, or edit with formulas and formattingopenpyxl
Quick look at an existing sheetmuse.read (converted to markdown, paged); it carries no cell coordinates, so never plan edits from it
Read a workbook's model (formulas AND their values)two load_workbook passes; see /opt/hatch/skills/artifacts/spreadsheet/references/formulas.md
Bulk or messy tabular data in or outPython csv from the standard library; pip install --break-system-packages pandas when a task genuinely needs it
Design, structure, number formats, model conventions/opt/hatch/skills/artifacts/spreadsheet/references/visual.md
Formulas, recalculation, editing existing workbooks/opt/hatch/skills/artifacts/spreadsheet/references/formulas.md

Requirements on every delivered workbook:

  • Set a non-empty workbook.properties.title and a human-readable filename. Data enters the workbook from the build's gathered content only; a value you do not have is a blank cell or a question, never an invented number.
  • Write formulas, never precomputed results: sheet["B10"] = "=SUM(B2:B9)", not the Python-computed total. The sheet must recalculate when its inputs change.
  • Follow the user's spec literally: their exact tab names, exact column headers, and the formula they spelled out. A redesign that computes something else fails, however elegant.
  • Zero formula errors at delivery: run the recalculation gate below and fix what it names.
  • Document assumptions and hardcoded numbers where the reader will see them (a cell comment or an adjacent labeled cell), citing the real source when one exists and saying plainly when the number came from the user.
  • A workbook created for someone to fill in gets a short legend naming the cells to edit and one example row of realistic values; never add an example row to a file you were asked to edit.

Scripts

ScriptWhat it does
/opt/hatch/skills/artifacts/scripts/recalc_xlsx.pyRecalculates the workbook in place through headless LibreOffice and reports every formula-error cell as JSON; mandatory whenever the file contains formulas. errors_found exits 0: read the JSON, not the exit code
/opt/hatch/skills/artifacts/scripts/validate_xlsx.pyOpens the workbook read-back: zip integrity, sheet parts, populated-cell counts; do not deliver a link while it fails. A csv output gets no reader check

Verification

Run recalc_xlsx.py (when formulas exist), then validate_xlsx.py, then follow /opt/hatch/skills/artifacts/testing/SKILL.md. A clean recalculation proves the formulas evaluate, not that they are right: spot-check two or three formulas pull the values you expect before building out a grid.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

3d-object

FreeSummary

Create a 3D object with three.js, inspect it from every angle in an interactive viewer, and download it as OBJ + MTL or GLB for use in other 3D applications.

  • Create a 3D object and inspect it from every angle
  • Export a model for further editing in Blender
  • Review an object's silhouette and materials
asgeirtj/system_prompts_leaks69.9KUpdated Oct 16, 2026

action-items

FreeSummary

Maintain a private task list with deadlines, next steps, waiting parties, and blockers. Update progress and dependencies, merge duplicate items, and archive closed tasks so ongoing commitments stay clear and easy to follow.

  • Record tasks and commitments with deadlines
  • Track pending replies and reasons work cannot proceed
  • Update task dependencies when prerequisites are completed
asgeirtj/system_prompts_leaks69.9KUpdated Oct 16, 2026

agents

FreeSummary

Coordinate a task from a verifiable goal through completion. Handle work directly or split independent tasks across separate agent sessions, track progress, verify results, and arrange pull request merging when included in the goal.

  • Split independent tasks across agents
  • Check progress across ongoing tasks
  • Resume a previously started project
asgeirtj/system_prompts_leaks69.9KUpdated Oct 16, 2026

animated-video

FreeSummary

Create animated HTML pages with smooth scene transitions and playback controls. An editable timeline lets users adjust scene lengths and speeds, with fixed landscape or portrait layouts prepared for video export.

  • Create an animated product walkthrough
  • Explain a message through moving text and graphics
  • Build a portrait animation for video export
asgeirtj/system_prompts_leaks69.9KUpdated Oct 16, 2026

apple_healthkit

FreeSummary

Review synced Apple Health records, including steps, heart rate, sleep, and workouts. Retrieve daily summaries or detailed samples for a chosen period, and check sync status and missing data before interpreting the results.

  • Review daily steps and heart rate over time
  • Check sleep stages, duration, and awakenings
  • Review workout duration, distance, and calories
asgeirtj/system_prompts_leaks69.9KUpdated Oct 16, 2026

Create and edit Word documents and templates, reorganize text, replace images, and work with tracked changes or comments. Apply proper headings and lists, then render every page to check its appearance before delivery.

  • Create a structured Word document
  • Reorganize content in an existing document
  • Replace images or text in a document
asgeirtj/system_prompts_leaks69.9KUpdated Oct 16, 2026

See all skills by asgeirtj

Report a problem with this skill