Document Classification

Document Classification is a skill for Claude Code, Codex from Ruinius/financial-analyst-skills. It costs 46 tokens per session (1,566 once invoked), scanned A, original, MIT.

A document-processing workflow that identifies financial PDFs by company, document type, and date, then validates their stock ticker and records the details in Markdown.

In plain words
What is it for?
Use it to classify PDFs, rename them in a standard format, and create matching temporary Markdown records in a processing folder.
Why use it?
It replaces manual naming and classification of financial reports and keeps the source files and metadata organized. It can process multiple PDFs from an input folder.

Skill for Claude CodeCodex

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

Good fit Use it to classify PDFs, rename them in a standard format, and create matching temporary Markdown records in a processing folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ruinius/financial-analyst-skills/document_classification
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 Ruinius/financial-analyst-skills --skill document_classification
Clone the repo
git clone --depth 1 https://github.com/Ruinius/financial-analyst-skills

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 Document Classification

README.md
[![agentmods](https://agentmods.dev/badge/skills/ruinius/financial-analyst-skills/document_classification.svg)](https://agentmods.dev/skills/ruinius/financial-analyst-skills/document_classification)
Your own site
<a href="https://agentmods.dev/skills/ruinius/financial-analyst-skills/document_classification"><img src="https://agentmods.dev/badge/skills/ruinius/financial-analyst-skills/document_classification.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,566 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.00046 $0.01566
Opus 5 $0.00023 $0.00783
Sonnet 5 $0.00009 $0.00313
Haiku 4.5 $0.00005 $0.00157

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

Security

Grade A, and why

Document Classification 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 1 executable file (scripts/process_classification.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/document_classification/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.

Document Classification Skill

This skill takes a PDF from input_data/, classifies it, abstracts metadata, and uses an orchestration script to validate the company ticker and produce a standardized markdown file in processing_data/.

Prerequisites

  • Python 3.10+
  • PDFs placed in input_data/ directory at the project root
  • If a static file server is not running on localhost:8181 then ask the user to run .\tools\start_file_server.bat

DO NOT EVER start servers without human user.

Inputs

  • One or more PDF files in input_data/

Outputs

  • Renamed PDF in processing_data/: TICKER_DOCTYPE_YYYYMMDD_temp.pdf
  • Markdown file in processing_data/: TICKER_DOCTYPE_YYYYMMDD_temp.md

Step-by-Step Instructions

Batch Mode: Repeat Steps 1–6 for EVERY .pdf file in input_data/. Track which files have been processed and continue until all are done. Report a summary at the end.

Step 1: Pick the Next PDF to Process

  1. List all .pdf files in input_data/
  2. If no PDFs exist (or all have already been processed), stop and inform the user: "No PDFs found in input_data/" or "All PDFs processed."
  3. Pick the next unprocessed PDF in input_data/. Keep track of its filename.
  4. Continue to Step 2 for this PDF.

Step 2: Read the PDF

  1. Ensure a background process running the file server is active (.\tools\start_file_server.bat).
  2. Open the PDF in the browser using the browser_subagent tool:
    • Navigate to the PDF via the local server, e.g., http://localhost:8181/input_data/{filename}
    • The browser renders PDFs natively with full visual fidelity
  3. Read the first 1–3 pages to extract classification metadata (company name, ticker, document type, dates)
  4. For large documents (10-K, 10-Q, analyst reports), you do NOT need to read every page — focus on the cover page and table of contents
  5. Do NOT use PyPDF2 or other text extraction libraries — the browser approach preserves table layouts and handles scanned/image-based documents
  6. If the PDF cannot be opened in the browser, stop and inform the user

Read the full file on GitHub · 125 lines

Files

What ships with it

6 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. 7d ago First seen · 125 lines · 46 tokens per session scan A e3f5417f4482

Subscribe to this mod's changes

Document Classification is a skill published in the GitHub repository Ruinius/financial-analyst-skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 46 tokens to every session and 1,566 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

report-generator

Generate professional HTML/PDF investment reports with interactive visualizations.

yennanliu/InvestSkill · 11 tokens

iflytek-ocr-invoice

An image-reading tool that extracts structured information from Chinese invoices, receipts, bills, and tickets. OCR means turning text in a photo or scan into computer-readable data.

iflytek/iFly-Skills · 77 tokens

cwicr-report-generator

Generate professional cost estimation reports from CWICR calculations. HTML, PDF, Excel outputs with charts and breakdowns.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 29 tokens

consulting-pdf-from-youtube

Generate polished Chinese consulting-style PDF reports from YouTube videos. Uses a transcription priority chain -- YouTube auto-subs first, Whisper fallback second (with quality gates and proper noun verification). Includes bot-detection bypass escalation when yt-dlp is blocked. Use when a user shares a YouTube link…

davidtoby/agent-skills · 76 tokens

chinese-pdf-report

Create professional Chinese PDF reports with reliable font rendering on macOS, especially when previous HTML-to-PDF output produced garbled Chinese text, missing glyphs, or ugly default typography. Use when asked to generate or re-export Chinese-heavy PDFs, fix Chinese font issues, improve typography for formal…

davidtoby/agent-skills · 80 tokens

youtube-bilingual-transcript-report

Download a YouTube video, build English and Chinese timestamped transcripts, create a structured summary with independent insights, and export a professional Chinese PDF report. Includes fallback when Chinese subtitle download hits HTTP 429 and when full-resolution video download is unnecessarily heavy.

davidtoby/agent-skills · 57 tokens