extract-text

extract-text is a skill for Claude Code, Codex from masa-san-jp/Agent-Aiko. It costs 159 tokens per session (1,917 once invoked), scanned A, original, MIT.

A fill-in template for recording a project's programming languages, packages, services, APIs, and development tools. It organizes these choices by areas such as the front end, back end, and data storage, with their purposes and documentation links.

In plain words
What is it for?
Use it to document what a project depends on, why each tool is used, how to install it, which versions are expected, and where its code or documentation belongs.
Why use it?
It prevents important technology choices and setup notes from being scattered across a project. It also gives developers a shared reference when dependencies change or new people join.

Skill for Claude CodeCodex

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

Good fit Use it to document what a project depends on, why each tool is used, how to install it, which versions are expected, and where its code or documentation belongs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/extract-text
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 masa-san-jp/Agent-Aiko --skill extract-text
Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko

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 extract-text

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/extract-text/github.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/extract-text)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/extract-text"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/extract-text/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 extract-text

Your own site · 80×15
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/extract-text"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/extract-text.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,917 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.00159 $0.01917
Opus 5 $0.00079 $0.00958
Sonnet 5 $0.00032 $0.00383
Haiku 4.5 $0.00016 $0.00192

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

Security

Grade A, and why

extract-text 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 9d 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.

reference/skills/extract-text/SKILL.md · 109 lines

How it starts

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

/extract-text

PDF と Google Workspace ファイルからテキストを抜き出す統合エントリ。入力の種類を判定し、専用ツールへ振り分ける。実装本体は持たず、pdf-extractgws-read をオーケストレーションするだけの薄いラッパー。

ツール群は {{ORG_REPO_PATH}}/Agent-team/tools/ 配下に配置する前提。環境に合わせてパスは読み替える。

入力 振り分け先
ローカル PDF / Drive 上の PDF(application/pdf {{ORG_REPO_PATH}}/Agent-team/tools/pdf-extract/
Google ドキュメント / スプレッドシート / スライド(ネイティブ Google 形式) {{ORG_REPO_PATH}}/Agent-team/tools/gws-read/(Slides は gslides-read

引数

引数 必須 意味
<input> ローカルパス、Drive の ID または URL
-o <path> × 出力先ファイル。省略時は標準出力
--pages <範囲> × PDF のページ指定(例:1-5,8
--page-markers × PDF のページ境界マーカーを付与

入力の判定手順

  1. 入力がローカルに存在するパスか? → ローカルファイル
    • 拡張子 .pdfpdf-extract--local で渡す
    • それ以外のローカルファイル(.docx 等)は対象外。別ツールを案内する
  2. 入力が Drive の ID / URL か? → Drive ファイル
    • URL に /document/ /spreadsheets/ /presentation/ が含まれる → それぞれ Docs / Sheets / Slides。gws-read(Slides はノート必要なら gslides-read)へ
    • 上記が判別できない(生 ID や /file/d/ の汎用 URL)→ まず pdf-extract に渡す。中で mimeType を確認し、PDF でなければ終了コード 4 で gws-read へ誘導されるので、その案内に従って gws-read を実行する

迷ったら pdf-extract を先に叩いてよい。PDF 以外の Google ファイルは自動で gws-read へ誘導される。

実行手順

setup(初回のみ)

bash {{ORG_REPO_PATH}}/Agent-team/tools/pdf-extract/setup.sh
bash {{ORG_REPO_PATH}}/Agent-team/tools/gws-read/setup.sh   # Google ファイルを扱う場合

ローカル PDF だけなら認証不要。Drive 上のファイルを扱う場合は ADC(Application Default Credentials)が必要:

bash {{ORG_REPO_PATH}}/Agent-team/tools/pdf-extract/auth.sh   # drive.readonly

PDF(ローカル / Drive)

{{ORG_REPO_PATH}}/Agent-team/tools/pdf-extract/pdf_extract.py /path/to/file.pdf
{{ORG_REPO_PATH}}/Agent-team/tools/pdf-extract/pdf_extract.py <drive-id-or-url>
{{ORG_REPO_PATH}}/Agent-team/tools/pdf-extract/pdf_extract.py <input> -o out.txt
{{ORG_REPO_PATH}}/Agent-team/tools/pdf-extract/pdf_extract.py <input> --pages 1-5,8
{{ORG_REPO_PATH}}/Agent-team/tools/pdf-extract/pdf_extract.py <input> --page-markers

Read the full file on GitHub · 109 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. 9d ago First seen · 109 lines · 159 tokens per session scan A 58c20992abea

Subscribe to this mod's changes

extract-text is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 159 tokens to every session and 1,917 once invoked, about $0.0008 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-31.