light-file-reading

light-file-reading is a skill for Claude Code, Codex from Light0305/Light-skills. It costs 376 tokens per session (8,337 once invoked), scanned A, original, MIT.

A file-understanding guide for Word documents, PDFs, presentations, spreadsheets, CSVs, images, videos, code, and compressed files. It maps a file’s structure, important content, formatting rules, visual style, and possible follow-up uses.

In plain words
What is it for?
Use it when reviewing uploaded papers, templates, datasets, spreadsheets, presentations, images, code, archives, or reviewer comments. It supports tasks such as extracting document structure, profiling data, checking formatting requirements, and preparing the file for another task.
Why use it?
It helps an agent understand an existing file before acting on it, including where claims, tables, layout rules, or missing information appear. This avoids treating a complex file as plain text only.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 对标判据**唯一真相源** = [`docs/competitors/file-reading.md`](../../docs/competitors/file-reading.md)。.

Good fit Use it when reviewing uploaded papers, templates, datasets, spreadsheets, presentations, images, code, archives, or reviewer comments. It supports tasks such as extracting document structure, profiling data, checking formatting requirements, and preparing the file for another task.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Light0305/Light-skills
agentmods
npx agentmods add skills/light0305/light-skills/light-file-reading

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 light-file-reading

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/light0305/light-skills/light-file-reading"><img src="https://agentmods.dev/badge/skills/light0305/light-skills/light-file-reading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 376 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,337 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00376 $0.08337
Opus 5 $0.00188 $0.04168
Sonnet 5 $0.00075 $0.01667
Haiku 4.5 $0.00038 $0.00834

Measured 10d ago against content hash 3d5c61182a1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

light-file-reading 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 10d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/document_status.py, scripts/docx_read.py, scripts/extraction_benchmark.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.

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.

skills/light-file-reading/SKILL.md · 322 lines

How it starts

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

多格式文件深度理解(file-reading)—— 常驻横切

你是 Light 技能包的文件理解归属方:任何任务一旦涉及"用户给的文件 / 已有材料",你后台自动启用, 把它读懂再交给下游。头部同类已经能做结构抽取、论文深读或 claim↔evidence 分析,不能把它们统称为 "只会抽取"。Light 的可验证组合是:先分诊输入 → 只解析一次并先建结构地图 → 用页/节/表/单元格定位 claim 与证据 → 显式记录覆盖缺口 → 产五面理解笔记 + 下游动作映射,而不是文本堆叠。

一句话定位:把"读文件"升级成「先判宿主能否原生读 → 输入分诊 → 结构地图先行 → 带定位与覆盖记录的五面笔记 → 映射到下游技能动作」;把"确定性脏活"(抽版面文本 / 表→DataFrame / 读模板格式约束 / 数据画像)自己干净利落做掉。它是横切 overlay,不是 DAG 节点(orchestrator-spec §3.1),是大量主线技能 的前置基础。它产读取覆盖状态、固定 fixture 抽取质量证据与"能否宣称读懂"的状态机报告,document_status 复用共享状态契约; 不产 findings(读取状态/benchmark 不是 light.findings.v1),也不冒充 C1/C2 内容门。 对标判据唯一真相源 = docs/competitors/file-reading.md


何时启动(触发信号)

常驻后台:任何任务里出现"已有文件 / 用户上传的材料 / 让你看一份东西",自动启用、无需显式调用

硬触发点(必须先读懂再动手,不是扫一眼就开干):命中任一,在执行下游动作先产理解笔记:

硬触发点 为什么 动作
用户给论文 / 让你"看看这篇" 不抓 claim↔证据结构就提不出好评/好 idea 抽章节骨架 + 论证链 + 最像的前作信号 → 喂 literature-search / idea-critique
用户给模板 / 投稿要求 / 格式规范 模板的价值是硬约束(页数/字体/章节/引用风格),不是内容 docx_read layout/runs 抽页边距/字号/编号 → 喂 paper-writing / typesetting
用户给数据集 / Excel / CSV 先判规模/质量/明显红旗,免得下游在烂数据上白干 xlsx_read profile 出 shape/dtypes/describe → 规模质量初判 → 喂 data-engineering 做深度泄漏查
用户给审稿意见 / 修订稿 必须分清"必改 vs 可商榷",不能一锅端 pandoc --track-changes=all 读修订/批注(保作者+时间)→ 分级 → 喂 review-rebuttal
用户给 PPT / 截图 / 设计稿 视觉风格要"真看一眼",纯文本盲读丢版式 markitdown 抽文本 + 渲染成图喂宿主多模态 Read 看版式/配色 → 喂 frontend-design / figure
用户给压缩包 / 代码库 结构、依赖、可复用模块比单文件更重要 解包递归按类型处理;代码读结构/依赖/逻辑 → 喂对应技能

if 用户说"这个文件讲了啥 / 帮我看看这份 / 按这个模板写 / 这些数据能做什么 / 回应一下审稿意见" then 先按"决策第一步"判怎么读;PDF 先 triage,长文档先建结构地图;再产带定位与覆盖记录的理解笔记并映射下游, 不把"我大概扫了一下"当读懂


决策第一步:先问宿主能不能原生读(省依赖,别为脚本而脚本)

Claude Code 等宿主的 Read 工具能直接读 PDF / 图片 / Jupyter notebook。 能原生读就别先写 pdfplumber 绕远路。

你要什么 怎么读
① 轻任务"看懂内容"(讲了啥 / 提要点 / 读图表) 宿主原生 Read 直喂,零依赖最快 "这篇 PDF 讲了什么" → 直接 Read,别上脚本
② 结构化抽取(表→DataFrame / 批量 / 改 XML/redline / 扫描 OCR / 公式不求值) 才上专用脚本/库 "把这 PDF 里 12 张表抽成 CSV" → pdf_ops extract-tables + verify-tables
③ 宿主读不了的格式(PPTX / Excel / 视频 / 压缩包) 按下面"按格式选工具" "这个 pptx 什么风格" → markitdown 抽文 + 渲染图

Read the full file on GitHub · 322 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. 10d ago First seen · 322 lines · 376 tokens per session scan A 3d5c61182a1d

Subscribe to this mod's changes

light-file-reading is a skill published in the GitHub repository Light0305/Light-skills (617 stars, last pushed 2mo ago), licensed MIT. It adds 376 tokens to every session and 8,337 once invoked, about $0.0019 per session on Opus 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.