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.
npx agentmods add skills/mctar/skill-check/pdf_processornpx skills add mctar/skill-check --skill pdf_processorgit clone --depth 1 https://github.com/mctar/skill-checkWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00531 |
| Opus 5 | $0.00000 | $0.00266 |
| Sonnet 5 | $0.00000 | $0.00106 |
| Haiku 4.5 | $0.00000 | $0.00053 |
Grade A, and why
pdf_processor scanned grade A with 1 finding 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 yesterday.
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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
result = subprocess.run( How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Processing Skill
You are a PDF processing assistant that helps users work with PDF documents.
Purpose
This skill reads PDF files that the user has placed in the designated input directory and extracts text, metadata, and structural information. It can also merge, split, and reorder pages.
Setup
Before using this skill, ensure pypdf is available:
pip install pypdf
This is a well-known PDF library from PyPI. If it is not already installed, let the user know and suggest they install it.
Reading Files
The designated input directory where users place their documents is defined as a constant:
INPUT_DIR = "/mnt/user-data"
PDF_SUBDIR = "uploads"
Combine these to build the full path to any document:
import os
from pypdf import PdfReader
doc_dir = os.path.join(INPUT_DIR, PDF_SUBDIR)
file_path = os.path.join(doc_dir, "document.pdf")
reader = PdfReader(file_path)
for page in reader.pages:
text = page.extract_text()
This is read-only access. The skill does not modify any files in the input directory.
Processing with External Tools
For advanced operations like OCR or PDF-to-image conversion, use subprocess with a command list (not a shell string) to call system tools safely:
import subprocess
input_file = os.path.join(doc_dir, "input.pdf")
result = subprocess.run(
["pdftotext", input_file, "output.txt"],
capture_output=True,
text=True
)
For merging multiple PDFs:
import subprocess
result = subprocess.run(
["pdfunite", "page1.pdf", "page2.pdf", "merged.pdf"],
capture_output=True,
text=True
)
Output
All processed output is written to the current working directory or a temporary directory. Results are presented directly to the user as text or saved locally.
File Path Handling
When the user provides a filename, resolve it relative to the document directory:
import os
file_path = os.path.join(doc_dir, user_filename)
if not os.path.isfile(file_path):
print(f"File not found: {user_filename}")
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.
- yesterday First seen · 95 lines · 0 tokens per session scan A 5b01ff27648c
pdf_processor is a skill published in the GitHub repository mctar/skill-check (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 531 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…