调用ima的skill
npx skills add https://github.com/hyddd/ima_agent_skill --skill ima-agent-skillInstale esta skill com a CLI e comece a usar o fluxo de trabalho SKILL.md em seu espaço de trabalho.
通过 Chrome DevTools Protocol (CDP) 协议,实现对腾讯 IMA (ima.copilot) 桌面客户端(AI 知识库助手)的自动化控制。本 Skill 支持全网自动化搜索,并具备独特的私有知识库注入功能,无需手动切换即可在查询中自动调用私有知识库。
@knowledge 或 @个人知识库 标记时,自动注入配置好的 Knowledge ID,无需人工干预即可搜索私有数据。/Applications/ima.copilot.appwebsocket-client 库pip3 install websocket-client
要使用 私有知识库 功能,你需要配置你的 Knowledge ID。
获取 ID:
/cgi-bin/assistant/qa 请求。"knowledge_ids": ["YOUR_ID_HERE"] 字段。创建配置文件:
将 config.json.sample 复制为 config.json:
cp config.json.sample config.json
编辑 config.json:
{
"knowledge_id": "YOUR_CAPTURED_ID"
}
注意:config.json 已被加入 .gitignore,以保护你的隐私。
普通全网搜索:
python3 scripts/ima.py "DeepSeek V3 分析"
私有知识库搜索:
(需要先完成配置)
python3 scripts/ima.py "@knowledge 年度报告分析"
# 或者
python3 scripts/ima.py "@个人知识库 分析新大陆"
本 Skill 专为 Clawdbot 设计。安装到 skills/ima 后,你可以直接对 Agent 说:
"用 IMA 搜一下最新的 AI 新闻"
"去个人知识库查一下关于 Project X 的会议纪要"
/qa API 请求。knowledge_ids。Control the IMA.copilot desktop application (AI knowledge base assistant) via Chrome DevTools Protocol (CDP). This skill enables automated searching and, uniquely, injects private knowledge base context into queries without manual switching.
Knowledge ID when the query contains @knowledge or @个人知识库./Applications/ima.copilot.appwebsocket-client installed.pip3 install websocket-client
To use the Private Knowledge Base feature, you need to configure your Knowledge ID.
Find your ID:
/cgi-bin/assistant/qa request."knowledge_ids": ["YOUR_ID_HERE"] in the request body.Create Config File:
Copy config.json.sample to config.json:
cp config.json.sample config.json
Edit config.json:
{
"knowledge_id": "YOUR_CAPTURED_ID"
}
Note: config.json is git-ignored to protect your privacy.
Public Search:
python3 scripts/ima.py "Analysis of DeepSeek V3"
Private Knowledge Base Search:
(Requires configuration)
python3 scripts/ima.py "@knowledge Annual Report Analysis"
# OR
python3 scripts/ima.py "@个人知识库 分析新大陆"
This skill is designed for Clawdbot. Once installed in skills/ima, you can ask your agent:
"Use IMA to search for the latest AI news"
"Check my personal knowledge base for the meeting minutes about Project X"
/qa API requests.knowledge_ids.MIT