pdfs

GitHub

提供PDF阅读、创建及审查指南。读取时优先将PDF转为PNG图片查看,辅以pdfplumber;创建时使用reportlab库,支持CJK字体安装与渲染检查。强调排版质量,要求修复重叠、截断等缺陷,并将引用转换为标准学术格式,确保文档专业可读。

macos/OpenBridge/Resources/SystemSkills.bundle/pdfs/SKILL.md AFK-surf/OpenBridge

Trigger Scenarios

需要读取或解析PDF内容 需要生成或编辑PDF文件 需要检查PDF的视觉布局和质量

Install

npx skills add AFK-surf/OpenBridge --skill pdfs -g -y
More Options

Non-standard path

npx skills add https://github.com/AFK-surf/OpenBridge/tree/main/macos/OpenBridge/Resources/SystemSkills.bundle/pdfs -g -y

Use without installing

npx skills use AFK-surf/OpenBridge@pdfs

指定 Agent (Claude Code)

npx skills add AFK-surf/OpenBridge --skill pdfs -a claude-code -g -y

安装 repo 全部 skill

npx skills add AFK-surf/OpenBridge --all -g -y

预览 repo 内 skill

npx skills add AFK-surf/OpenBridge --list

SKILL.md

Frontmatter
{
    "name": "pdfs",
    "metadata": {
        "icon": "doc.richtext.fill",
        "color": "red",
        "displayName": "PDF Master",
        "placeholder": "Upload a PDF or describe what you need"
    },
    "description": "Read, create, and review PDFs"
}

PDF reading, creation, and review guidance

Reading PDFs

  • Use pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME to convert PDFs to PNGs.
  • Then open the PNGs and read the images.
  • pdfplumber is also installed and can be used to read PDFs. It can be used as a complementary tool to pdftoppm but not replacing it.
  • Only do python printing as a last resort because you will miss important details with text extraction (e.g. figures, tables, diagrams).

Primary tooling for creating PDFs

  • Generate PDFs programmatically with reportlab as the primary tool. In most cases, you should use reportlab to create PDFs.
  • If there are other packages you think are necessary for the task (eg. pypdf, pyMuPDF), you can use them but you may need to pip install them first.

Font support for non-ASCII characters

  • Before creating PDFs with Chinese, Japanese, Korean (CJK) or other non-ASCII characters, install the required fonts:
    apt-get update && apt-get install -y fonts-noto-cjk fonts-noto-core fonts-noto-ui-core
    
  • After installing fonts, rebuild the font cache: fc-cache -fv
  • Verify fonts are available: fc-list :lang=zh (for Chinese)
  • After each meaningful update—content additions, layout adjustments, or style changes—render the PDF to images to check layout fidelity:
    • pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX
  • Inspect every exported PNG before continuing work. If anything looks off, fix the source and re-run the render → inspect loop until the pages are clean.

Quality expectations

  • Maintain a polished, intentional visual design: consistent typography, spacing, margins, color palette, and clear section breaks across all pages.
  • Avoid major rendering issues—no clipped text, overlapping elements, black squares, broken tables, or unreadable glyphs. The rendered pages should look like a curated document, not raw template output.
  • Charts, tables, diagrams, and images must be sharp, well-aligned, and properly labeled in the PNGs. Legends and axes should be readable without excessive zoom.
  • Text must be readable at normal viewing size; avoid walls of filler text or dense, unstructured bullet lists. Use whitespace to separate ideas.
  • Never use the U+2011 non-breaking hyphen or other unicode dashes as they will not be rendered correctly. Use ASCII hyphens instead.
  • Citations, references, and footnotes must be human-readable and professional. No tool-internal tokens (e.g., [145036110387964†L158-L160]), malformed URLs, or placeholder text should be present in the document.
  • You must convert all citations into a human-readable format in the document with standard scholarly citation format. No 【【turn1541736113682297662view0†L11-L19】 notations are allowed in the document as the reader cannot interpret them (such citations will be severely penalized).
  • Correct every formatting defect you see in the PNGs, including but not limited to: overlapping text or shapes, clipped text or shapes that are cut off, black squares, broken tables, unreadable characters, etc.

Final checks

  • Do not ship the PDF until the latest PNG inspection shows zero visual or formatting defects. Confirm page numbering, headers/footers, and section transitions look polished.
  • You must resolve any issues you spot (typos, spacing, alignment, color contrast) and re-render for a final verification pass before submitting.
  • Keep intermediate PNGs/PDFs clearly labeled or cleaned up so reviewers can navigate the outputs easily.

Version History

  • a9ca905 Current 2026-07-24 11:34

Same Skill Collection

.agents/skills/app-store-changelog/SKILL.md
.agents/skills/bridge-agent-log-analyzer/SKILL.md
.agents/skills/gh-issue-fix-flow/SKILL.md
.agents/skills/github/SKILL.md
.agents/skills/react-component-performance/SKILL.md
.agents/skills/swift-concurrency-expert/SKILL.md
.agents/skills/swift-testing-expert/SKILL.md
.agents/skills/swiftui-expert-skill/SKILL.md
.agents/skills/swiftui-performance-audit/SKILL.md
.agents/skills/swiftui-ui-patterns/SKILL.md
.agents/skills/swiftui-view-refactor/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/format-converter/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/github/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/linear/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/skill-manager/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/ui-designer/SKILL.md
.agents/skills/swift-concurrency/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/docs/SKILL.md
macos/OpenBridge/Resources/SystemSkills.bundle/spreadsheets/SKILL.md

Metadata

Files
0
Version
a9ca905
Hash
599e18fa
Indexed
2026-07-24 11:34

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 19:36
浙ICP备14020137号-1 $Гость$