Agent skill

Ima Knowledge Base

by countbot-ai in countbot-ai/CountBot

通过 IMA OpenAPI 处理知识库任务。支持知识库内容搜索、命中详情查看、条目浏览、列出知识库、上传文件、导入网页。用户提到知识库、资料库、上传到知识库、导入网页、搜知识库时使用。

MITAuto-check passedKnowledge Management

Install Ima Knowledge Base

skills CLI
$ npx skills add countbot-ai/CountBot --skill ima-knowledge-base -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install countbot-ai/CountBot ima-knowledge-base --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/countbot-ai/CountBot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/workspace/skills/ima-knowledge-base .claude/skills/ima-knowledge-base && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ima-knowledge-base
GitHub stars
781
Token cost
~506 tokens
SKILL.md length
86 words
Files
8 (incl. scripts, references)
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

通过 IMA OpenAPI 处理知识库任务。支持知识库内容搜索、命中详情查看、条目浏览、列出知识库、上传文件、导入网页。用户提到知识库、资料库、上传到知识库、导入网页、搜知识库时使用。

  • Works in 4 steps: 先宽搜:search-kb --keyword "推荐 菜单 餐厅 美食"… → 命中太杂就补对象词,例如 search-kb --keyword "orslow… → 锁定单条后先 show-kb-hit → …
  • Tasks that involve Knowledge bases
  • SKILL.md covers 执行规则, 查看单条结果, 常用命令 and 推荐类问题, plus 2 more sections
  • Runs Python scripts from its folder; calls python

What it does

Ima Knowledge Base is an agent skill from countbot-ai/CountBot. 通过 IMA OpenAPI 处理知识库任务。支持知识库内容搜索、命中详情查看、条目浏览、列出知识库、上传文件、导入网页。用户提到知识库、资料库、上传到知识库、导入网页、搜知识库时使用。

Its SKILL.md is about 510 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `config.help.md`, `references/api.md` and `scripts/config.json`).

It sits in Knowledge Management, covering Knowledge bases and OpenAPI specifications. It works with OpenAPI. The repository describes itself as: 更适配中文用户的轻量开源AI Agent | 国产大模型Coding plan支持 | 兼容OpenClaw Skills生态| 已接入微信ClawBot/微博龙虾/飞书/钉钉/QQ/小智AI/Telegram/deepseek-v4。 The licence is MIT.

When your agent uses it

  • Tasks that involve Knowledge bases
  • Tasks that involve OpenAPI specifications

Example prompts

  • “/ima-knowledge-base”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 先宽搜:search-kb --keyword "推荐 菜单 餐厅 美食" --show 5 --limit 10
  2. 命中太杂就补对象词,例如 search-kb --keyword "orslow 推荐"
  3. 锁定单条后先 show-kb-hit
  4. 只有需要 OCR 扩展片段时才 inspect-kb-hit

What it can do on your machine

Read from SKILL.md and the folder at commit 3c26f11. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 5 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ima Knowledge Base loads about 506 tokens when it runs, and up to ~5.7k if it reads all its reference files. Until then it costs about 28 tokens; SKILL.md has 86 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~506
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from countbot-ai/CountBot at commit 3c26f11, republished under its MIT licence (© countbot-ai). 86 words, ~506 tokens.

Download SKILL.mdSave it as .claude/skills/ima-knowledge-base/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
ima-knowledge-base
description
通过 IMA OpenAPI 处理知识库任务。支持知识库内容搜索、命中详情查看、条目浏览、列出知识库、上传文件、导入网页。用户提到知识库、资料库、上传到知识库、导入网页、搜知识库时使用。

IMA Knowledge Base

入口:

bash
python skills/ima-knowledge-base/scripts/ima_kb_tool.py <command> ...

执行规则

  • 用户说“搜、查、找、看看有没有”时,先 search-kb
  • 默认直接返回命中片段,不堆字段
  • search-kb 搜的是内容,不是知识库列表
  • 用户给了 kb-id 或 kb-name 时,加定向参数
  • 默认优先 --keyword,只有明确要把多个词合成一次搜索串时才用 --query
  • 宽搜建议加 --show 5 --limit 10;知识库很大再加 --search-pages 2 或更高

查看单条结果

  • 默认先 show-kb-hit
  • 只有命中像图片、截图、OCR 文档、菜单图,或 show-kb-hit 太短时,才用 inspect-kb-hit
  • 一条 --keyword "推荐 菜单 餐厅 美食" 会拆成多次搜索,同一标题可能重复出现
  • 宽搜后稳定定位优先级:更窄关键词 > --title > --media-id > --pick

常用命令

bash
python skills/ima-knowledge-base/scripts/ima_kb_tool.py search-kb --keyword "orslow"
python skills/ima-knowledge-base/scripts/ima_kb_tool.py search-kb --keyword "推荐 菜单 餐厅 美食" --show 5 --limit 10
python skills/ima-knowledge-base/scripts/ima_kb_tool.py search-kb --kb-name "个人知识库" --keyword "菜单"
python skills/ima-knowledge-base/scripts/ima_kb_tool.py show-kb-hit --keyword "orslow" --pick 1
python skills/ima-knowledge-base/scripts/ima_kb_tool.py inspect-kb-hit --keyword "orslow" --pick 1
python skills/ima-knowledge-base/scripts/ima_kb_tool.py list-kb
python skills/ima-knowledge-base/scripts/ima_kb_tool.py list-kb-items --kb-name "个人知识库" --limit 20
python skills/ima-knowledge-base/scripts/ima_kb_tool.py upload-file --kb-name "个人知识库" --file "/path/to/report.pdf"
python skills/ima-knowledge-base/scripts/ima_kb_tool.py import-url --kb-name "个人知识库" --url "https://example.com"

推荐类问题

用户问“知识库里有什么推荐”时:

  1. 先宽搜:search-kb --keyword "推荐 菜单 餐厅 美食" --show 5 --limit 10
  2. 命中太杂就补对象词,例如 search-kb --keyword "orslow 推荐"
  3. 锁定单条后先 show-kb-hit
  4. 只有需要 OCR 扩展片段时才 inspect-kb-hit

写入安全

  • upload-file、import-url 会真实写入知识库,执行前先确认目标知识库
  • 需要配置时查看 scripts/config.json 和 config.help.md

如何配置

下载最新的IMA客户端(比如Android),登陆后点击 “我” --> Claw配置 --> 复制 client_id和api_key参数,提供给CountBot后会自动调用文件编辑工具修改config.json。

© countbot-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts, references) in workspace/skills/ima-knowledge-base of countbot-ai/CountBot.

  • SKILL.md
  • config.help.md
  • references/api.md
  • scripts/config.json
  • scripts/config.json.example
  • scripts/ima_client.py
  • scripts/ima_kb_tool.py
  • scripts/ima_tool.py

Open the folder on GitHubat commit 3c26f11

Compare with similar skills

Ima Knowledge Base next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ima Knowledge Base compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ima Knowledge Base this skillcountbot-ai/CountBot781—~506Automated safety check: PassMIT
Ima SkillsPinvou/pinvou-agent2.4k—~718Automated safety check: PassMIT
Migrateguhcostan/claude-mega-brain126—~975Automated safety check: PassMIT
HypatiaMarchLiu/hypatia239—~7.9kAutomated safety check: NotesMIT
Psr Autoloading Knowledgedykyi-roman/awesome-claude-code103—~2.1kAutomated safety check: PassMIT
Psr Overview Knowledgedykyi-roman/awesome-claude-code103—~2.7kAutomated safety check: PassMIT

Similar skills

  • Ima Skills

    Pinvou/pinvou-agent

    Tencent IMA OpenAPI skill for notes and knowledge-base operations.

    2.4k GitHub stars~718 tokensUpdated today
    Backend & APIsAuto-check passed
  • Migrate

    guhcostan/claude-mega-brain

    Scan the project and migrate existing documentation into OKF format.

    126 GitHub stars~975 tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Hypatia

    MarchLiu/hypatia

    Interact with the Hypatia AI memory system using natural language.

    239 GitHub stars~7.9k tokensUpdated 8 days ago
    Knowledge ManagementAuto-check: notes
  • Psr Autoloading Knowledge

    dykyi-roman/awesome-claude-code

    PSR-4 autoloading standard knowledge base for PHP 8.4 projects.

    103 GitHub stars~2.1k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • Psr Overview Knowledge

    dykyi-roman/awesome-claude-code

    PHP Standards Recommendations (PSR) overview knowledge base.

    103 GitHub stars~2.7k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • Siyuan

    Tommy-yw/RunbookHermes

    SiYuan Note API for searching, reading, creating, and managing blocks and documents in a self-hosted knowledge base via curl.

    546 GitHub starsUsed in 3 repos~2.3k tokens
    Knowledge ManagementAuto-check: notes

More from countbot-ai/CountBot

All 11 skills in this repo
  • Image Analysis

    countbot-ai/CountBot

    图片分析与识别,可分析本地图片、网络图片、视频、文件。适用于 OCR、物体识别、场景理解等。当用户发送图片或要求分析图片时必须使用此技能。

    781 GitHub starsUsed in 1 repo~532 tokens
    Auto-check passed
  • News

    countbot-ai/CountBot

    新闻与资讯查询。获取中文新闻和全球 AI 技术资讯,支持按分类查询(时政、财经、科技、社会、国际、体育、娱乐、AI 技术、AI 社区)。当用户询问最新新闻、AI 动态、行业资讯时使用。

    781 GitHub starsUsed in 1 repo~876 tokens
    Auto-check passed
  • Web Design

    countbot-ai/CountBot

    网页设计与部署。生成精美的单页 HTML 网页(报告、落地页、数据可视化等),支持一键部署到 Cloudflare Pages。使用 Tailwind CSS + Chart.js + Font Awesome 技术栈。当用户要求制作网页、生成报告页面、创建落地页、数据可视化展示、部署网页到线上时使用。

    781 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Agent Team Manager

    countbot-ai/CountBot

    多智能体团队管理。创建、查看、修改、删除 CountBot 的多智能体团队,管理团队成员(角色)和团队级自定义模型配置。当用户要新建 Pipeline/Graph/Council 团队、调整成员分工、修改依赖关系、开关技能系统、设置团队专属模型时使用。

    781 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Cron Manager

    countbot-ai/CountBot

    定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用. An agent skill from countbot-ai/CountBot.

    781 GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Find Skills

    countbot-ai/CountBot

    基于腾讯 SkillHub 搜索、安装和管理技能。用户提到“找技能”“安装 skill”“扩展功能”“启用/禁用 skill”“删除 skill”“安装 SkillHub CLI”时优先使用。

    781 GitHub stars~794 tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Ima Knowledge Base

What does Ima Knowledge Base do?

通过 IMA OpenAPI 处理知识库任务。支持知识库内容搜索、命中详情查看、条目浏览、列出知识库、上传文件、导入网页。用户提到知识库、资料库、上传到知识库、导入网页、搜知识库时使用。. Ima Knowledge Base is an agent skill from countbot-ai/CountBot.

When should I use Ima Knowledge Base?

Ima Knowledge Base fits situations like: tasks that involve Knowledge bases; tasks that involve OpenAPI specifications.

How do I install Ima Knowledge Base in Claude Code?

Run `npx skills add countbot-ai/CountBot --skill ima-knowledge-base -a claude-code`. Or copy the skill folder (workspace/skills/ima-knowledge-base in countbot-ai/CountBot) into .claude/skills/ima-knowledge-base in your project. Claude Code loads it when a task matches its description.

How do I install Ima Knowledge Base in Codex?

Run `npx skills add countbot-ai/CountBot --skill ima-knowledge-base -a codex`. Or copy the skill folder (workspace/skills/ima-knowledge-base in countbot-ai/CountBot) into .agents/skills/ima-knowledge-base in your project. Codex loads it when a task matches its description.

Can I use Ima Knowledge Base in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add countbot-ai/CountBot --skill ima-knowledge-base -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ima-knowledge-base, .gemini/skills/ima-knowledge-base, .github/skills/ima-knowledge-base and .opencode/skills/ima-knowledge-base in your project.

What does Ima Knowledge Base need to run?

Going by SKILL.md and its folder, Ima Knowledge Base needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Ima Knowledge Base access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ima Knowledge Base safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Ima Knowledge Base use?

Ima Knowledge Base is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ima Knowledge Base use?

About 506 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.1k tokens, read only when the agent opens those files.

What are the alternatives to Ima Knowledge Base?

Skills that share tags, products or a category with Ima Knowledge Base: Ima Skills (Pinvou/pinvou-agent, 2.4k stars), Migrate (guhcostan/claude-mega-brain, 126 stars), Hypatia (MarchLiu/hypatia, 239 stars) and Psr Autoloading Knowledge (dykyi-roman/awesome-claude-code, 103 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ima Knowledge Base?

countbot-ai (a GitHub user) maintains it in countbot-ai/CountBot, which has 781 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 4, 2026.

Source: countbot-ai/CountBot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.