Agent skill

Sparse Reading

by Zedong-Liu in Zedong-Liu/SparseReading

Use SparseRead for long documents, PDFs, and compact multi-file evidence closures without disrupting small native reads.

MITAuto-check passedDocuments & Office

Install Sparse Reading

skills CLI
$ npx skills add Zedong-Liu/SparseReading --skill sparse-reading -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Zedong-Liu/SparseReading sparse-reading --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Zedong-Liu/SparseReading.git skills-src && mkdir -p .claude/skills && cp -r skills-src/integrations/openclaw/plugin/skills/sparse-reading .claude/skills/sparse-reading && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sparse-reading
GitHub stars
242
Token cost
~437 tokens
SKILL.md length
200 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Use SparseRead for long documents, PDFs, and compact multi-file evidence closures without disrupting small native reads.

  • Works in 5 steps: Call sro_preview(path) on a large file,… → Continue with sro_read({ artifact_id },… → If slot_digest.overall_status is ready… → …
  • Documents & Office work in your project
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Sparse Reading is an agent skill from Zedong-Liu/SparseReading. Use SparseRead for long documents, PDFs, and compact multi-file evidence closures without disrupting small native reads.

Its SKILL.md is about 440 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office. It works with Python and TypeScript. The repository describes itself as: SparseRead: token-efficient reading for AI agents. 读得更少,token 更省,证据不变。 Paper arXiv:2608.22237. The licence is MIT.

When your agent uses it

  • Documents & Office work in your project

Example prompts

  • “/sparse-reading”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Call sro_preview(path) on a large file, PDF/report, or compact evidence
  2. Continue with sro_read({ artifact_id }, mode, hint) only when targeted
  3. If slot_digest.overall_status is ready or next_action.allowed_next
  4. Native small reads are still allowed for setup files, templates, unsupported
  5. Use sro_raw(raw_ref) only when the original content is explicitly needed.

What it can do on your machine

Read from SKILL.md and the folder at commit 5c6fee5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sparse Reading loads about 437 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 200 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~437

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Zedong-Liu/SparseReading at commit 5c6fee5, republished under its MIT licence (© Zedong-Liu). 200 words, ~437 tokens.

Download SKILL.mdSave it as .claude/skills/sparse-reading/SKILL.md (or your agent's skills folder).
name
sparse-reading
description
Use SparseRead for long documents, PDFs, and compact multi-file evidence closures without disrupting small native reads.

Use this skill only when a tool result, sro_preview, or the task shape indicates SparseRead is useful. Keep ordinary native read, grep, and exec workflows for small files, small config/code/data tasks, exact full-table computation, and script-driven analysis.

SparseRead protocol:

  1. Call sro_preview(path) on a large file, PDF/report, or compact evidence directory before broad native reading. Use the preview directly when enough.
  2. Continue with sro_read({ artifact_id }, mode, hint) only when targeted evidence is needed. For multi-question documents and evidence closures, prefer mode: "collect" with explicit slots.
  3. If slot_digest.overall_status is ready or next_action.allowed_next allows writing, write the requested deliverable. Do not keep broad-reading or repeating sro_read after ready.
  4. Native small reads are still allowed for setup files, templates, unsupported objects, and named unresolved slots.
  5. Use sro_raw(raw_ref) only when the original content is explicitly needed. sro_card -> sro_read remains for compatibility and bench_protocol, not as the normal production path.

OpenClaw gate profiles:

  • native: do not push SparseRead.
  • advisory: SparseRead may help, but native tools stay available.
  • enforce: broad native read/search/exec-dump should use sro_preview first.

Command-security closures are advisory, not hard replacement. Use one sro_read(mode="collect"); once ready, write the report/JSON immediately. Read small templates or named unresolved files natively when needed.

© Zedong-Liu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in integrations/openclaw/plugin/skills/sparse-reading of Zedong-Liu/SparseReading.

Open the folder on GitHubat commit 5c6fee5

Compare with similar skills

Sparse Reading next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sparse Reading compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sparse Reading this skillZedong-Liu/SparseReading242—~437Automated safety check: PassMIT
PipesHub Excel Spreadsheet Builderpipeshub-ai/pipeshub-ai3.8k—~1.8kAutomated safety check: PassApache-2.0
PDF Generation, Forms and Extractionpipeshub-ai/pipeshub-ai3.8k—~2.9kAutomated safety check: PassApache-2.0
Live Previewvicoa-ai/vicoa499—~755Automated safety check: NotesAGPL-3.0
Word Document Creation And Editingpipeshub-ai/pipeshub-ai3.8k—~1.3kAutomated safety check: PassApache-2.0
Analyze Branchingdealfluence/adeu166—~290Automated safety check: PassMIT

Similar skills

  • PipesHub Excel Spreadsheet Builder

    pipeshub-ai/pipeshub-ai

    Creates and edits .xlsx workbooks with real Excel formulas rather than hardcoded computed values, defaulting to exceljs in TypeScript with a static formula-safety check.

    3.8k GitHub stars~1.8k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Picks the right library for generating a new PDF, filling an existing PDF form, or extracting text and tables, defaulting to Node where possible.

    3.8k GitHub stars~2.9k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Live Preview

    vicoa-ai/vicoa

    Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown.

    499 GitHub stars~755 tokensUpdated yesterday
    Documents & OfficeAuto-check: notes
  • Word Document Creation And Editing

    pipeshub-ai/pipeshub-ai

    Routes a Word document request to the right approach: a TypeScript library for new files, XML editing for existing ones, and plain reading only.

    3.8k GitHub stars~1.3k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Analyze Branching

    dealfluence/adeu

    Formally analyzes control-flow branchings, cyclomatic complexity, nesting depths, and branch redundancies across Python and TypeScript engine files.

    166 GitHub stars~290 tokensUpdated 4 days ago
    Documents & OfficeAuto-check passed
  • React PDF

    trailofbits/skills-curated

    Official

    Generates PDF documents using the React-PDF library (@react-pdf/renderer) with TypeScript and JSX.

    513 GitHub stars~3.1k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check: notes

More from Zedong-Liu/SparseReading

  • Sparse Reading

    Zedong-Liu/SparseReading

    Use SparseRead tools to inspect large, structured, or multi-file project inputs with targeted evidence.

    242 GitHub stars~278 tokensUpdated 11 days ago
    Auto-check passed

Questions about Sparse Reading

What does Sparse Reading do?

Use SparseRead for long documents, PDFs, and compact multi-file evidence closures without disrupting small native reads. Sparse Reading is an agent skill from Zedong-Liu/SparseReading. Use SparseRead for long documents, PDFs, and compact multi-file evidence closures without disrupting small native reads.

When should I use Sparse Reading?

Sparse Reading fits situations like: documents & Office work in your project.

How do I install Sparse Reading in Claude Code?

Run `npx skills add Zedong-Liu/SparseReading --skill sparse-reading -a claude-code`. Or copy the skill folder (integrations/openclaw/plugin/skills/sparse-reading in Zedong-Liu/SparseReading) into .claude/skills/sparse-reading in your project. Claude Code loads it when a task matches its description.

How do I install Sparse Reading in Codex?

Run `npx skills add Zedong-Liu/SparseReading --skill sparse-reading -a codex`. Or copy the skill folder (integrations/openclaw/plugin/skills/sparse-reading in Zedong-Liu/SparseReading) into .agents/skills/sparse-reading in your project. Codex loads it when a task matches its description.

Can I use Sparse Reading in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Zedong-Liu/SparseReading --skill sparse-reading -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sparse-reading, .gemini/skills/sparse-reading, .github/skills/sparse-reading and .opencode/skills/sparse-reading in your project.

What does Sparse Reading need to run?

SKILL.md names no scripts, command-line tools or credentials: Sparse Reading is instructions for the agent only.

Does Sparse Reading access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sparse Reading safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sparse Reading use?

Sparse Reading is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sparse Reading use?

About 437 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sparse Reading?

Skills that share tags, products or a category with Sparse Reading: PipesHub Excel Spreadsheet Builder (pipeshub-ai/pipeshub-ai, 3.8k stars), PDF Generation, Forms and Extraction (pipeshub-ai/pipeshub-ai, 3.8k stars), Live Preview (vicoa-ai/vicoa, 499 stars) and Word Document Creation And Editing (pipeshub-ai/pipeshub-ai, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sparse Reading?

Zedong-Liu (a GitHub user) maintains it in Zedong-Liu/SparseReading, which has 242 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 28, 2026.

Source: Zedong-Liu/SparseReading on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.