edgequake: Skill for Claude Code

.github/skills/pdf-markdown-validator/SKILL.md

pdf-markdown-validator is a skill for Claude Code, Codex from raphaelmansuy/edgequake. It costs 41 tokens per session (4,922 once invoked), scanned B, original, Apache-2.0.

A quality checker for converting PDF files into Markdown, a plain-text format commonly used for documentation. It measures whether tables, headings, bold text, and italic text survive the conversion accurately.

In plain words
What is it for?
Testing PDF extraction, comparing converters, tracking quality changes, enforcing quality checks in CI/CD pipelines, producing reports, finding recurring errors, and measuring processing performance.
Why use it?
It reveals when a PDF conversion looks complete but has lost important structure or formatting. Standard scores make it easier to compare conversion methods and detect regressions.

Skill for Claude CodeCodex

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

This is raphaelmansuy/edgequake's own configuration. It tells Claude Code and Codex how to work on edgequake itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything edgequake configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is python3 ../../.github/skills/pdf-markdown-validator/scripts/validate.py \.

About the project

EdgeQuake is a Rust framework that turns documents into knowledge graphs for GraphRAG, a retrieval-and-generation approach that uses linked facts to help language models find relevant information. It is used to build applications that search and generate answers from document collections.

raphaelmansuy/edgequake · 2,281 stars · on GitHub · edgequake.com

Reuse

Borrowing it

Nothing to install: this file belongs to raphaelmansuy/edgequake. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/.github/skills/pdf-markdown-validator/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/raphaelmansuy/edgequake

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-markdown-validator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/raphaelmansuy/edgequake/pdf-markdown-validator"><img src="https://agentmods.dev/badge/skills/raphaelmansuy/edgequake/pdf-markdown-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,922 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 572
    Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
    Fix: Limit tool chaining depth and validate the output of each tool before passing it to the next. Require explicit user approval for multi-step chains.
  • medium Privilege Escalation · line 573
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
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.00041 $0.04922
Opus 5.5 $0.00016 $0.01969
Sonnet 5.5 $0.00008 $0.00984
Haiku 4.5 $0.00004 $0.00492

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

Security

Grade B, and why

pdf-markdown-validator scanned grade B 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 1mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/analyze_failures.py, scripts/batch_drift.py, scripts/compare_runs.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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install -y pandoc
.github/skills/pdf-markdown-validator/SKILL.md · 725 lines

How it starts

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

PDF → Markdown Validator Skill

Validate PDF to Markdown conversion quality using a comprehensive, multi-dimensional evaluation framework. This skill provides standardized metrics, evaluation harnesses, and reporting tools to assess conversion fidelity across table accuracy, style preservation, robustness, and performance.

When to use

Use this skill when you need to:

  • Validate PDF extraction quality: Measure how accurately PDFs convert to Markdown
  • Compare conversion approaches: Benchmark different PDF processing implementations
  • Track quality improvements: Quantify gains from processing enhancements
  • Automate quality gates: Enforce minimum quality standards in CI/CD pipelines
  • Generate evaluation reports: Create detailed analysis of conversion successes and failures
  • Identify failure patterns: Discover systematic issues in specific PDF features
  • Measure performance regressions: Track processing speed alongside quality metrics

Core concepts

Validation Framework

The validation framework computes a composite quality score (0–100) combining four independent metric dimensions:

FinalScore = (0.40 × TableAccuracy) + (0.40 × StyleAccuracy)
           + (0.10 × Robustness) + (0.10 × Performance)

Each dimension is independent and can be evaluated separately or together.

1. Table Accuracy (40% weight)

Measures how accurately tables are detected and their cell content extracted.

Components:

  • Table Detection F1: IoU-based matching of predicted vs. gold tables (IoU ≥ 0.5 threshold)

    • Precision: correctly identified tables / all detected tables
    • Recall: correctly identified tables / all gold tables
    • F1: harmonic mean of precision and recall
  • Cell Content Accuracy: Token-level F1 averaging across matched table cells

    • Matches cells by position within detected tables
    • Unmatched cells score 0.0
    • Aggregates to mean F1 across all cells

Formula:

TableAccuracy = (0.5 × TableDetectionF1) + (0.5 × CellContentAccuracy)

Read the full file on GitHub · 725 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 · 725 lines · 41 tokens per session scan B 0d235945095e

Subscribe to this mod's changes

pdf-markdown-validator is a skill published in the GitHub repository raphaelmansuy/edgequake (2,281 stars, last pushed yesterday), licensed Apache-2.0. It adds 41 tokens to every session and 4,922 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

graphify

Use for any question about a codebase, its architecture, file relationships, or project content — especially when graphify-out/ exists, where the question should be treated as a graphify query first. Turns any input (code, docs, papers, images, videos) into a persistent knowledge graph with god nodes, community…

Graphify-Labs/graphify · 76 tokens

potpie-source-ingestion

Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR, issue, ticket, runbook, incident report, document, or web link into Potpie. The harness performs todo-driven discovery, uses local/GitHub/integration tools and read-only subagents when available, builds evidence-backed…

potpie-ai/potpie · 111 tokens

potpie-resource-markdown

Use when the user asks to ingest a markdown or HTML document — an exported doc, wiki or Confluence page, web page, runbook, spec, or RFC — into Potpie so agents can search and cite it. Teaches the extraction-script flow: split on the heading tree into sections and 4k-char chunks, import with potpie resource import…

potpie-ai/potpie · 106 tokens

potpie-resource-pdf

Use when the user asks to ingest a PDF (report, contract, paper, manual, slide export) into Potpie so agents can search and cite it. Teaches the extraction-script flow: resolve the document's identity, split on the PDF's own structure into sections and 4k-char chunks, import with potpie resource import, write…

potpie-ai/potpie · 101 tokens

potpie-resource-spreadsheet

Use when the user asks to ingest a spreadsheet or CSV (cost report, inventory, tracker, export) into Potpie so agents can search and cite it. Teaches the extraction-script flow: one section per sheet, header-repeated row chunks, potpie resource import, summaries that carry the key figures, and — critically — deriving…

potpie-ai/potpie · 106 tokens

ingest

Ingest a file or URL into the memory graph. Handles local files (text, PDF, DOCX, XLSX, images, etc.) and URLs (web pages, YouTube, Wikipedia, RSS). Use when the user wants to add any document or web content to their knowledge graph.

stevepridemore/graph-memory · 62 tokens