Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

read-source阅读源代码

Agent Skill

read-source 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

552

周安装

23

GitHub Stars

17

下载量

184
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:read-source(阅读源代码)
来源仓库:https://github.com/witanlabs/witan-cli
仓库路径:skills/read-source
安装命令:
npx skills add https://github.com/witanlabs/witan-cli --skill read-source
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/witanlabs/witan-cli --skill read-source

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速整理项目状态与协作事项。

  • 支持提取关键变更、生成摘要和关联任务,提升协作效率。
  • 通过 npx skills add 命令从指定仓库安装,需确认本地环境是否支持 GitHub 技能加载。
  • 使用前建议确认权限范围和仓库维护状态,避免触发不必要的网络或文件操作。
  • 涉及敏感信息时应注意隐私保护,仅处理授权范围内的数据。

SKILL.md

When to Use

Use witan read to convert source documents into LLM-ready text. This is for source material — PDFs, Word docs, presentations, HTML pages, and Markdown files that contain data you need to extract.

  • PDF → plain text
  • Word (.doc,.docx) → markdown
  • PowerPoint (.ppt,.pptx) → markdown
  • HTML → markdown
  • Markdown (.md) → outline support via --outline

This is not for reading spreadsheet data (.xlsx,.xls) — use spreadsheet-specific tools for that.

Setup

Files are cached server-side by content hash so repeated operations skip re-upload. If WITAN_STATELESS=1 is set (or --stateless is passed), files are processed but not stored.

The CLI automatically applies per-attempt request timeouts and retries transient API failures (408, 429, 500, 502, 503, 504, plus timeout/network errors). Non-retryable 4xx responses fail immediately.

Quick Reference

# Get document structure first
witan read report.pdf --outline
witan read slides.pptx --outline

# Read specific sections
witan read report.pdf --pages 1-5
witan read slides.pptx --slides 1-3
witan read notes.docx --offset 50 --limit 100

# Read from URLs
witan read https://example.com/report.pdf --outline
witan read https://example.com/data.csv

# JSON output for automation
witan read report.pdf --json
witan read report.pdf --outline --json

Exit Codes

CodeMeaning
0Success
1Error (bad arguments, network failure, unsupported format)

Navigation Strategy

Go directly with --pages, --slides, or --offset/--limit when you know where to look. Use --outline when you don't — it gives document structure to target the right section.

PDF workflow:

  1. witan read report.pdf --outline → see chapter/section structure with page ranges
  2. witan read report.pdf --pages 12-15 → read the section you need

PPTX workflow:

  1. witan read deck.pptx --outline → see slide titles
  2. witan read deck.pptx --slides 5-8 → read specific slides

Text/DOCX workflow:

  1. witan read notes.docx --outline → see heading structure with line offsets
  2. witan read notes.docx --offset 120 --limit 50 → read a section

Command Reference

witan read <file-or-url> [flags]
FlagDefaultDescription
--pagesPDF page range (e.g. 1-5, 1,3,5, 1-5,10-15)
--slidesPresentation slide range (e.g. 1-3)
--offset1Start line (1-indexed)
--limit2000Maximum lines to return
--outlinefalseShow document structure instead of content
--jsonfalseOutput full JSON response

Pagination Limits

ConstraintValue
Max PDF pages per read10
Max PPTX slides per read10
Default line limit2000
Max file size25 MB

Pipeline: Source → Spreadsheet

The typical flow for reading source material and populating a spreadsheet:

  1. Explorewitan read source.pdf --outline to understand structure
  2. Readwitan read source.pdf --pages 3-8 to get the data
  3. Parse — extract values from the text (LLM or regex)
  4. Writewitan xlsx exec model.xlsx --code 'return await xlsx.setCells(wb, [{address: "Inputs!B3", value: 123}])' to populate the spreadsheet

Output Format

Content mode (default): line-numbered text to stdout, metadata to stderr.

     1	Revenue Summary
     2
     3	Q1: $1,250,000
     4	Q2: $1,380,000
text/plain  [15 pages, 10 read, 847 lines total, showing 1–847]

Outline mode (--outline): indented structure to stdout.

Introduction  [pages 1-2]
  Background  [pages 1-1]
  Methodology  [pages 2-2]
Results  [pages 3-8]
  Financial Summary  [pages 3-5]
  Projections  [pages 6-8]
Appendix  [pages 9-15]
[15 pages]

Error Guide

ErrorFix
cannot access fileCheck file path exists and is readable
downloading URL: HTTP 4xx/5xxCheck the URL is accessible
payload_too_largeFile exceeds 25 MB limit
missing_content_typeSet Content-Type header (API only)
Empty outlineDocument has no bookmarks/headings; use offset/limit to navigate
Truncated textUse --pages, --slides, or increase --limit

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.11%
按下载量换算61

Claude

29.73%
按下载量换算55

Cursor

18.66%
按下载量换算34

Gemini CLI

9.29%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills