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 agentmods add skills/zevtos/agentpipe/doc2kbnpx skills add zevtos/agentpipe --skill doc2kbgit clone --depth 1 https://github.com/zevtos/agentpipeWhat 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 | $0.00230 | $0.12123 |
| Opus 5 | $0.00115 | $0.06062 |
| Sonnet 5 | $0.00046 | $0.02425 |
| Haiku 4.5 | $0.00023 | $0.01212 |
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 3d 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 — 539 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. Картинки заменяются на placeholder (см.
extract_docx.py), а не сохраняются как base64 в Markdown — 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
33 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 4.9 KB
- LICENSE 1.1 KB
- references/batch-questions.md 4.7 KB
- references/extraction-recipes.md 10 KB
- references/format-spec.md 14 KB
- references/mineru.md 14 KB
- references/pitfalls.md 15 KB
- scripts/_common.py 50 KB runs code
- scripts/apply_overrides.py 12 KB runs code
- scripts/bootstrap_popo.py 14 KB runs code
- scripts/build_manifest.py 15 KB runs code
- scripts/dkb.py 20 KB runs code
- scripts/ensure_env.py 16 KB runs code
- scripts/extract_corpus.py 24 KB runs code
- scripts/extract_doc.py 12 KB runs code
- scripts/extract_docx.py 15 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_pdf_mineru.py 47 KB runs code
- scripts/extract_pdf_pymupdf4llm.py 24 KB runs code
- scripts/extract_pptx.py 19 KB runs code
- scripts/extract_rtf.py 7.6 KB runs code
- scripts/index_kb.py 19 KB runs code
- scripts/normalize_md.py 8.8 KB runs code
- scripts/postprocess_popo.py 16 KB runs code
- scripts/query_kb.py 14 KB runs code
- scripts/requirements-mineru.txt 1.5 KB
- scripts/requirements-popo-mac.txt 1.6 KB
- scripts/requirements.txt 1.5 KB
- scripts/scout_corpus.py 31 KB runs code
- scripts/token_count.py 1005 B runs code
- scripts/update_kb.py 6.8 KB runs code
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.
- 3d ago First seen · 539 lines · 230 tokens per session scan B 566da51b87d1
doc2kb is a skill published in the GitHub repository zevtos/agentpipe (11 stars, last pushed 2mo ago), licensed MIT. It adds 230 tokens to every session and 12,123 once invoked, about $0.0011 per session on Opus 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.
Other skills, from other repositories
azure-ai
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
kb-retriever
面向本地知识库目录的检索和问答助手。核心流程:(1)分层索引导航 (2)遇到PDF/Excel时必须先读取references学习处理方法 (3)处理文件后再检索。按文件类型组合使用 grep、Read、pdfplumber、pandas 进行渐进式检索,避免整文件加载。用户问题涉及"从知识库目录回答问题/检索信息/查资料"时使用。.
chunked-prompted-generator
Reference documentation for the ChunkedPromptedGenerator operator. Covers the constructor, file-path based chunking flow, actual prompt construction, and output file writing behavior. Use when: the dataframe stores file paths, the file content may exceed a single LLM context window, and you want the generated results…
dot-ai-manageKnowledge
Manage the knowledge base: ingest documents, search with natural language, or delete chunks. Use "ingest" to store organizational documentation, "search" to find relevant content semantically, or "deleteByUri" to remove all chunks for a document. TIP: For complex questions, you can call search multiple times with…
aidlc-knowledge
Index the team's own documents — PDFs, Word files, Markdown, plain text — into a per-space catalog the AI-DLC agents can cite. Wraps aidlc-knowledge.ts: onboard, sync, list, show, associate, dissociate, rebind, summarize. Every catalog row is written by the tool under a workspace lock; this skill never edits the…
knowledge-base-sync
Stage, incrementally refresh, validate, and publish the DocMason knowledge base from the local source corpus.