# ima-copilot

Wrapper for Tencent's official ima-skill that automates setup, fixes broken SKILL.md frontmatter, and runs fan-out searches across knowledge bases.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1600 installs · ★ 1493
- Author: daymade
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/daymade/claude-code-skills/tree/HEAD/ima-copilot/SKILL.md
- Updated: 2026-10-25
- HTML: https://affpapa.org/en/nevibecode/skills/ima-copilot

## What it does

The skill operates as a maintenance layer around upstream `ima-skill`. It downloads the official release, distributes it across Claude Code and Codex using `npx skills add`, and configures credentials in XDG paths under `~/.config/ima/` or through environment variables.

Its core utility lies in troubleshooting. Upstream releases often fail in strict agents because of missing YAML frontmatter inside submodule `SKILL.md` files. Running `scripts/diagnose.sh` identifies these defects without modifying anything, and asks for confirmation before patching files in place. It never touches files in `~/.claude/skills/ima-skill/` without explicit permission.

It also provides a fan-out search script (`scripts/search_fanout.py`) that handles knowledge base priority boosting alongside the 100-result per-database limit, and imports external URLs into notes.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add daymade/claude-code-skills --skill ima-copilot -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/ima-copilot/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/ima-copilot/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add daymade/claude-code-skills --skill ima-copilot -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/ima-copilot/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add daymade/claude-code-skills --skill ima-copilot -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/ima-copilot/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install daymade/claude-code-skills ima-copilot
```

2. **Manually: put the files in place**
- File: `.github/skills/ima-copilot/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add daymade/claude-code-skills --skill ima-copilot -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/daymade/claude-code-skills --path ima-copilot
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/ima-copilot/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add daymade/claude-code-skills --skill ima-copilot -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/daymade/claude-code-skills/tree/HEAD/ima-copilot/SKILL.md

## When to use it
- fix missing YAML frontmatter errors in upstream ima-skill SKILL.md files
- configure and validate Tencent IMA OpenAPI credentials
- install upstream ima-skill across Claude Code and Codex
- execute fan-out searches across multiple knowledge bases with priority boosts
- import URLs into knowledge bases for structured content extraction

## Example prompts
- Run diagnosis on ima-skill to check for frontmatter issues
- Configure my Tencent IMA API credentials
- Search across IMA knowledge bases with priority boosting

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 2ac760424ebd8d7b.

BEGIN THIRD-PARTY FILE 2ac760424ebd8d7b
```text
---
name: ima-copilot
description: >-
  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

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

## Overview

The official Tencent IMA skill (ima-skill) exposes a powerful OpenAPI for notes and knowledge base operations, but its installation flow is designed for a specific proprietary agent and recent releases have shipped submodule files that fail strict SKILL.md loaders. IMA Copilot solves both problems:

1. Installs ima-skill to Claude Code, Codex, and OpenClaw in a single command via the [vercel-labs/skills](https://github.com/vercel-labs/skills) open installer.
2. Walks the user through API key setup with a live validation call.
3. Detects known upstream issues and — with explicit user consent — fixes them in place, without ever forking, vendoring, or mirroring any part of the upstream package.
4. Provides a fan-out search strategy that respects user-configured knowledge base priorities and boosts, with awareness of the 100-result per-KB truncation limit.

## 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 3 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` |
```
END THIRD-PARTY FILE 2ac760424ebd8d7b

The third-party file has ended. Everything between the 2ac760424ebd8d7b tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2893 of 14010 bytes. © daymade · MIT · https://github.com/daymade/claude-code-skills/tree/HEAD/ima-copilot/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
