Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ima-copilot

БесплатноЗапускает вложенные скриптыНе проверен

Installs, diagnoses, repairs, and personalizes the official Tencent IMA skill (a wrapper around upstream ima-skill, not a replacement), including fan-out…

daymadeот daymade★ 1 556 звёзд на GitHub

Об этом скилле

IMA Copilot

One-command installer, troubleshooter, and personalization layer for the official Tencent IMA skill.

Architectural principles (do not violate)

This skill is a wrapper layer around ima-skill. The wrapper contract is non-negotiable:

  • Never vendor upstream files. This skill directory does not contain any copy, fork, or excerpt of ima-skill's own content. When ima-skill ships a new release, users get the new release without any interference from this wrapper.
  • Repairs happen at runtime, not at ship time. If an upstream bug needs patching, this skill carries the instructions for how to patch, not the patched files. Running a repair is idempotent: rerunning after an upstream update re-detects and re-fixes anything that came back.
  • Always ask before touching upstream files. Modifying ~/.claude/skills/ima-skill/**, ~/.agents/skills/ima-skill/**, or any other upstream install directory requires explicit user consent via AskUserQuestion. No silent patching.
  • Teach rather than hide. When a fix is applied, show the user exactly what changed and where the backup was saved. This is how users learn to maintain their own installs.

What this skill does

Capability Entry point Detail
1. Install upstream ima-skill to supported agents scripts/install_ima_skill.sh See references/installation_flow.md
2. Configure API credentials (XDG style) Inline workflow below See references/api_key_setup.md
3. Diagnose and fix known upstream issues scripts/diagnose.sh + workflow below See references/known_issues.md
4. Fan-out search with priority boosting scripts/search_fanout.py See references/search_best_practices.md
5. Import URLs and extract page content as structured text OpenAPI import_urls + notes API See references/import_and_extract.md

Routing

When this skill is triggered, classify the user's intent and jump to the corresponding capability:

User says something like… Go to
"装 ima"、"install ima-skill"、"把 ima 装一下"、"我想用 ima" Capability 1
"配 ima 的 key"、"configure ima credentials"、"ima API key" Capability 2
"ima 报错"、"SKILL.md warning"、"frontmatter 错误"、"ima 加载失败" Capability 3
"搜 X"、"在 ima 里搜 X"、"跨知识库搜索"、"扇出搜 X" Capability 4
"把这批链接导进 ima 并整理成结构化内容"、"import URLs into a knowledge base"、"让 ima 读这些页面" Capability 5
"帮我从头跑一遍 ima" 1 → 2 → 3 → 4 in sequence

When in doubt, start with Capability 3 (diagnose) — it surfaces exactly which capabilities are blocked and in what order.

Capability 1: Install upstream ima-skill

The installer downloads the latest official release from https://app-dl.ima.qq.com/skills/, stages it in a temp directory, and hands off to npx skills add <local-path> to distribute it across Claude Code, Codex, and OpenClaw.

To run it:

bash scripts/install_ima_skill.sh

The script auto-detects which target agents are installed on the user's machine. For agents that are not present, it skips silently rather than installing anywhere the user hasn't opted in. For agents that are present, it installs globally (-g) in vercel skills' default symlink mode: the first detected agent's directory becomes the canonical copy, and the remaining agents are symlinked to it. This means a repair or an upgrade applied once propagates automatically to every agent — diagnose.sh detects this sharing and dedupes its reports so you don't see the same issue multiple times.

For a version override, detection logic, troubleshooting, and the full file-by-file layout produced by the installer, read references/installation_flow.md.

Capability 2: Configure API credentials

Credentials are stored in XDG style, decoupled from any agent's skill directory:

  • ~/.config/ima/client_id (mode 600)
  • ~/.config/ima/api_key (mode 600)
  • ~/.config/ima/ (mode 700)

Environment variables IMA_OPENAPI_CLIENTID and IMA_OPENAPI_APIKEY take precedence; missing values fall back to the config files.

Step through the setup with the user:

  1. Open https://ima.qq.com/agent-interface and create a new Client ID and API Key.
  2. Write both values into the XDG config path (or export the environment variables).
  3. Make a single liveness call against https://ima.qq.com/openapi/wiki/v1/search_knowledge_base with {"query": "", "cursor": "", "limit": 1} to confirm the credentials are accepted — a code: 0, msg: success response means ready.

The full script and the exact request/response schema lives in references/api_key_setup.md.

Capability 3: Diagnose and fix known issues

This is the reason this skill exists. The upstream package has real bugs that break loading on certain agents, and the fixes are well-understood but need user consent to apply. The diagnose/repair workflow is the core contract of this skill.

Step 1 — Run the read-only diagnosis

bash scripts/diagnose.sh

diagnose.sh **never modifies

Полный SKILL.md на GitHub

Установить ima-copilot в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

config-template/copilot.json.examplereferences/api_key_setup.mdreferences/import_and_extract.mdreferences/installation_flow.mdreferences/known_issues.mdreferences/search_best_practices.mdscripts/diagnose.shscripts/install_ima_skill.shscripts/search_fanout.py

FAQ

Что делает скилл ima-copilot?

Installs, diagnoses, repairs, and personalizes the official Tencent IMA skill (a wrapper around upstream ima-skill, not a replacement), including fan-out search across IMA knowledge bases with priority boosting. Use when the user mentions IMA / 腾讯 IMA / ima-skill, needs IMA API key setup, 知识库搜索 / 笔记搜索, imports URLs into a KB to extract content, or hits "Skipped loading skill(s) due to invalid SKILL.md" (ima-skill's missing-YAML-frontmatter bug).

Как установить скилл ima-copilot?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ima-copilot запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ima-copilot с