workbook-editor

A controlled workflow for reading, editing, previewing, and checking Excel workbooks such as .xlsx and .xlsm files.

In plain words
What is it for?
Inspecting sheets, planning edits, making changes with conflict checks, validating the result, comparing it with the original, and rendering affected areas for review.
Why use it?
It helps prevent accidental changes to formulas, formatting, macros, or other protected workbook content.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/firstp1ck/pi-coding-agent-forge/workbook-editor
Any agent
npx skills add Firstp1ck/pi-coding-agent-forge --skill workbook-editor
Clone the repo
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge

Made for: Claude Code, Codex.

Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 852 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00080 $0.00852
Opus 5 $0.00040 $0.00426
Sonnet 5 $0.00016 $0.00170
Haiku 4.5 $0.00008 $0.00085

Measured 3d ago against content hash 3c520173ab18, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workbook-editor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pi-extension-workbook/skills/workbook-editor/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Workbook Editor

Use the six workbook_* tools for semantic and visual workbook work. Treat every workbook as potentially hostile active content.

Required workflow

  1. Call workbook_inspect before editing an unfamiliar workbook. Review validation warnings, external relationships, protected parts, and engine capabilities.
  2. Call workbook_read for the exact sheet/range. Call workbook_render whenever layout, fills, borders, dimensions, or visual comparison matter.
  3. Build an ordered operation list and call workbook_edit with dryRun: true. Save the returned sourceSha256.
  4. Commit to a new output path by default. Set dryRun: false and pass the exact expectedSha256 from the current inspection/dry run.
  5. Call workbook_validate on the result, using the source as baselinePath for .xlsm or active-content work.
  6. Call workbook_diff and render the affected range. Report the output and any recovery path.

Operation intent

  • Use setValue for literal text, numbers, booleans, or null. Leading =, +, -, and @ remain text when passed as strings.
  • Use setFormula only for formulas. External-workbook, URL, DDE, WEBSERVICE, FILTERXML, and RTD constructs are rejected.
  • Use setStyle for explicit font, fill, border, alignment, number-format, or cell-protection patches.
  • Use copyRange for same-sized range templates; set optional sourceSheet for cross-sheet copies. Use copyFormat when only styles should be reproduced and fillRange to translate ordinary relative A1 formulas from one source cell.
  • Shared, array, data-table, and spill formula regions are preservation-only. Value/content edits that intersect them fail closed; inspect formula inventory before restructuring formula-heavy sheets.
  • Use clear, dimensions, merge, and unmerge operations only after reading existing merges and layout.

Safety rules

  • Never execute macros. Preservation does not imply that VBA was reviewed, trusted, or safe.
  • Never request VBA source mutation or workbook macro execution through these tools; those capabilities are intentionally absent.
  • Never refresh external links, Power Query, DDE, or data connections.
  • Never silently convert .xlsm and .xlsx; output extension must match source.
  • Never omit expectedSha256 on a commit or retry a conflict using an old hash.
  • Never overwrite in place unless the user explicitly asked. In-place writes require overwrite: true and return a recovery copy.
  • Do not suggest lossy fallback libraries when the engine rejects an unsupported operation.
  • Keep ranges focused. Full structured results are stored in temporary artifacts when model-visible output is truncated.

Read the full file on GitHub · 52 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 52 lines · 80 tokens per session scan A 3c520173ab18

Subscribe to this mod's changes

workbook-editor is a skill published in the GitHub repository Firstp1ck/pi-coding-agent-forge (74 stars, last pushed 3d ago), licensed MIT. It adds 80 tokens to every session and 852 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

google-sheets

Google Sheets via gws: read/write cells, append rows, structured batch edits.

Open-Curiosity/gini-agent · 21 tokens

document-parsing

Extract readable Markdown from local Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and text-based PDF files using the preinstalled AnyDoc runtime.

Cloudgeni-ai/opengeni · 39 tokens

opengeni-spreadsheets

Create, inspect, calculate, edit, import, and export durable OpenGeni spreadsheet artifacts and explicit XLSX/CSV file boundaries. Use for workbooks, formulas, analyses, tables, calculations, and spreadsheet visual QA. Do not use for controlling a live Excel application.

Cloudgeni-ai/opengeni · 62 tokens

editable-table

Open a spreadsheet-style widget for a Markdown table so the user can edit it and send the final Markdown table back into chat.

rcarmo/piclaw-addons · 28 tokens

csv-processor

Read a CSV file from disk, compute per-column min/mean/max for every numeric column, emit the result as JSON. Stdlib-only Python; no pandas, no numpy. Demonstrates the simplest possible "give me a file path, get back structured analysis" skill — a deliberate baseline for any skill that processes tabular data locally…

ChronoAIProject/Ornn · 79 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify…

hackermanishackerman/claude-skills-vault · 96 tokens