Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/iflow-ai/iflow-skillsnpx agentmods add skills/iflow-ai/iflow-skills/knowledge-baseWrote 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/iflow-ai/iflow-skills/knowledge-base)<a href="https://agentmods.dev/skills/iflow-ai/iflow-skills/knowledge-base"><img src="https://agentmods.dev/badge/skills/iflow-ai/iflow-skills/knowledge-base/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/iflow-ai/iflow-skills/knowledge-base"><img src="https://agentmods.dev/badge/skills/iflow-ai/iflow-skills/knowledge-base.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.00045 | $0.04164 |
| Opus 5.5 | $0.00018 | $0.01666 |
| Sonnet 5.5 | $0.00009 | $0.00833 |
| Haiku 4.5 | $0.00005 | $0.00416 |
Grade A, and why
happy-notes-knowledge-base scanned grade A 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 1mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -X POST "${IFLOW_URL}/api/v1/knowledge/upload" \ How it starts
The opening of the file, as written. The whole thing — 389 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knowledge Base (知识库与文件管理)
Prerequisites: see root
../SKILL.mdfor setup, credentials, andiflow_api()helper.
通过 iflow API 管理知识库和文件,支持多种来源的内容导入。
完整数据结构和接口参数详见 references/api.md。
输入来源总览
| 来源 | 处理方式 | 接口 |
|---|---|---|
| 本地文件 (PDF/TXT/MARKDOWN/DOCX/PNG/JPG) | 直接上传 | POST /api/v1/knowledge/upload (multipart) |
| 网页 / 公众号文章 (URL) | URL 导入 | POST /api/v1/knowledge/upload (content 字段传 URL, type=HTML) |
| 纯文本内容 | Agent 创建 md 文件后上传 | POST /api/v1/knowledge/upload (multipart) |
文件限制:单文件最大 20MB,PDF 最多 500 页。超出限制的文件需先拆分后分批上传到同一知识库。
接口决策表
| 用户意图 | 调用接口 | 关键参数 |
|---|---|---|
| 创建知识库 | POST /api/v1/knowledge/saveCollection |
collectionName, description |
| 查看知识库列表 | GET /api/v1/knowledge/pageQueryCollections |
pageNum, pageSize, keyword |
| 查看知识库详情 | GET /api/v1/knowledge/queryCollection |
collectionId |
| 更新知识库信息 | POST /api/v1/knowledge/modifyCollections |
collectionId, collectionName, description |
| 删除知识库 | pipeline_kb.py delete 或 clearCollection API |
--kb --force,⚠️ 需用户确认 |
| 上传本地文件 | POST /api/v1/knowledge/upload |
multipart: file, collectionId, type |
| 通过 URL 导入网页 | POST /api/v1/knowledge/upload |
content(放URL), collectionId, type=HTML |
| 通过文本创建 | Agent 创建 md → POST /api/v1/knowledge/upload |
见「文本导入」 |
| 查看文件列表 | POST /api/v1/knowledge/pageQueryContents |
collectionId, pageNum, pageSize, fileName |
| 查询单个文件详情 | GET /api/v1/knowledge/queryContent |
collectionId, contentId |
| 查询文件解析状态 | POST /api/v1/knowledge/parseStatusThenCallBack |
reqItems[].contentType, reqItems[].contentId, reqItems[].fileId |
| 更新/重命名文件 | POST /api/v1/knowledge/updateContent2Collection |
collectionId, contentType, contentId, removeFlag=false, extra.fileName |
| 删除单个文件 | POST /api/v1/knowledge/updateContent2Collection |
collectionId, contentType, contentId, removeFlag=true,⚠️ 需用户确认 |
| 批量删除文件 | POST /api/v1/knowledge/batchDeleteCollectionContent |
collectionId, contentIds[] |
| 语义检索知识库内容片段 | POST /api/v1/knowledge/searchChunk |
query, collectionId, contentIds(可选) |
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.
- 1mo ago First seen · 389 lines · 45 tokens per session scan A c6137440507c
happy-notes-knowledge-base is a skill published in the GitHub repository iflow-ai/iflow-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 45 tokens to every session and 4,164 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
cua-volume
Use Cua Volume, the one volume every Space and agent of this user shares. Inside a Space it is mounted as a folder (/volume on Linux, /Cua Volume on macOS), so any program reads and writes it directly. Use it for anything that must outlive this Space - your memory and outputs in your agent home, shared reference in…
obsidian
Obsidian vault: search/read/write notes, backlinks, Bases, Canvas.
loopx-doc-registry
Use when a connected LoopX project is asked to read, remember, record, index, register, or use a durable project material such as a Lark/wiki/design doc, research note, SOP, owner packet, migration report, benchmark paper, or external material source. Use even when the user does not mention LoopX or doc registry.
docx
Create, read, edit, review, redline, comment on, merge, audit, render, and verify .docx Word documents, including layout-sensitive and OOXML-level work.
excel-author
Create and edit Excel (.xlsx) workbooks with openpyxl. Supports formulas, charts, formatting, and data analysis.
ppt-author
Create and edit PowerPoint (.pptx) presentations programmatically. Requires python-pptx.