read-file

read-file is a skill for Claude Code, Codex from manishiitg/coding-agent-loop. It costs 54 tokens per session (1,473 once invoked), scanned A, original, MIT.

A file-reading tool that gets the written or visible content out of PDFs, documents, spreadsheets, images, scans, and compressed folders.

In plain words
What is it for?
Use it when another task needs to understand what is inside an uploaded or downloaded file.
Why use it?
It removes the need to open different file types manually or copy their contents by hand.

Skill for Claude CodeCodex

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

Good fit Use it when another task needs to understand what is inside an uploaded or downloaded file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/manishiitg/coding-agent-loop/read-file
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 manishiitg/coding-agent-loop --skill read-file
Clone the repo
git clone --depth 1 https://github.com/manishiitg/coding-agent-loop

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 read-file

README.md
[![agentmods](https://agentmods.dev/badge/skills/manishiitg/coding-agent-loop/read-file/github.svg)](https://agentmods.dev/skills/manishiitg/coding-agent-loop/read-file)
Your own site
<a href="https://agentmods.dev/skills/manishiitg/coding-agent-loop/read-file"><img src="https://agentmods.dev/badge/skills/manishiitg/coding-agent-loop/read-file/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 read-file

Your own site · 80×15
<a href="https://agentmods.dev/skills/manishiitg/coding-agent-loop/read-file"><img src="https://agentmods.dev/badge/skills/manishiitg/coding-agent-loop/read-file.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,473 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.00054 $0.01473
Opus 5.5 $0.00022 $0.00589
Sonnet 5.5 $0.00011 $0.00295
Haiku 4.5 $0.00005 $0.00147

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

Security

Grade A, and why

read-file 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 2mo ago.

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.

agent_go/internal/sparkquillproduct/skills/read-file/SKILL.md · 66 lines

How it starts

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

Read any file

There is no dedicated document-reading tool — you extract the content yourself with the shell (the same approach AgentWorks uses: write a little Python and run it via execute_shell_command). Always start by identifying the file, then use the tool that is already installed for that format. Do NOT reach for a tool that isn't there (e.g. pdftotext/poppler and libreoffice/soffice are NOT installed on this machine — don't use them).

file "<path>"        # what is it, really? (extension can lie)

By format

  • Plain text / Markdown / CSV / JSON / code — just cat "<path>" (or head/jq for large/structured files).

  • PDF (digital, has a real text layer) — use pypdf (already installed), the canonical fast path:

    python3 -c "import sys,pypdf; r=pypdf.PdfReader(sys.argv[1]); print('\n\n'.join((p.extract_text() or '') for p in r.pages))" "<path>"
    
  • PDF (scanned / image-only), garbled or empty pypdf output, OR any complex layout (tables, multi-column, mixed text + figures) — parse it locally with liteparse (LlamaIndex's local parser — this app's OCR/parse path). Install on demand if missing, then run in local mode so nothing leaves the machine:

    pip3 install --break-system-packages liteparse   # or: uv pip install liteparse
    

    liteparse handles scanned pages, OCR, tables, and layout far better than plain extraction. For a single scanned page you may instead call the read_image tool (vision — great for handwriting/diagrams). liteparse and read_image do different jobs; use whichever fits, or both. Keep OCR/parse LOCAL — never send a file to a hosted API.

  • Word (.docx) — pandoc "<path>" -t plain (pandoc is installed), or:

    python3 -c "import sys,docx; print('\n'.join(p.text for p in docx.Document(sys.argv[1]).paragraphs))" "<path>"
    

    (python-docx is installed.)

  • PowerPoint (.pptx) — pandoc "<path>" -t plain (pandoc supports pptx input). For per-slide structure: unzip -p "<path>" 'ppt/slides/*.xml' and read the text out of the XML. For slides that are mostly images/diagrams, fall back to liteparse or read_image.

Read the full file on GitHub · 66 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. 2mo ago Changed · +11 lines 6c5586ba25d8
  2. 3mo ago First seen · 55 lines · 54 tokens per session scan A c525b8dd7531

Subscribe to this mod's changes

read-file is a skill published in the GitHub repository manishiitg/coding-agent-loop (13 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 1,473 once invoked, about $0.0002 per session on Opus 5.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-30.

Related

read-file compared with skills from other repositories

read-file next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
read-filemanishiitg/coding-agent-loopSkill132mo agoMITA54Claude Code, Codex
pdfcraftBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA92Claude Code, Codex
craft-data-visualBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA71Claude Code, Codex
browserBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA95Claude Code
deck3d-from-pptxBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA100Claude Code, Codex
craft-deckBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA90Claude Code, Codex
deckcraftBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA83Claude Code, Codex