pdf-calendar-extractor

pdf-calendar-extractor is a skill for Claude Code, Codex from cxcscmu/SkillLearnBench. It costs 25 tokens per session (357 once invoked), scanned A, original, MIT.

A PDF-reading skill that extracts both text and colored shapes, such as rectangles, along with their positions. It is designed for calendars where appointments appear as colored blocks.

In plain words
What is it for?
It helps read calendar labels, locate appointment blocks, identify blue blocks, and estimate their time positions.
Why use it?
It helps interpret visual calendar layouts that cannot be understood from text alone.

Skill for Claude CodeCodex

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

Good fit It helps read calendar labels, locate appointment blocks, identify blue blocks, and estimate their time positions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cxcscmu/skilllearnbench/pdf-calendar-extractor
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 cxcscmu/SkillLearnBench --skill pdf-calendar-extractor
Clone the repo
git clone --depth 1 https://github.com/cxcscmu/SkillLearnBench

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-calendar-extractor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/pdf-calendar-extractor"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/pdf-calendar-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 357 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00025 $0.00357
Opus 5.5 $0.00010 $0.00143
Sonnet 5.5 $0.00005 $0.00071
Haiku 4.5 $0.00003 $0.00036

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

Security

Grade A, and why

pdf-calendar-extractor 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 1mo ago.

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/b1-one-shot-gemini-3-flash-preview/schedule-planning/pdf-calendar-extractor/SKILL.md · 46 lines

What it actually says

PDF Calendar Extractor

This skill provides a way to extract text elements and graphical shapes (like rectangles) from a PDF, including their positions and color properties. This is useful for processing visual calendars where appointments are represented by colored blocks.

Requirements

  • pdfplumber

Example Usage: Extract Rectangles and Text

import pdfplumber

def extract_calendar_data(pdf_path):
    with pdfplumber.open(pdf_path) as pdf:
        page = pdf.pages[0]
        
        # Extract text with positions
        text_elements = page.extract_text_full() # or extract_words()
        words = page.extract_words()
        
        # Extract rectangles (appointments)
        rects = page.rects
        
        # For each rectangle, you can get:
        # rect['top'], rect['bottom'], rect['left'], rect['right']
        # rect['non_stroking_color'] (fill color)
        
        return words, rects

# Identifying 'blue' blocks
# Blue in RGB is often (0, 0, 1) or a similar variation.
# pdfplumber color formats can vary (RGB, CMYK, etc.)

Tips for Measuring Time

If the calendar has horizontal lines representing 15-minute intervals:

  1. Identify all horizontal lines (page.lines where y0 == y1).
  2. Sort them by vertical position (top).
  3. Calculate the height of a 15-minute block.
  4. Map rectangle top and bottom to specific times based on their position relative to the 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. 1mo ago First seen · 46 lines · 25 tokens per session scan A 8bf106b5bc0e

Subscribe to this mod's changes

pdf-calendar-extractor is a skill published in the GitHub repository cxcscmu/SkillLearnBench (91 stars, last pushed 18d ago), licensed MIT. It adds 25 tokens to every session and 357 once invoked, about $0.0001 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-09-03.