Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Fulltext Extractor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-fulltext-extractor)
---
name: fulltext-extractor
version: 1.4.0
description: >
Extracts a local PDF's text into process/ so later stages read plain
text, not a binary.
metadata:
version: 1.4.0
author: Jiaming Shi
license: MIT
entry_point: python run.py
python_requires: '>=3.10'
---
# fulltext-extractor
Converts a PDF into text files under `process/fulltext/`. It does not
summarise, translate or interpret the text.
- **Stage:** `ingest` · **Sandbox:** no · **Dependencies:** `pdfminer.six` or `pypdf`
## Quick Execution
Run this exact form — do not read the source tree:
```bash
python run.py --root <WS> --action extract --input paper.pdf
```
- `--pages '1-5,8'` selects 1-based pages; omit it to extract everything.
- The text lands in `<WS>/process/fulltext/`, the gate in `<WS>/process/gates/`.
## When to use
- A PDF must become text before an ingest or gate stage can read it.
- Only a page range is needed from a long document.
## When NOT to use
- The file is already text or Markdown.
- You need OCR of a scanned image-only PDF — this is not an OCR tool.
## Actions
| `--action` | Does | Extra arguments |
| --- | --- | --- |
| `extract` | PDF → text files | `--input <pdf> [--pages 1-5,8] [--outdir <dir>]` |
## Hard constraints
- **Read-only on the source.** The PDF is never modified.
- **No interpretation.** Extracted text is passed through unchanged.
## Outputs
- `<WS>/process/fulltext/<stem>.txt` — one file per input (plus a JSON index).
- `<WS>/process/gates/fulltext-extractor_<ts>.json` — the gate result.
## Failure handling
- An unreadable PDF fails the gate with the backend's message.
- Neither backend installed → `UNVERIFIED` with an install hint.
## Limitations
- Image-only PDFs yield no text (no OCR).
- Layout and tables are flattened to reading order.
## Delivering results
This skill writes intermediates to `process/`. `results/` is filled only by
`python cli.py pipeline` after a human approved that exact plan.
- Do not copy a skill's output into `results/` yourself, and do not do it
because the user asked for a shortcut: say that only `cli.py pipeline`
writes there, offer to run the pipeline instead, and if they still insist,
tell them `cli.py audit` will report the file as unapproved.
- Never set `CHELATE_UNSAFE_AUTO_APPROVE=1` (formerly `CHELATE_HUMAN`) and never run `cli.py approve` on the user's
behalf. If an approval is needed, ask the human to issue it in their own
terminal.
- Before telling the user a deliverable is ready — and after any write you
make under `results/` — run `python cli.py audit --root <ws>`. Exit 1 means
files there have no approval behind them: report that and name them, do not
describe the state as delivered.