agentleFS
RylaispiritRylaispirit/rylai-codex-hermes-skills/skills/pdf/SKILL.md

pdf

Skill59 starsChanged 4 months agoMITView on GitHub

Create, inspect, extract, merge, split, rotate, and render PDF files with local open-source tools, including structural and visual verification.

  • Installs packages

197 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context7-efficient, file-reading and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hfzarslanSkill

    context7-efficient

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.

    Also in 5 projects that use this

  • SeifBenayedSkill

    file-reading

    Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.

    Also in 6 projects that use this

  • SeifBenayedSkill

    pdf-reading

    Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.

    Also in 6 projects that use this

  • yf8578Skill

    market-research-reports

    Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.

    Also in 7 projects that use this

  • OpenAISkill

    migrate-to-codex

    Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.

    Also in 4 projects that use this

  • jjyaoaoSkill

    gift-evaluator

    The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 186 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use local files and deterministic tools.

    line 20
  2. Very specific:

    Run info before editing an unfamiliar or encrypted PDF.

    line 51
  3. Very specific:

    Write to a new output path.

    line 52
  4. Very specific:

    Add --password only when the user supplied the password for that document.

    line 98
  5. Distinctive:

    No source file, temporary file, password, or user path is bundled with the skill.

    line 106

“Common” is measured: kept by at least 6 in 10 of the 186 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Rylai PDF

Original Codex-Hermes-Claude skill by Rylai.

Use local files and deterministic tools. Preserve the source document unless the user explicitly requests an in-place replacement. Never invent passwords, embed credentials, or upload documents to an external service without direct approval.

Runtime

Use Python 3 with:

  • pypdf for page-level inspection and editing.
  • pdfplumber when higher-quality text extraction is useful.
  • pypdfium2 or Poppler pdftoppm for optional page rendering.
  • LibreOffice only when converting an Office source into PDF.

Probe before installing:

python -c "import pypdf; print(pypdf.__version__)"
python -c "import pdfplumber; print(pdfplumber.__version__)"

Install only missing Python packages:

python -m pip install pypdf pdfplumber pypdfium2

Resolve scripts/rylai_pdf.py relative to this skill directory.

Workflow

  1. Confirm the input path, requested operation, output path, and page range.
  2. Run info before editing an unfamiliar or encrypted PDF.
  3. Write to a new output path. Use --force only when replacement is intended.
  4. Re-open the result and check page count, metadata, and extracted text where applicable.
  5. For layout-sensitive work, render representative pages and inspect the PNG output.
  6. Report skipped checks when Poppler, LibreOffice, OCR, or another optional dependency is absent.

For scanned pages with no useful text layer, use an available local OCR engine. Keep the original PDF and state which OCR tool and language model were used.

Bundled CLI

Inspect:

python scripts/rylai_pdf.py info input.pdf

Extract selected pages:

python scripts/rylai_pdf.py extract input.pdf output.txt --pages 1-3,7

Merge:

python scripts/rylai_pdf.py merge output.pdf first.pdf second.pdf

Split selected pages into individual files:

python scripts/rylai_pdf.py split input.pdf output-pages --pages 2-5

Rotate selected pages clockwise:

python scripts/rylai_pdf.py rotate input.pdf rotated.pdf 90 --pages 1,3

Render with local PDFium or Poppler:

python scripts/rylai_pdf.py render input.pdf rendered-pages --dpi 144

Add --password only when the user supplied the password for that document.

Quality Bar

  • The output opens without repair warnings.
  • Page order, count, rotation, and selected ranges match the request.
  • Extracted text is not silently empty; scanned pages are identified.
  • Rendered pages have no unexpected clipping or blank output.
  • No source file, temporary file, password, or user path is bundled with the skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.