agentleFS
CodesWhatCodesWhat/careerrat/.agents/skills/intake-extract/SKILL.md

intake-extract

Skill4 starsChanged 10 days agoMITView on GitHub

Read a dropped PDF or image file from a Universal Intake upload and transcribe its full legible text verbatim — no summarizing, no classifying, no résumé/candidate-specific assumptions. Backend-only: invoked by the embedded runtime for POST /api/intake/upload's PDF/image branch, never chat-routed or run conversationally.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the file at the exact path given — nothing else: Do not Glob, Grep, or Read any other file.

    line 41
  2. Distinctive:

    Read any other file; you don't have those tools anyway, but don't try.

    line 42
  3. Very specific:

    Do not classify the document, extract structured fields, or guess what kind of content this is — that is a separate downstream step …

    line 47
  4. Distinctive:

    If the input includes a note saying your previous reply didn't parse or failed schema validation, it means the caller (the server route) …

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

intake-extract

Runs under AGENTS.md. The contract that actually binds here is the Honesty Firewall: never fabricate text the source document doesn't contain. Most other AGENTS.md contracts (Tracker Write Contract, Activity Pulse, Gate Write-back) don't apply — this skill never writes to workspace/tracker.json or activity.jsonl; it only reads one file and replies with text. (Bare workspace/ paths are symbolic; see AGENTS.md's Path Resolution rule.)

Boundary — when this runs

This skill is never invoked conversationally and has no Intent Routing entry — a user never asks for it by name. It exists solely as the backend of one Universal Intake upload branch, src/cli/intake-route.mjs's POST /api/intake/upload handler, running it exactly once per PDF/image upload, headlessly, over the embedded one-shot runtime (src/core/ai/skill-runtime.mjs's runSkillStream), with the tool surface restricted to Read only — no Bash, Write, Edit, or WebFetch.

The uploaded file could be anything a candidate drops into intake — a job description, a recruiter's screenshot, an offer letter, a scanned form — never assume it's a résumé. .txt/.md uploads decode locally without this skill; .docx uploads extract via mammoth without this skill; .eml uploads parse deterministically without this skill. This skill only ever runs for .pdf/.png/.jpg/.jpeg/.webp uploads, and only when an AI route is configured — the route itself skips straight to a manual-review outcome when no AI route is available, so this skill is never invoked with nothing to call.

The one job

You will be given the path to exactly one file, and possibly, on a retry, a corrective note describing why your previous reply didn't parse. In either case:

  1. Read the file at the exact path given — nothing else. Do not Glob, Grep, or Read any other file; you don't have those tools anyway, but don't try.
  2. Transcribe all legible text, verbatim, in reading order — headings, paragraphs, lists, tables, signatures, footers. Do not summarize, rewrite, omit sections, or add facts. If part of the document is illegible, transcribe the legible parts only; never invent missing content.
  3. Do not classify the document, extract structured fields, or guess what kind of content this is — that is a separate downstream step (src/core/intake/classify.mjs). Your only output is the transcribed text.
  4. Multi-page PDFs are read up to 20 pages at once. If the document is truncated (e.g. a combined multi-document dump), transcribe what's visible and don't fabricate the rest.
  5. Reply with exactly one fenced ```json code block and nothing else outside it — no preamble, no explanation, no markdown headers before or after.

Output schema

The fenced block must be a single JSON object matching config/intake-extract.schema.json:

{"full_text": "Subject: Following up on the Staff Engineer role\n\nHi Jordan, just checking in on next steps for the Applied AI Engineer position..."}
  • full_text — the best complete plain-text transcription of the file. This is the only PDF/image → text path the caller has, so it must always be a real, complete transcription — never blank.

On a corrective retry

If the input includes a note saying your previous reply didn't parse or failed schema validation, it means the caller (the server route) tried to parse your last reply and couldn't. Re-read the same file (the path is repeated in the retry instruction) and reply again with ONLY the fenced ```json block — no prose before or after it this time, even if you narrated your reasoning last time.

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.