跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

集成工具Excel
查看安装方法

适用场景

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

包含的文件(3)

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

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

3d-object

免费

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_leaks7万2026年10月20日 更新

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_leaks7万2026年10月20日 更新

agents

免费

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_leaks7万2026年10月20日 更新

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_leaks7万2026年10月20日 更新

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_leaks7万2026年10月20日 更新

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_leaks7万2026年10月20日 更新

查看 asgeirtj 的全部技能

报告此技能的问题