Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

automating-pages自动化页面

Agent Skill

automating-pages 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

376

周安装

16

GitHub Stars

28

下载量

132
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:automating-pages(自动化页面)
来源仓库:https://github.com/spillwavesolutions/automating-mac-apps-plugin
仓库路径:skills/automating-pages
安装命令:
npx skills add https://github.com/spillwavesolutions/automating-mac-apps-plugin --skill automating-pages
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/spillwavesolutions/automating-mac-apps-plugin --skill automating-pages

简介

用于查找、检索和筛选 Pages 文档自动化相关信息,适合快速定位候选结果。

  • 适用于 macOS 文档编辑、文本提取和样式操作。
  • 使用时需加载 automating-mac-apps 获取权限和 shell 命令支持。
  • 安装方式:通过 npx skills add 从 GitHub 仓库安装,支持 Codex、Claude、Cursor、Gemini CLI。
  • 建议确认权限范围和维护状态,避免触发不必要的 UI 交互。

SKILL.md

Automating Pages (JXA-first, AppleScript discovery)

Relationship to the macOS automation skill

  • Standalone for Pages, aligned with automating-mac-apps patterns.
  • Use automating-mac-apps for permissions, shell, and UI scripting guidance.
  • PyXA Installation: To use PyXA examples in this skill, see the installation instructions in automating-mac-apps skill (PyXA Installation section).

Core framing

  • Pages dictionary is AppleScript-first; discover there.
  • JXA provides the logic and data handling.
  • Objects are specifiers: References to Pages elements that require methods for reads (e.g., doc.body.text()) and assignments for writes (e.g., doc.body.text = 'new text').

Example: Create Document

const pages = Application('Pages');
const doc = pages.Document({templateName: 'Blank'});
pages.documents.push(doc);
doc.body.text = "Hello World";

Workflow (default)

  1. Discover: Open Script Editor > File > Open Dictionary > Pages.
  2. Prototype: Write minimal AppleScript to verify the command works.
  3. Port to JXA: Convert AppleScript syntax to JXA objects.

- Example: make new document becomes pages.documents.push(pages.Document()). - Add error handling (try/catch blocks).

  1. Optimize: Use batch text operations when possible to avoid performance penalties.
  2. Fallback: Use AppleScript bridge or UI scripting for dictionary gaps (e.g., specific layout changes).

Image Insertion (Critical Difference from Keynote)

IMPORTANT: Pages does NOT support direct image insertion like Keynote does:

// THIS WORKS IN KEYNOTE:
Keynote.Image({ file: Path("/path/to/image.png"), position: {x: 100, y: 100} });

// THIS DOES NOT WORK IN PAGES!
Pages.Image({ file: Path("/path/to/image.png") }); // ❌ Will fail

Solution: Use ObjC Pasteboard bridging (see pages-advanced.md for details):

ObjC.import('AppKit');
const nsImage = $.NSImage.alloc.initWithContentsOfFile("/path/to/image.png");
const pb = $.NSPasteboard.generalPasteboard;
pb.clearContents;
pb.setDataForType(nsImage.TIFFRepresentation, $.NSPasteboardTypeTIFF);
// Then use System Events to paste (Cmd+V)

Example Script: See automating-pages/scripts/insert_images.js for a complete working example.

Common Pitfalls

  • Image insertion: Pages lacks a native Image constructor unlike Keynote. Use ObjC Pasteboard method.
  • Dictionary gaps: Some features (like sophisticated layout adjustments) aren't in the dictionary. Use the AppleScript bridge or UI scripting.
  • Permissions: Ensure 'Accessibility' settings are enabled for UI scripting.
  • Saving: Always use doc.save({in: file_path}) with a valid path object.

Validation Checklist

  • Document opens without errors
  • Text insertion and formatting succeeds
  • Save operations complete with valid path objects
  • Template application works if used
  • Export to target format produces valid output (PDF, Word)
  • Error handling covers missing files and permissions

When Not to Use

  • Cross-platform document automation (use python-docx or pandoc)
  • AppleScript alone suffices (skip JXA complexity)
  • Web-based documents (Google Docs API)
  • Non-macOS platforms
  • Complex page layout requiring manual design tools

What to load

Level 1: Basics

  • JXA Pages basics: automating-pages/references/pages-basics.md (Core objects and document lifecycle)

Level 2: Recipes & Common Tasks

  • Recipes (templates, export, text): automating-pages/references/pages-recipes.md (Standard operations)
  • Export options matrix: automating-pages/references/pages-export-matrix.md (PDF, Word, ePub formats)
  • Template strategy: automating-pages/references/pages-template-strategy.md (Managing custom templates)

Level 3: Advanced

  • Advanced patterns (tables, images, AppleScript bridge): automating-pages/references/pages-advanced.md (Complex integrations)
  • UI scripting patterns: automating-pages/references/pages-ui-scripting.md (Fallbacks)
  • Dictionary translation table: automating-pages/references/pages-dictionary.md (AppleScript to JXA mapping)
  • PyXA (Python) alternative: automating-pages/references/pages-pyxa.md

Example Scripts

  • Image insertion: automating-pages/scripts/insert_images.js (ObjC Pasteboard method for inserting images)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.85%
按下载量换算51

Claude

31.24%
按下载量换算41

Cursor

18.54%
按下载量换算24

Gemini CLI

9.12%
按下载量换算12

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/spillwavesolutions/automating-mac-apps-plugin --skill automating-pages 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills