本文へ移動
cccskills
無料GitHub で公開

pdf

Use automatically for PDF tasks, including Chinese requests like 查看PDF, 读取PDF, PDF里写了什么, 总结PDF, 分析PDF, 提取PDF文字, 识别PDF内容, or questions about any .pdf file. Prefer text extraction with pdfplumber/pypdf first, then render pages with Poppler when layout, images, tables, stamps, watermarks, or scanned content matter.

インストール方法を見る

含まれるファイル(4)

  • SKILL.md3.3 KB
  • agents/openai.yaml219 B
  • assets/pdf.png1.3 KB
  • LICENSE.txt10.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

PDF Skill

When to use

  • Automatically use this skill whenever the user asks about a .pdf file.
  • 中文触发词包括:查看PDF、读取PDF、PDF写了什么、这个文件中写了什么、总结PDF、分析PDF、提取PDF文字、识别PDF内容。
  • Read or review PDF content where layout and visuals matter.
  • Create PDFs programmatically with reliable formatting.
  • Validate final rendering before delivery.

Workflow

  1. Locate the referenced PDF in the current workspace before answering.
  2. Use uv run --with pdfplumber --with pypdf python <script.py> for text extraction and metadata/page counts. Do not ask the user to install Git Bash first.
  3. If extracted text is empty, sparse, garbled, or the user asks about layout/visual content, render pages to PNG and inspect them.
    • Use pdftoppm if available.
    • If Poppler is unavailable, clearly say visual rendering is unavailable and ask for Poppler or an image/screenshot when needed.
  4. For Chinese PDFs, preserve Chinese text and answer in Chinese unless the user asks otherwise.
  5. Use reportlab to generate PDFs when creating new documents.
  6. After each meaningful PDF edit, re-render pages and verify alignment, spacing, and legibility.

Temp and output conventions

  • Use tmp/pdfs/ for intermediate files; delete when done.
  • Write final artifacts under output/pdf/ when working in this repo.
  • Keep filenames stable and descriptive.

Dependencies (install if missing)

Prefer uv for dependency management.

Python packages:

uv run --with reportlab --with pdfplumber --with pypdf python your_script.py

If uv is unavailable:

python3 -m pip install reportlab pdfplumber pypdf

On Windows, if python3 is unavailable but uv exists, use uv run instead of asking the user to install Python manually. System tools (for rendering):

# macOS (Homebrew)
brew install poppler

# Ubuntu/Debian
sudo apt-get install -y poppler-utils

If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.

Environment

No required environment variables.

Rendering command

pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX

Quality expectations

  • Maintain polished visual design: consistent typography, spacing, margins, and section hierarchy.
  • Avoid rendering issues: clipped text, overlapping elements, broken tables, black squares, or unreadable glyphs.
  • Charts, tables, and images must be sharp, aligned, and clearly labeled.
  • Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.
  • Citations and references must be human-readable; never leave tool tokens or placeholder strings.

Final checks

  • Do not deliver until the latest PNG inspection shows zero visual or formatting defects.
  • Confirm headers/footers, page numbering, and section transitions look polished.
  • Keep intermediate files organized or remove them after final approval.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

edge-tts

無料

Text-to-speech conversion using `uvx edge-tts` for generating audio from text. Use when (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS output.

日本語の概要は準備中です。原文の説明を表示しています。

MaddieMo1/Pi-Agent-Web182026年9月8日 更新

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

日本語の概要は準備中です。原文の説明を表示しています。

MaddieMo1/Pi-Agent-Web182026年9月8日 更新

Create video compositions, animations, title cards, overlays, captions, voiceovers, audio-reactive visuals, and scene transitions in HyperFrames HTML. Use when asked to build any HTML-based video content, add captions or subtitles synced to audio, generate text-to-speech narration, create audio-reactive animation (beat sync, glow, pulse driven by music), add animated text highlighting (marker sweeps, hand-drawn circles, burst lines, scribble, sketchout), or add transitions between scenes (crossfades, wipes, reveals, shader transitions). Covers composition authoring, timing, media, and the full video production workflow. For dev-loop CLI commands (init, lint, inspect, preview, render) see the hyperframes-cli skill; for asset preprocessing commands (tts, transcribe, remove-background) see the hyperframes-media skill.

日本語の概要は準備中です。原文の説明を表示しています。

MaddieMo1/Pi-Agent-Web182026年9月8日 更新

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

日本語の概要は準備中です。原文の説明を表示しています。

MaddieMo1/Pi-Agent-Web182026年9月8日 更新

Search the web with LLM-optimized results via the Tavily CLI. Use this skill when the user wants to search the web, find articles, look up information, get recent news, discover sources, or says "search for", "find me", "look up", "what's the latest on", "find articles about", or needs current information from the internet. Returns relevant results with content snippets, relevance scores, and metadata optimized for LLM consumption. Supports domain filtering, time ranges, and multiple search depths.

日本語の概要は準備中です。原文の説明を表示しています。

MaddieMo1/Pi-Agent-Web182026年9月8日 更新

MaddieMo1 のスキルをすべて見る

このスキルの問題を報告する