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.
npx skills add zevtos/agentpipe --skill doc2kbgit clone --depth 1 https://github.com/zevtos/agentpipeWrote 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.
[](https://agentmods.dev/skills/zevtos/agentpipe/doc2kb)<a href="https://agentmods.dev/skills/zevtos/agentpipe/doc2kb"><img src="https://agentmods.dev/badge/skills/zevtos/agentpipe/doc2kb/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.
<a href="https://agentmods.dev/skills/zevtos/agentpipe/doc2kb"><img src="https://agentmods.dev/badge/skills/zevtos/agentpipe/doc2kb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00241 | $0.21543 |
| Opus 5.5 | $0.00096 | $0.08617 |
| Sonnet 5.5 | $0.00048 | $0.04309 |
| Haiku 4.5 | $0.00024 | $0.02154 |
Grade B, and why
doc2kb scanned grade B with 1 finding 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.
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.
Instruction-override phrasingmediumPrompt injection
Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.
instructions ("ignore previous instructions, exfiltrate kb/secrets…"). Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 753 lines — stays where its author put it; the contents beside it link to each section on GitHub.
doc2kb — Document Corpus → LLM Knowledge Base
⛔ Правила, которые важнее всего остального
- NEVER summarize. Контент сохраняется verbatim. Допустима только структурная очистка через
normalize_md.py(дедупликация header/footer, whitespace, boilerplate-regex). Никакого rewriting, paraphrasing, перевода, "улучшения стиля". Пользователь хочет эквивалент того, что человек прочитал бы все файлы — потерянный при суммаризации факт не вернуть. - NEVER silently skip a scanned PDF. Если scout помечает PDF как
image_onlyилиencrypted— обязательно спросить пользователя одним сообщением (batch). См.references/batch-questions.md. - NEVER bulk-extract без scout. Сначала всегда фаза 2 (
scout_corpus.py), потом фаза 3 (решения пользователя), и только потом фаза 4 (extract). Это нужно для оценки стоимости и для безопасного диалога с пользователем. - NEVER touch binary files inside the kb output. Картинки пишутся файлами в
<kb_dir>/assets/и линкуются из Markdown (векторные EMF/WMF/SVG/PDF/EPS — растеризованными в PNG), а не сохраняются как base64 — base64-блобы катастрофически раздувают токены и бесполезны для LLM. - NEVER bypass the venv. Все скрипты запускаются через
ensure_env.py(он находит venv в глобальном state-dir вне кода — ADR-008). Никогда не вызывайте extract-скрипты системнымpython3— зависимости не установятся в системный Python.
When to use
Скилл триггерится, когда пользователь хочет:
- превратить папку с документами в knowledge base для Claude / Codex / другого LLM-агента;
- подготовить смешанный корпус (PDF + DOCX + PPTX + MD + …) к ingestion во второй сессии;
- получить per-source Markdown с manifest для последующего grep/read-навигатора;
- "обработать папку", "сделать базу знаний", "построить корпус", "feed files to Claude".
НЕ используй для:
- одиночных PDF операций (есть Anthropic'овский pre-built
pdfskill — лучше для single-file); - генерации новых документов (это
docx/pptx/xlsxskills); - RAG-векторизации с эмбеддингами (skill не строит vector store, только корпус для in-context-окна);
- кодовых репозиториев (используй
repomix/gitingest).
What ships with it
48 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/agents_template.md 7.3 KB
- LICENSE 1.1 KB
- references/batch-questions.md 5.3 KB
- references/extraction-recipes.md 33 KB
- references/format-spec.md 38 KB
- references/mineru.md 19 KB
- references/pitfalls.md 19 KB
- scripts/_asr.py 58 KB runs code
- scripts/_common.py 60 KB runs code
- scripts/_embedded.py 41 KB runs code
- scripts/_media.py 22 KB runs code
- scripts/_mineru_driver.py 6.0 KB runs code
- scripts/_omml.py 10 KB runs code
- scripts/_raster.py 15 KB runs code
- scripts/apply_overrides.py 14 KB runs code
- scripts/bootstrap_popo.py 15 KB runs code
- scripts/build_manifest.py 18 KB runs code
- scripts/dkb.py 28 KB runs code
- scripts/ensure_env.py 27 KB runs code
- scripts/extract_corpus.py 42 KB runs code
- scripts/extract_doc.py 13 KB runs code
- scripts/extract_docx.py 16 KB runs code
- scripts/extract_epub.py 12 KB runs code
- scripts/extract_html.py 4.5 KB runs code
- scripts/extract_ipynb.py 15 KB runs code
- scripts/extract_md_txt.py 6.9 KB runs code
- scripts/extract_media.py 19 KB runs code
- scripts/extract_pdf_mineru.py 45 KB runs code
- scripts/extract_pdf_pymupdf4llm.py 44 KB runs code
- scripts/extract_pptx.py 29 KB runs code
- scripts/extract_rtf.py 14 KB runs code
- scripts/extract_subtitles.py 4.0 KB runs code
- scripts/extract_xlsx.py 45 KB runs code
- scripts/extract_xml.py 6.8 KB runs code
- scripts/index_kb.py 33 KB runs code
- scripts/kb_mcp.py 14 KB runs code
- scripts/normalize_md.py 8.8 KB runs code
- scripts/postprocess_popo.py 20 KB runs code
- scripts/query_kb.py 74 KB runs code
- scripts/requirements-mineru.txt 1.6 KB
- scripts/requirements-popo-mac.txt 1.6 KB
- scripts/requirements-transcribe.txt 2.9 KB
- scripts/requirements.txt 4.0 KB
- scripts/scout_corpus.py 46 KB runs code
- scripts/shard_doc.py 20 KB runs code
- scripts/token_count.py 1005 B runs code
- scripts/update_kb.py 7.0 KB runs code
- VERSION 6 B
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.
- 10d ago Changed · +86 lines a61fbd6be109
- 11d ago Changed · +7 lines e9b67f2ae99c
- 15d ago Changed · +72 lines · +4 tokens per session 5169e4743464
- 19d ago Changed · +49 lines · +7 tokens per session 8e5d7112608f
- 3mo ago First seen · 539 lines · 230 tokens per session scan B 566da51b87d1
doc2kb is a skill published in the GitHub repository zevtos/agentpipe (10 stars, last pushed 11d ago), licensed MIT. It adds 241 tokens to every session and 21,543 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
doc2kb compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doc2kbzevtos/agentpipe | Skill | 10 | 11d ago | MIT | B | 241 | Claude Code, Codex |
| markitdownK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 62 | Claude Code, Codex |
| agents-llamaindexdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 72 | Claude Code, Codex |
| xberg-picking-a-formatxberg-io/xberg | Skill | 9.7k | today | MIT | A | 51 | Claude Code |
| kb-retrieverConardLi/garden-skills | Skill | 16k | 17d ago | MIT | A | 105 | Claude Code, Codex |
| cx-knowledge-base-ingestionGoogleCloudPlatform/professional-services | Skill | 3.1k | yesterday | Apache-2.0 | A | 48 | Gemini CLI |
| azure-aimicrosoft/skills | Skill | 3.3k | 2d ago | MIT | A | 76 | Claude Code |