SkillsGrove
SkillsGrove/Documentos de oficina/aduermael/cells/cells

cells

Instalación

$npx skills add https://github.com/aduermael/cells --skill cells
$git clone --depth 1 https://github.com/aduermael/cells.git /tmp/cells && mkdir -p ~/.claude/skills && cp -r /tmp/cells/skill ~/.claude/skills/cells
Instala por favor esta Agent Skill por mí: https://github.com/aduermael/cells/tree/6539193ea6bd7be30c979fc7aed4aa1e294b9f83/skill. Lee primero su SKILL.md y sus scripts, y solo instálala en mi carpeta de skills cuando hayas confirmado que es segura.

Resumen

Descripción original · MITCells is a CLI for spreadsheet work (.xlsx/.csv/.zcd) — an Excel CLI equivalent for converting, inspecting, creating, and transforming workbooks from the terminal. Also used to join collab rooms via long-running sessions (or one-shot cells sync).
El SKILL.md siguiente se reproduce de aduermael/cells (commit 6539193) bajo la licencia MIT. El texto no se ha modificado; solo se omiten los metadatos de cabecera del archivo, las imágenes se muestran como enlaces y los archivos muy largos se truncan. Copyright 2025-2026 Cells contributors. Licencia: LICENSE. Solo se muestra el archivo de instrucciones; consulta el repositorio original para ver los scripts.

Cells spreadsheet CLI

cells is a spreadsheet engine CLI for .xlsx, .csv, and .zcd.

Humans often use the web client; agents should use this CLI (and this skill). The product does not host agent intelligence — use Codex, Claude Code, Grok, or any other agent with the CLI.

Check availability

which cells

If cells is missing and this skill folder contains install.sh, install the CLI with it. The installer tries Homebrew first, then the direct release installer:

sh ./install.sh

If this skill directory also contains REPO_LOCAL.md (present when working from the cells git checkout via skill symlinks), read that file for how to build and use the in-repo CLI instead of downloading a release.

Install environment overrides

Variable Purpose
CELLS_VERSION Install a specific tag (v0.0.1) instead of latest
CELLS_INSTALL_DIR Install directory (default /usr/local/bin)
CELLS_REPO GitHub owner/repo for release assets
CELLS_FORCE_INSTALL Set 1 to reinstall even if cells is on PATH

Collaborate via room URL (preferred: sessions)

When a human (or peer) shares a Cells collab link that includes a room id (?room=... or path /{room-id}), agents should join with a long-running session. The CLI peer stays connected so the human sees it in the browser Collaborate UI while you run multiple scripts/actions.

Multi-step agent workflow (session daemon)

Stdout contract (all session commands): pure JSON only — no human prose on stdout or stderr.

  • One JSON value per command (object or array)
  • Errors: {"ok":false,"error":"..."} on stdout, exit code 1
  • Large JSON: spilled to /tmp with a small pointer object {"path","bytes","preview"}
  • session watch: JSONL (one JSON object per line)
# 1) Start a background peer — waits until ONLINE (peer CRDT sync done; default 15s)
# Prefer: browser already in the room, then session start (pulls browser document).
cells session start 'https://example.com/?room=ROOM_ID' \
  --wait-seconds 20 --idle-minutes 30 --name 'CLI Agent'
# → {"ok":true,"id":"...","state":"ONLINE","ready":true,...}  or ready:false + warning
# Daemon stays up even if not ONLINE yet — poll: cells session status <id>

# 2) Run scripts against the live session (refuses if not ready unless --force)
cells session exec a1b2c3d4 -e 'setCell("A1", 42); print(getCell("A1").value)'
# → {"ok":true,"id":"a1b2c3d4","output":"42\n","state":"ONLINE","ready":true}

# 3) Dump the live workbook (at least one of zcd/xlsx/csv)
cells session export a1b2c3d4 /tmp/room.xlsx
cells session export a1b2c3d4 /tmp/room.csv

# 4) Optional: stream room/session events as JSONL
cells session watch a1b2c3d4 --duration 30

# 5) Inspect / list / stop
cells session status a1b2c3d4   # state, ready, peers, peer_id, ops_*, cells, last_error
cells session list              # → [] when empty
cells session stop a1b2c3d4
cells session --help            # JSON {"ok":true,"usage":"..."}
Command Purpose
session start <url> Start daemon, wait for ONLINE/SYNCING, print JSON
session exec <id> -e / --script Run Luau + broadcast; refuses if CONNECTING (use --force)
session export <id> <path> Save live workbook as .zcd / .xlsx / .csv
session watch <id> Stream JSONL events (--duration SECS)
session list / status / stop Lifecycle
session --help JSON usage

Idle timeout: auto-stop after N minutes idle (default 30; --idle-minutes).

Readiness: start waits for ONLINE (--wait-seconds, default 15). SYNCING alone is not ready (still exchanging ops). Status includes ready, state, peers, ops_sent/ops_received, cells, last_error.

Document identity: the session does not invent a local Sheet1 before peer sync (that caused dual row/col IDs). Structure comes from the room; only an empty room gets a CRDT Sheet1 after ONLINE.

Why sessions? cells sync <url> is one-shot blocking. Prefer session for multi-step agent work.

Give the agent the full URL from the web Collaborate menu (Copy Link).

One-shot sync (optional)

cells sync 'https://example.com/?room=ROOM_ID'
# or
cells sync --server 'https://example.com/?room=ROOM_ID'

Use only when you intentionally want a single blocking process that logs ops until exit. Prefer cells --help for full sync flags (--apply, --send, --ops-only).

How to use

Prefer cells --help for full flags and modes. Common workflows:

# Help / version
cells --help
cells --version

# Convert (format from extension)
cells -i data.xlsx output.zcd
cells -i budget.xlsx report.csv --eval
cells -i data.csv report.xlsx

# Inspect
cells -I spreadsheet.zcd

# Create empty workbook
cells output.zcd

# Script while converting (or script-only with no output path)
cells -i data.xlsx output.csv --script transform.luau
cells -i data.csv out.xlsx -e 'setCell("A1", 100)'
cells -i report.csv -e 'print(getCell("A1").value)'

Large CLI output

If a command’s JSON (or offline script print) is above a size threshold, the CLI writes the full body under /tmp and prints a small JSON pointer on stdout instead of dumping megabytes into the agent context:

{"path":"/tmp/cells-out-XXXXXX","bytes":123456,"preview":"..."}

Open path to read the full body. Small payloads stay inline. Session commands always wrap results as JSON (never raw script text alone).

Formats

Format Use when
.zcd Full fidelity (formulas, multi-sheet, styles)
.xlsx Excel interchange
.csv / .tsv Simple tabular import/export (values; limited fidelity)

Scripting

Scripts run with --script <file> or -e '<code>' (offline convert path), or with session exec <id> -e / --script (live collab session). They use the Cells scripting API (getCell, setCell, sheets, ranges, and more).

cells -i data.xlsx out.xlsx --script samples/set-values.luau
cells -i data.csv -e 'local c = getCell("A1"); print(c and c.value)'
# Live session (peer stays connected):
cells session exec SESSION_ID -e 'setCell("A1", 100)'
Ver el texto completo de la licencia (MIT)
MIT License

Copyright (c) 2025-2026 Cells contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.