pdf

pdf is a skill for Claude Code, Codex from NUGURI-7/CoCoWork. It costs 73 tokens per session (1,964 once invoked), scanned A, original, MIT.

A workflow for creating, reading, merging, splitting, and rotating PDF files. New PDFs use the supplied CoCoWork page design, and existing PDFs can have their text and tables extracted.

In plain words
What is it for?
Use it to make reports, product sheets, and other PDFs, or to extract text and tables and combine, separate, or rotate existing PDF files.
Why use it?
It keeps newly created PDFs consistent and provides separate methods for reading content and changing file structure. The supplied information does not promise specialised PDF editing beyond these operations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to make reports, product sheets, and other PDFs, or to extract text and tables and combine, separate, or rotate existing PDF files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nuguri-7/cocowork/pdf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NUGURI-7/CoCoWork --skill pdf
Clone the repo
git clone --depth 1 https://github.com/NUGURI-7/CoCoWork

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/nuguri-7/cocowork/pdf/github.svg)](https://agentmods.dev/skills/nuguri-7/cocowork/pdf)
Your own site
<a href="https://agentmods.dev/skills/nuguri-7/cocowork/pdf"><img src="https://agentmods.dev/badge/skills/nuguri-7/cocowork/pdf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/nuguri-7/cocowork/pdf"><img src="https://agentmods.dev/badge/skills/nuguri-7/cocowork/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,964 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.01964
Opus 5.5 $0.00029 $0.00786
Sonnet 5.5 $0.00015 $0.00393
Haiku 4.5 $0.00007 $0.00196

Measured 13d ago against content hash 1dc3d541a192, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (brand/brand_pdf.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/app/skills/builtin/pdf/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF 制作与处理

任务 做法
新建 PDF 写一个 Python 脚本,用 brand/brand_pdf.py 生成 —— 见下方「品牌页面(必须)」
读取文字和表格 pdfplumber
合并 / 拆分 / 旋转 pypdf

路径里的尖括号是占位符,写成绝对路径:<本 skill 目录> 是本说明书所在目录,<交付区> 的实际位置见系统提示「文件放哪」那节。写进交付区的文件会自动交给用户。

品牌页面(必须)

新建 PDF 一律用 brand/brand_pdf.py 的 build_pdf():A4 版面,每页自动带页眉(Logo + CoCoWork)和页脚(资料密级 + 「第 x 页 / 共 y 页」),中文字体已注册(嵌入文泉驿正黑,环境里没有时退回 STSong-Light),风格与 PPT 一致。不要自己画页眉页脚,也不要用 reportlab 自带的 Helvetica 等字体 —— 它们不含中文,会显示成方块。

import sys
sys.path.insert(0, "<本 skill 目录>/brand")
from brand_pdf import CONTENT_WIDTH, build_pdf, bullets, callout, figure, hero, stat_row, styles, table
from reportlab.platypus import KeepTogether, Paragraph, Spacer

st = styles()
story = [
    *hero("CoCoWork 产品单页", "企业内部 AI 业务能力门户……", kicker="PRODUCT OVERVIEW", image="<工作区>/pdf_cover.png"),
    stat_row([{"value": "3 分钟", "label": "产出方案初稿"}, {"value": "100%", "label": "调用全程可追溯"}]),
    Spacer(1, 16),
    KeepTogether([Paragraph("核心能力", st["H1"]), bullets(["<b>合同初审:</b>逐项核对签约对象、报价与条款"])]),
    KeepTogether([Paragraph("版本与价格", st["H1"]), table([["版本", "价格(元/年)"], ["标准版", "48,000"]])]),
    Spacer(1, 16),
    callout("联系我们", "预约演示或试用……"),
]
build_pdf("<交付区>/产品单页.pdf", story, title="CoCoWork 产品单页", classification="对外资料")
函数 用途
hero(title, subtitle, kicker, image) 首屏横幅:深绿底,左侧标题,image 给图片路径时右半边放配图并自动渐变衔接;返回列表,用 *hero(...) 展开
stat_row(items) 2–4 个大数字卡片,第一个品牌色底
callout(title, text) 浅绿底提示框
figure(path, caption, width) 配图,按原比例缩放,width 单位 pt,默认版心宽度;返回列表
table(rows, col_widths) 第一行表头(品牌色底白字),隔行浅绿底,单元格自动换行,跨页重复表头;col_widths 单位 pt,合计不超过 CONTENT_WIDTH
bullets(items) 品牌色项目符号列表
styles() Title、Subtitle、H1、H2、Body、Small、Center、TableHead、TableCell;需要变体时 ParagraphStyle("X", parent=st["Body"], ...) 派生,不要另指定字体
  • 配图:调用 generate_image(prompt, filename, aspect) 工具生成,返回路径直接传给 hero(image=…) 或 figure()。filename 一律以 pdf_ 开头(如 pdf_cover):别的成员可能同时在生图,同名会互相覆盖。提示词开头写「真实摄影照片,商业杂志质感」,人物放在画面右侧(左边要叠标题),结尾写「满版构图,无边框,画面中不要出现任何文字、logo 或水印」,有屏幕时加「屏幕背对镜头」。生成失败就不传 image,横幅会改用同心圆装饰。
  • 数字只能来自用户给的资料或资料员的简报:示例代码里的数字只是演示,不要照抄;手里没有可靠数字时,不要用数据卡片,改用图标列表或要点。
  • 段落文字里的 &、<、> 要写成 &amp;、&lt;、&gt;,加粗用 <b>,换色用 <font color="#2F6B53">。
  • 上下标用 <sub>、<super> 标记,不要用 ₂、² 这类 Unicode 上下标字符(字体里没有,会显示成黑块)。
  • 一页纸的单页要控制内容量:放不下就精简文字,不要缩小到 9pt 以下。用 KeepTogether([...]) 避免小标题和它下面的内容被分到两页。

Read the full file on GitHub · 125 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 125 lines · 73 tokens per session scan A 1dc3d541a192

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository NUGURI-7/CoCoWork (16 stars, last pushed 11d ago), licensed MIT. It adds 73 tokens to every session and 1,964 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

pdf compared with skills from other repositories

pdf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdfNUGURI-7/CoCoWorkSkill1611d agoMITA73Claude Code, Codex
pdfnexus-research-lab/nexusSkill165todayApache-2.0A85Claude Code
nano-pdfgraniet/kheishSkill20923d agoApache-2.0A34Claude Code, Codex
ocr-and-documentsgraniet/kheishSkill20923d agoApache-2.0A49Claude Code, Codex
pdf-toolkitopensquilla/opensquillaSkill7.2k4d agoApache-2.0A127Claude Code, Codex
figuressynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A99Claude Code
liteparsesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A49Claude Code, Codex