Get the FREE Ultimate OpenClaw Setup Guide →
h

Tencent IMA Skill

Scanned

@hyddd

npx machina-cli add skill @hyddd/tencent-ima-skill --openclaw
Files (1)
SKILL.md
1.0 KB

IMA Skill

Control the IMA (ima.copilot) desktop application for AI search and private knowledge retrieval.

Tools

ima_search

Launches IMA and performs a search. Supports "Private Knowledge Base" mode via special tags.

  • query (required): The search query. Prefix with @个人知识库 or @knowledge to search your private knowledge base (requires config.json).
  • autoclose (optional): "true" to close the app after searching. Default: "false".

Implementation:

/usr/bin/python3 /opt/homebrew/lib/node_modules/clawdbot/skills/ima/scripts/ima.py "{query}" --autoclose="{autoclose}"

Configuration

To enable private knowledge base search, you must providing your knowledge_id. The script looks for config in:

  1. ~/.clawd_ima_config.json
  2. skills/ima/config.json

Format:

{
  "knowledge_id": "your_id_string"
}

Examples

  • Public: clawdbot ima_search query="DeepSeek analysis"
  • Private: clawdbot ima_search query="@knowledge project update"

Source

git clone https://clawhub.ai/hyddd/tencent-ima-skillView on GitHub

Overview

IMA Skill lets you control the IMA (ima.copilot) desktop app to run AI searches and retrieve private knowledge using a configurable knowledge_id. It uses the ima_search tool and supports a Private Knowledge Base mode by tagging queries with @个人知识库 or @knowledge (requires config.json).

How This Skill Works

You invoke ima_search, which launches the IMA app and runs a search via a Python script. If you prefix the query with @个人知识库 or @knowledge, it performs a Private Knowledge Base search, provided knowledge_id is configured in ~/.clawd_ima_config.json or skills/ima/config.json.

When to Use It

  • You need to search public AI results in IMA for general topics (no private data).
  • You want to query your private knowledge base stored in IMA's Private Knowledge Base mode.
  • You want the IMA app to close automatically after a search (autoclose enabled).
  • You need to switch between public and private searches using the @knowledge or @个人知识库 prefixes.
  • You have to provide a knowledge_id in the config.json to enable private KB searches.

Quick Start

  1. Step 1: Ensure knowledge_id is configured in ~/.clawd_ima_config.json or skills/ima/config.json.
  2. Step 2: Run a search, e.g., clawdbot ima_search query="DeepSeek analysis" or clawdbot ima_search query="@knowledge project update".
  3. Step 3: (Optional) Set autoclose to true to close the IMA app after the search.

Best Practices

  • Create and verify knowledge_id in ~/.clawd_ima_config.json or skills/ima/config.json before attempting private KB searches.
  • Prefix private KB queries with @personal知识库 or @knowledge to ensure the correct mode is used.
  • Test queries without autoclose first to verify results before enabling autoclose.
  • Use the full path for the Python script to avoid environment path issues (e.g., /usr/bin/python3 ... ima.py).
  • Keep config.json and knowledge_id secure and never share sensitive IDs publicly.

Example Use Cases

  • Public: clawdbot ima_search query="DeepSeek analysis"
  • Private: clawdbot ima_search query="@knowledge project update"
  • Private with Chinese tag: clawdbot ima_search query="@个人知识库 2024年需求"
  • Public with autoclose: clawdbot ima_search query="Quarterly report" --autoclose="true"
  • Private with config: clawdbot ima_search query="@knowledge product roadmap"

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers