跳到正文
cccskills
免费在 GitHub 公开

pdf

Use this Canvas-owned clean-room skill for PDF work where layout, extraction, generation, forms, page operations, or visual verification matter. Trigger for reading PDFs beyond plain text, creating PDFs, merging, splitting, rotating, watermarking, extracting tables or images, filling forms, OCR handoff, and final PDF QA.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md3.7 KB
  • agents/canvas.yaml217 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

PDF Workflows

This skill covers PDF creation, inspection, extraction, page operations, forms, and visual QA in Canvas Notebook. It is a clean-room Canvas skill; do not copy vendor skill material, hidden prompts, or proprietary helper code into this folder.

Core Contract

  • Use CANVAS_AGENT_TEMP_DIR for scripts, working copies, extracted assets, page renderings, and validation output. Promote only the requested final PDF to the workspace with copy_path or move_path.
  • Treat rendered pages as the source of truth for layout-sensitive tasks.
  • Use text extraction for content discovery, not as proof that a PDF looks correct.
  • Keep source PDFs immutable unless the user explicitly asks to overwrite them.
  • Return only the final requested artifact unless the user asks for extracted intermediates.
  • Use deterministic scripts for repeated operations and keep those scripts in scratch unless the user explicitly requests them as deliverables.

Recommended Tools

  • pypdf for merge, split, rotate, metadata, encryption, simple form filling, and page-level operations.
  • pdfplumber for text, coordinates, tables, and layout-aware inspection.
  • The Canvas PDF gateway, when exposed in the active runtime, for supported PDF operations. Discover it with search, inspect the selected operation with describe, then use call.
  • HTML plus bundled headless Chromium for creating new PDFs when no suitable gateway operation exists.
  • Poppler tools such as pdfinfo, pdftoppm, and pdftocairo for rendering and page diagnostics.
  • OCR tools only when available and required; if OCR dependencies are missing, explain the blocker instead of pretending scanned text was read.

Workflow

  1. Classify the task: read/review, generate, page operation, form filling, extraction, redaction, OCR, or repair.
  2. Make a working copy for destructive operations.
  3. Use the simplest reliable library for the operation. Avoid manipulating raw PDF bytes manually.
  4. Render updated pages to PNG and inspect alignment, margins, clipping, legibility, form values, signatures/watermarks, and page order.
  5. If a visual issue appears, repair the source operation and re-render.

Common Tasks

  • Extract text: start with pdfplumber; preserve page numbers and note extraction uncertainty for scanned or complex PDFs.
  • Extract tables: use pdfplumber table strategies and validate against rendered pages.
  • Create a PDF: use a supported PDF gateway operation or generate structured HTML and print it with headless Chromium; define margins, fonts, section hierarchy, tables, and pagination explicitly.
  • Merge or split: use pypdf; verify page count and order with pdfinfo and rendered thumbnails.
  • Fill forms: inspect AcroForm fields first, write a copy, flatten only if requested or necessary, then render filled pages.
  • Redact: do not cover text with a black rectangle alone. Remove or rewrite underlying content where possible, then verify extraction and rendering.

Final Checks

  • Latest rendered pages match the requested content and order.
  • Text is readable at normal zoom and no content is clipped.
  • Page size, orientation, margins, headers, footers, and numbering are correct.
  • Any extraction, OCR, or redaction limitations are stated clearly.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

中文简介正在准备中。当前显示原文说明。

canvascoding/canvas-notebook112026年10月19日 更新

Applies Canvas brand colors, typography, and visual polish to artifacts that benefit from a consistent product look-and-feel. Use it when brand colors, style guidelines, visual formatting, or company design standards apply.

中文简介正在准备中。当前显示原文说明。

canvascoding/canvas-notebook112026年10月19日 更新

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

中文简介正在准备中。当前显示原文说明。

canvascoding/canvas-notebook112026年10月19日 更新

Create or improve an organization-managed Canvas plugin that combines complete new or existing skills with optional custom MCP and Composio integrations. Use for reusable multi-skill workflows, plugin composition, plugin editing, and plugin graphics.

中文简介正在准备中。当前显示原文说明。

canvascoding/canvas-notebook112026年10月19日 更新

Use this Canvas-owned clean-room skill to guide collaborative writing for documentation, proposals, technical specs, decision records, PRDs, RFCs, operating guides, and structured memos. Trigger when the user wants help drafting, organizing, refining, reviewing, or testing a document before sharing it.

中文简介正在准备中。当前显示原文说明。

canvascoding/canvas-notebook112026年10月19日 更新

docx

免费

Use this Canvas-owned clean-room skill for creating, reading, editing, reviewing, redlining, commenting, or repairing Word `.docx` documents. Trigger for Word documents, DOCX files, memos, reports, letters, templates, tracked changes, comments, table of contents, headers, footers, page numbers, and Google Docs-targeted documents that should be authored as DOCX first.

中文简介正在准备中。当前显示原文说明。

canvascoding/canvas-notebook112026年10月19日 更新

查看 canvascoding 的全部技能

报告此技能的问题