跳到正文
FunCoding

pdf-form

Use when a native PDF form in macOS Preview has unnamed accessibility fields or field edits cannot be verified reliably.

Star
630
许可证
Apache-2.0
最近提交
2026年10月26日

packages/harness/skills/pdf-form/SKILL.md

在 GitHub 上查看

Native PDF form workflow

Use this for a PDF form opened in macOS Preview, especially when AX fields lack useful names. It does not authorize foreground control or changing document contents beyond the user's request.

  1. Confirm the correct PDF and Preview window. Observe the window's AX tree and a screenshot. Use the visible labels, AX bounds, and read-only form metadata to map fields. Do not treat editable=True as proof that AXValue can be written.
  2. Prefer ui.ax.set_text(node, value) only when the actual field supports it. Read back the field and inspect the visible PDF result. If Preview rejects AXValue or AXFocus, do not repeat the same call indefinitely.
  3. If GUI filling is necessary, obtain the harness's foreground permission before activating the target window. Capture a fresh image of that same window. Click the intended field with a same-window node/image pair when reliable; otherwise use a point derived from that image, not hand-converted screen coordinates.
  4. Confirm the editing focus before ui.input.text(value, delivery="foreground", timeout_ms=15000). A background AX click receipt does not prove foreground keyboard focus. To replace an existing value, use Cmd+A only after confirming focus within that field.
  5. Re-observe after each small group of fields, after page changes, and after saving. Verify the resulting PDF values or render, not just the return code, printed variables, or AX node text. If the PDF cannot be verified, report that limitation instead of claiming completion.

Stop and ask the user if the field mapping is ambiguous, the application needs foreground control that has not been approved, or the required data is missing.

相似的 Skill

精选

pptx

生成、读取和修改演示文稿,也能合并拆分幻灯片。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

docx

创建和编辑 Word 文档,支持目录、页码、页眉等排版。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

pdf

提取文本和表格、合并拆分、填写表单,也能对扫描件做 OCR。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

doc-coauthoring

按步骤协作撰写技术方案、提案和决策文档,逐轮修改。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

xlsx

读写 Excel 和 CSV,处理公式、格式、图表与数据清洗。

ANanthropics/skills203k近 7 天新增 3,265 个 star

精选

canvas-design

按设计理念生成海报和视觉作品,输出 PNG 或 PDF。

ANanthropics/skills203k近 7 天新增 3,265 个 star