happy-notes-knowledge-base

happy-notes-knowledge-base is a skill for Claude Code, Codex from iflow-ai/iflow-skills. It costs 45 tokens per session (4,164 once invoked), scanned A, original, MIT.

A knowledge-base and file-management workflow for storing, importing, updating, searching, and removing reference material.

In plain words
What is it for?
Creating knowledge bases, uploading local files, importing webpages or text, checking file-processing status, editing collections, and performing semantic searches.
Why use it?
It gives an AI agent a managed collection of documents and webpages to use later, instead of making it search or reread each source from scratch.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Prerequisites: see root `../SKILL.md` for setup, credentials, and `iflow_api()` helper..

Good fit Creating knowledge bases, uploading local files, importing webpages or text, checking file-processing status, editing collections, and performing semantic searches.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/iflow-ai/iflow-skills
agentmods
npx agentmods add skills/iflow-ai/iflow-skills/knowledge-base

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 happy-notes-knowledge-base

README.md
[![agentmods](https://agentmods.dev/badge/skills/iflow-ai/iflow-skills/knowledge-base/github.svg)](https://agentmods.dev/skills/iflow-ai/iflow-skills/knowledge-base)
Your own site
<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.

agentmods 80×15 button for happy-notes-knowledge-base

Your own site · 80×15
<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>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,164 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00045 $0.04164
Opus 5 $0.00023 $0.02082
Sonnet 5 $0.00009 $0.00833
Haiku 4.5 $0.00005 $0.00416

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

Security

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 8d 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" \
skills/happy-notes/knowledge-base/SKILL.md · 389 lines

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.md for setup, credentials, and iflow_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 deleteclearCollection 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(可选)

Read the full file on GitHub · 389 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. 8d ago First seen · 389 lines · 45 tokens per session scan A c6137440507c

Subscribe to this mod's changes

happy-notes-knowledge-base is a skill published in the GitHub repository iflow-ai/iflow-skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 45 tokens to every session and 4,164 once invoked, about $0.0002 per session on Opus 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.