← 返回 Skills 市场
175
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install kimi-use
功能描述
Kimi Use provides conversation, image understanding, translation, and web search via Kimi AI tools using Node.js and Kimi For Coding APIs.
使用说明 (SKILL.md)
Kimi Use
Kimi AI 工具集,提供对话、图像理解、翻译等功能。使用 Node.js 实现。
环境变量
export KIMI_API_KEY="sk-kimi-xxxx" # 必填(Kimi For Coding 格式)
export KIMI_API_HOST="https://api.kimi.com/coding" # Kimi For Coding 端点
export KIMI_MODEL="kimi-for-coding" # 可选,默认 kimi-for-coding
export KIMI_VISION_MODEL="kimi-vl-flash" # 可选,默认 kimi-vl-flash
获取 API Key: https://www.kimi.com/code/user-center/basic-information/interface-key
安装依赖
cd ~/workspace/skills/kimi-use
npm install
CLI 命令
# 对话
node scripts/index.js chat "你好,介绍一下你自己"
# 图像理解(支持本地路径或 URL)
node scripts/index.js image "这张图片里有什么?" /path/to/image.jpg
# 翻译
node scripts/index.js translate "hello world" --to 中文
# 网络搜索(依赖模型知识库)
node scripts/index.js search "今日新闻"
# 流式输出
node scripts/index.js chat "讲一个故事" --stream
Node.js 模块调用
import { chat, understandImage, translate, webSearch } from './scripts/index.js';
// 对话
const r = await chat('你好');
console.log(r.result.content);
// 图像理解
const r = await understandImage('这张图里字幕在什么位置?用JSON返回', '/path/to/image.jpg');
console.log(r.result.content);
// 翻译
const r = await translate('hello', { to: 'Chinese' });
console.log(r.result.content);
API 详情
- API 地址:
https://api.kimi.com/coding/v1 - 模型: kimi-for-coding, kimi-vl-flash (视觉)
- 视觉: 支持本地 base64 图片和 URL
- 兼容: OpenAI SDK 风格
安全使用建议
Before installing or running this skill:
- Treat the KIMI_API_KEY as a real secret: add it only if you trust the Kimi service and the skill source. The skill metadata omitted declaring the required API key — that's an inconsistency to fix.
- Review and/or sanitize any file paths before using the image command. The tool will read any file you point it at (not limited to image files) and will send the file contents to the remote API; do not point it at sensitive files (SSH keys, tokens, password stores, etc.).
- Consider removing or auditing npm dependencies before running npm install: package.json lists 'openai' which the code does not use. Unused dependencies increase attack surface when npm install runs.
- Verify the KIMI_API_HOST value (defaults to https://api.kimi.com/coding). Confirm the endpoint is legitimate and you expect data (including images) to be sent there.
- Because the SKILL.md and code support providing a 'system' prompt, inspect any calls that set system prompts to ensure they are not being used to manipulate higher-privilege behavior. The static scan flagged a possible prompt-injection pattern — this may be a false positive but worth checking.
If you are not able to review or audit the code yourself, ask the author to: (1) update the skill metadata to declare KIMI_API_KEY as a required credential, (2) remove unused dependencies or explain why they are present, and (3) add a warning or validation to ensure only image files are sent (or at least limit file reads to expected image extensions and sizes). Proceed carefully.
功能分析
Type: OpenClaw Skill
Name: kimi-use
Version: 0.1.0
The skill is a standard wrapper for the Kimi AI API (Moonshot AI), providing chat, image understanding, and translation capabilities. The code in scripts/index.js implements these features by making authorized requests to the Kimi API host (api.kimi.com) and handles local image files as intended for the vision functionality. There are no signs of data exfiltration, unauthorized execution, or malicious prompt injection instructions.
能力评估
Purpose & Capability
The code implements chat, image understanding, and translation against a Kimi API which matches the skill description. However the package.json declares dependencies (notably 'openai') that the code does not use, and the registry metadata claims no required environment variables while the code and SKILL.md require KIMI_API_KEY (required) and optional KIMI_API_HOST/KIMI_MODEL/KIMI_VISION_MODEL. This mismatch between declared requirements and actual code is concerning.
Instruction Scope
The SKILL.md and the CLI/JS read local files (understandImage reads any file path, base64-encodes it and posts it to the remote API). That behavior is expected for image analysis, but the implementation will read and transmit any file the user points at (not restricted to image mime types), creating a risk of accidental or malicious exfiltration of local sensitive files. Instructions also expose a 'system' prompt field and the translate function builds a system prompt — this is expected for LLM clients but was flagged by the static scan as a possible prompt-manipulation pattern.
Install Mechanism
There is no explicit install spec (instruction-only install), which is low-risk, but package.json lists npm dependencies. Running npm install will fetch packages from the registry (including 'openai' and 'minimist'). The 'openai' dependency appears unused in the code — installing unused packages increases footprint and attack surface and should be justified or removed.
Credentials
The runtime requires a KIMI_API_KEY (sent as Bearer auth) and optionally a KIMI_API_HOST. The registry metadata however lists no required env vars or primary credential. Requiring a secret API key is reasonable for this skill's purpose, but it should be declared explicitly in the skill metadata — the omission is a data/privilege mapping problem that could mislead reviewers or automated controls.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or global agent config, and runs as a normal user process. It exports helper functions but that is expected. No elevated persistence is requested.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kimi-use - 安装完成后,直接呼叫该 Skill 的名称或使用
/kimi-use触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of kimi-use.
- Provides a Node.js toolkit for Kimi AI with chat, image understanding, translation, and web search features.
- Supports both CLI commands and direct Node.js module usage.
- Details environment variable setup for configuring API endpoints and models.
- Compatible with Kimi For Coding and vision models, supporting both image URLs and local files.
- Follows an OpenAI SDK style interface.
元数据
常见问题
Kimi Use 是什么?
Kimi Use provides conversation, image understanding, translation, and web search via Kimi AI tools using Node.js and Kimi For Coding APIs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 175 次。
如何安装 Kimi Use?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kimi-use」即可一键安装,无需额外配置。
Kimi Use 是免费的吗?
是的,Kimi Use 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Kimi Use 支持哪些平台?
Kimi Use 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Kimi Use?
由 cnlangzi(@cnlangzi)开发并维护,当前版本 v0.1.0。
推荐 Skills