hyddd

Ima Agent Skill

0
0
# Install this skill:
npx skills add hyddd/ima_agent_skill

Or install specific skill: npx add-skill https://github.com/hyddd/ima_agent_skill

# Description

调用ima的skill方式

# SKILL.md

Ima Agent Skill

Control the ima.copilot desktop application (AI search client) via Chrome DevTools Protocol (CDP).
Can automatically launch the app if it's not running, and open new tabs for search queries.

Tools

Open a new tab in ima.copilot and search for the specified query.

  • query (required): The text to search for.
python /opt/homebrew/lib/node_modules/clawdbot/skills/ima_agent_skill/scripts/launcher.py "{query}"

Setup & Requirements

  • Python Environment: Requires a python environment with websocket-client installed.
  • Application: Expects ima.copilot.app in /Applications or ~/Applications.
  • Port: Uses localhost port 8315 for CDP.

Notes

  • The script automatically handles the --remote-allow-origins=* flag required by modern Electron apps.
  • If the app is closed, it will attempt to launch it.

# README.md

Ima Agent Skill

这是一个为 Clawdbot 设计的 Skill,用于通过 CDP (Chrome DevTools Protocol) 控制 ima.copilot 桌面客户端(腾讯 ima)。

它允许你通过自然语言指令,让 Clawdbot 在本地的 ima 应用中打开新标签页并进行搜索。

功能特性

  • 自动启动: 如果检测到 ima 未运行,会自动启动应用。
  • 自动连接: 自动配置调试端口 (8315) 和绕过跨域限制 (--remote-allow-origins=*)。
  • 远程控制: 使用 CDP 协议创建新标签页,并导航到指定的搜索结果页。

安装

  1. 确保已安装 Clawdbot。
  2. 将此目录放置在 Clawdbot 的 skills 目录下(或建立软链接)。
  3. 确保本地 Python 环境已安装依赖:
    bash pip install websocket-client

配置

本 Skill 需要在 scripts/launcher.py 中或通过 SKILL.md 指定正确的 Python 解释器路径。
默认配置为使用特定的 venv,你可能需要根据实际情况修改 SKILL.md 中的调用命令。

使用示例

在 Clawdbot 对话中:

"用 ima 搜索 Clawdbot 是什么"

目录结构

.
├── SKILL.md              # Clawdbot 技能定义文件
├── README.md             # 项目说明
└── scripts
    └── launcher.py       # 核心 Python 控制脚本

依赖

  • Python 3
  • websocket-client
  • ima.copilot 桌面端 (macOS)

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.