aside-pdf

aside-pdf is a skill for Claude Code, Codex from KunanonJ/ai-skills-hub. It costs 94 tokens per session (724 once invoked), scanned A, original, MIT.

A set of instructions for working with PDF files, which are fixed-layout documents. It supports reading pages, inspecting form fields, and filling forms.

In plain words
What is it for?
Rendering PDF pages for inspection, checking form fields, and creating a filled copy of a PDF form.
Why use it?
It gives the agent a defined way to inspect PDF content and handle fillable forms.

Skill for Claude CodeCodex

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

Good fit Rendering PDF pages for inspection, checking form fields, and creating a filled copy of a PDF form.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kunanonj/ai-skills-hub/aside-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 KunanonJ/ai-skills-hub --skill aside-pdf
Clone the repo
git clone --depth 1 https://github.com/KunanonJ/ai-skills-hub

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 aside-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/aside-pdf/github.svg)](https://agentmods.dev/skills/kunanonj/ai-skills-hub/aside-pdf)
Your own site
<a href="https://agentmods.dev/skills/kunanonj/ai-skills-hub/aside-pdf"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/aside-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 aside-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/kunanonj/ai-skills-hub/aside-pdf"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/aside-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 724 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.00094 $0.00724
Opus 5 $0.00047 $0.00362
Sonnet 5 $0.00019 $0.00145
Haiku 4.5 $0.00009 $0.00072

Measured 7d ago against content hash e1f1295c3f9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

aside-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 7d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/check_bounding_boxes.py, scripts/check_fillable_fields.py, scripts/convert_pdf_to_images.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.

skills/aside-pdf/SKILL.md · 82 lines

How it starts

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

PDF Processing Guide

Reading PDFs

Use repl with aside.pdf API for visual inspection of PDFs.

interface PDFReadResult {
  pages: {
    /* Image path of the rendered page. */
    path: string; 
    /* Width of the rendered page. */
    width: number;
    /* Height of the rendered page. */
    height: number;
  }[];
  /** If there are form fields, it's metadata JSON path. Use `read_file` to read it. */
  formFieldsPath: string | undefined;
}

interface AsidePdf {
  /** Render PDF pages as images and inspect form fields using macOS native PDFKit. */
  read(options: { filePath: string; outputDir?: string; maxDimension?: number }): Promise<PDFReadResult>;

  /** Inspect AcroForm/XFA fields and return field descriptions when embedded in the PDF. */
  inspectFormFields(options: { filePath: string }): Promise<Record<string, unknown>>;

  /** Fill AcroForm fields into a new output PDF. */
  fillFormFields(options: {
    filePath: string;
    outputPath: string;
    fields: { field_id: string; value: boolean | number | string | null }[];
  })
}

REPL Examples

// Reading a PDF (pages[].path is the image path of the rendered page- use either `read_file` tool or `display(await fs.readFile(path))` to read the PDF as image)
console.log(await aside.pdf.read({ filePath: './input.pdf' }));

// Inspecting form fields
console.log(await aside.pdf.inspectFormFields({ filePath: './input.pdf' }));

// Filling form fields
await aside.pdf.fillFormFields({
  filePath: './input.pdf',
  outputPath: './artifacts/filled.pdf',
  fields: [
    { field_id: 'topmostSubform[0].Page1[0].f1_14[0]', value: 'John' },
    { field_id: 'topmostSubform[0].Page1[0].c1_1[0]', value: true }
  ]
});

Notes

Do not answer "the form is empty" when the user is asking what fields exist. Report the field meanings and separately say whether current values are blank.

If aside.pdf fails or the native helper cannot perform the requested operation, read fallback.md and use the fallback workflow.

Read the full file on GitHub · 82 lines

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. 7d ago First seen · 82 lines · 94 tokens per session scan A e1f1295c3f9e

Subscribe to this mod's changes

aside-pdf is a skill published in the GitHub repository KunanonJ/ai-skills-hub (5 stars, last pushed today), licensed MIT. It adds 94 tokens to every session and 724 once invoked, about $0.0005 per session on Opus 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-09-03.