pages

A tool for controlling Apple Pages documents from Claude on macOS. Apple Pages is a document editor for creating and formatting reports, letters, and other files.

In plain words
What is it for?
Use it to create documents from templates, review or format existing files, and export them as PDF or Word documents.
Why use it?
It lets you create, open, inspect, edit, format, and export Pages documents through commands instead of doing every document operation manually.

Skill for Claude CodeCodex

Part of the pages-cli plugin — 1 skill, 1 command shipped together

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/marcelrgberger/pages-cli/pages
Any agent
npx skills add marcelrgberger/pages-cli --skill pages
Clone the repo
git clone --depth 1 https://github.com/marcelrgberger/pages-cli

Made for: Claude Code, Codex.

Or install pages-cli, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,372 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.00123 $0.01372
Opus 5 $0.00062 $0.00686
Sonnet 5 $0.00025 $0.00274
Haiku 4.5 $0.00012 $0.00137

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

Security

Grade A, and why

pages 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.

skills/pages/SKILL.md · 152 lines

How it starts

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

Apple Pages CLI Skill

Control Apple Pages from Claude — create, edit, format, review, and export documents.

Prerequisites

The pages-cli command must be installed. If not available, install it automatically:

which pages-cli || (cd ${CLAUDE_PLUGIN_ROOT}/agent-harness && python3 -m venv .venv && source .venv/bin/activate && pip install -e . && echo "pages-cli installed")

If a venv already exists, activate it:

test -f ${CLAUDE_PLUGIN_ROOT}/agent-harness/.venv/bin/activate && source ${CLAUDE_PLUGIN_ROOT}/agent-harness/.venv/bin/activate

System requirements:

  • macOS (Apple Pages is macOS-only)
  • Apple Pages installed (pre-installed or from the App Store)
  • Python 3.10+

Command Syntax

Command Action
/pages new Create a new blank document
/pages new <template> Create document from template
/pages open <path> Open an existing document
/pages info Show document info
/pages close Close document
/pages export pdf <path> Export as PDF
/pages export word <path> Export as Word
/pages templates List available templates
/pages status Show session status

CLI Command Reference

Document management:

pages-cli --json document new
pages-cli --json document new --template "Professional Report"
pages-cli --json document open "/path/to/document.pages"
pages-cli --json document info
pages-cli --json document list
pages-cli document save
pages-cli document save --path "/path/to/save.pages"
pages-cli document close
pages-cli document close --no-save

Text:

pages-cli text add "New text"
pages-cli text set "Replace entire body text"
pages-cli --json text get
pages-cli text set-font --name "Helvetica Neue" --size 14
pages-cli text set-font --name "Helvetica Neue" --size 24 --paragraph 1
pages-cli text set-color --r 0 --g 0 --b 65535 --paragraph 1
pages-cli --json text word-count

Tables:

pages-cli table add --rows 5 --cols 3 --name "Data"
pages-cli table set-cell "Data" 1 1 "Column A"
pages-cli --json table get-cell "Data" 1 1
pages-cli --json table list
pages-cli table merge "Data" "A1:B1"
pages-cli table sort "Data" --column 1

Read the full file on GitHub · 152 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 · 152 lines · 123 tokens per session scan A a729115cd81c

Subscribe to this mod's changes

pages is a skill published in the GitHub repository marcelrgberger/pages-cli (14 stars, last pushed 5mo ago), licensed MIT. It adds 123 tokens to every session and 1,372 once invoked, about $0.0006 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

adeu-redlining

Use this skill when reviewing, editing, redlining, or negotiating an existing Microsoft Word document (.docx) — including proposing edits as tracked changes, accepting or rejecting existing tracked changes, replying to comments, comparing two versions, sanitizing author metadata, or finalizing a contract for…

dealfluence/adeu · 122 tokens

bank-statement-parsing

Guidelines for parsing bank statements using YOLO layout detection + OCR + LLM.

johnsonhk88/AI-Bank-Statement-Document-Automation-By-LLM-And-Personal-Finanical-Analysis-Prediction · 23 tokens

wps-ai

通过 WPS-AI MCP 服务操控 WPS Office 文档——读取、写入、格式化、公文排版。在 Windows Hermes 上配置后,可从 NAS 远程操控 WPS 处理文档。.

lewis-hui1202/WPS-AI · 50 tokens

form-fill

Use this workflow when filling an existing HWPX across native fields, labeled cells, canonical paths, and body anchors through one analyzed, atomic, and verified mixed-form transaction.

airmang/python-hwpx-automation · 38 tokens

reference-preserving-edit

Use this workflow when editing an existing HWPX while minimizing layout drift by copying first, inspecting the relevant package parts, making bounded edits with the current MCP tools, and validating the result before handoff.

airmang/python-hwpx-automation · 46 tokens

template-generation

Use this workflow when generating an HWPX from an approved template or from a new blank document by orchestrating the current MCP text, table, style, and copy tools without adding new public server tools.

airmang/python-hwpx-automation · 44 tokens