← 返回 Skills 市场
ivangdavila

Kimi

作者 Iván · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
368
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install kimi
功能描述
Build and debug Kimi API workflows for chat, coding, reasoning, and tool-calling with live model checks, retries, and safe routing.
使用说明 (SKILL.md)

When to Use

User needs Kimi to work reliably for chat, coding, long-context research, structured outputs, or agent workflows. Agent handles live model verification, request shaping, migration from other OpenAI-compatible providers, and failure recovery before the workflow is trusted.

Architecture

Memory lives in ~/kimi/. If ~/kimi/ does not exist, run setup.md. See memory-template.md for structure.

~/kimi/
├── memory.md         # Status, activation rules, and stable defaults
├── routes.md         # Preferred route per workload
├── approvals.md      # Sensitive-send boundaries and redaction preferences
├── experiments.md    # Prompt, parser, and fallback notes
└── logs/             # Optional sanitized repro payloads

Quick Reference

Use the smallest file that resolves the blocker.

Topic File
Setup process setup.md
Memory template memory-template.md
Minimal request patterns api-patterns.md
Workload routing choices routing-matrix.md
OpenAI-compatible migration migration-playbook.md
Trust and redaction workflows safety-workflows.md
Fast diagnosis and recovery troubleshooting.md

Requirements

  • curl and jq for minimal endpoint checks
  • MOONSHOT_API_KEY kept in environment variables only
  • Kimi access through the official Moonshot API base URL
  • User approval before persisting local notes or sanitized logs

Core Rules

1. Verify Auth and Live Models Before Naming Any Route

  • Start with https://api.moonshot.ai/v1/models and copy live model IDs from the response.
  • Never trust remembered Kimi model names, screenshots, or stale blog examples when a workflow is failing now.

2. Lock the Job to One Workload Before Tuning Prompts

  • Classify the request as one of: fast chat, coding agent, long-context research, deterministic JSON, or migration debugging.
  • Most bad Kimi advice comes from mixing several jobs into one oversized prompt and then blaming the model.

3. Treat Structured Output as a Separate Reliability Path

  • If output feeds tools, code execution, or downstream writes, use strict schemas or a second normalization pass.
  • Do not ask one response to do open-ended reasoning and perfect machine-readable output at the same time.

4. Keep Sensitive Data Out Unless the User Explicitly Approves It

  • Redact secrets, customer identifiers, internal hostnames, and raw tokens before sending prompts externally.
  • If the user wants repeatable Kimi workflows, save the redaction rule and approval boundary in ~/kimi/approvals.md after confirming the first write.

5. Route by Deadline and Cost, Not Brand Habit

  • Use the smallest Kimi route that can finish the current job reliably.
  • For recurring workflows, save one primary route and one fallback route instead of debating models from scratch each time.

6. Separate Provider Migration Problems From Model Problems

  • When moving from OpenAI-compatible code to Kimi, isolate the variable: base URL, auth env var, model ID, parser, or retry policy.
  • Reproduce with one minimal payload before changing prompts, infrastructure, and business logic together.

7. Ask Before Creating Persistent State

  • Work statelessly by default.
  • Only create ~/kimi/ notes, approvals, or debug logs after the user wants continuity across Kimi tasks.

Common Traps

  • Hardcoding a remembered model ID -> fetch /models and use the live ID instead.
  • Treating Kimi as one generic route -> split coding, reasoning, JSON, and migration work.
  • Sending raw internal logs to the API -> redact first and preview what leaves the machine.
  • Combining creative reasoning with strict JSON output -> use a second deterministic pass.
  • Blaming the model for every failure -> verify auth, base URL, retries, and parser behavior first.

External Endpoints

Use only the official Moonshot API surface required for the current task.

Endpoint Data Sent Purpose
https://api.moonshot.ai/v1/models Auth header only Discover live Kimi models
https://api.moonshot.ai/v1/chat/completions Prompt messages and options Kimi chat, reasoning, coding, and structured-output requests

No other data is sent externally.

Security & Privacy

Data that leaves your machine:

  • Prompt content sent to the Moonshot API when the user asks for Kimi inference
  • Optional sanitized excerpts of code, logs, or documents sent for analysis after approval

Data that stays local:

  • Activation preferences, route defaults, and approval boundaries in ~/kimi/ after user approval
  • Optional sanitized repro payloads and troubleshooting notes saved for recurring workflows

This skill does NOT:

  • Store MOONSHOT_API_KEY in markdown or project files
  • Send data to undeclared endpoints
  • Persist raw secrets or sensitive prompts without explicit user approval
  • Modify its own skill files

Scope

This skill ONLY:

  • designs and debugs Kimi API workflows
  • routes Kimi usage across coding, reasoning, research, and deterministic-output jobs
  • hardens retries, validation, and migration from other OpenAI-compatible providers
  • stores lightweight local notes only after user approval

This skill NEVER:

  • invent live model availability without checking
  • persist secrets in ~/kimi/
  • execute destructive downstream automation from unvalidated output
  • treat cost-sensitive or sensitive-send boundaries as implicit

Trust

Using this skill sends prompt data to Moonshot's Kimi API. Only install if you trust Moonshot with that data, or keep sensitive preprocessing local and sanitized.

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • api — debug auth, payloads, retries, and OpenAI-compatible request shapes
  • models — compare model families and cost tiers before locking Kimi into production
  • coding — tighten coding-agent behavior after the Kimi route itself is stable
  • backend — connect Kimi workflows to services, jobs, and API boundaries
  • fastapi — expose Kimi-backed endpoints with request validation and safer deployment defaults

Feedback

  • If useful: clawhub star kimi
  • Stay updated: clawhub sync
安全使用建议
This skill appears internally consistent and lower risk because it's instruction-only and only talks to the Moonshot API. Before installing: (1) confirm you trust the Moonshot service and that the provided MOONSHOT_API_KEY has only the needed permissions; (2) be prepared to approve any first-time writes to ~/kimi/ (the skill says it will ask before persisting); (3) avoid pasting or exporting raw secrets into prompts — follow the redaction guidance; and (4) if you want extra assurance, verify the official API base URL (https://api.moonshot.ai/v1) and the skill homepage before enabling.
功能分析
Type: OpenClaw Skill Name: kimi Version: 1.0.0 The Kimi skill bundle is a well-structured tool designed to help users integrate and debug Moonshot AI API workflows. It includes proactive security measures such as a 'Safe-Send' checklist, local data redaction patterns (api-patterns.md), and explicit instructions for the agent to seek user approval before persisting data or sending sensitive information to the official Moonshot API (SKILL.md, safety-workflows.md). No evidence of data exfiltration, malicious execution, or unauthorized persistence was found.
能力评估
Purpose & Capability
Name/description (Kimi workflow/debugging for Moonshot) matches the declared requirements: curl and jq for checks and MOONSHOT_API_KEY to call Moonshot. Required config path ~/kimi/ is reasonable for storing workflow metadata and is declared in the metadata.
Instruction Scope
SKILL.md instructs only to call Moonshot endpoints (/models and /chat/completions), to redact secrets before sending, and to write local notes only after explicit user approval. It does not instruct reading unrelated system files or sending data to undeclared endpoints.
Install Mechanism
No install spec and no code files are present, so nothing is downloaded or written by default. This is a lower-risk, instruction-only skill.
Credentials
Only a single env var (MOONSHOT_API_KEY) is required, which is appropriate for an API integration. The skill explicitly states it will not persist the API key to disk and instructs local redaction rules; no unrelated credentials are requested.
Persistence & Privilege
The skill does not request always:true or elevated platform privileges. It documents a local memory directory (~/kimi/) and requires user approval before persisting notes or logs, which is proportionate for its purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kimi
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kimi 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with Kimi workflow routing, OpenAI-compatible request patterns, migration guidance, and operational safety checks.
元数据
Slug kimi
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Kimi 是什么?

Build and debug Kimi API workflows for chat, coding, reasoning, and tool-calling with live model checks, retries, and safe routing. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 368 次。

如何安装 Kimi?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kimi」即可一键安装,无需额外配置。

Kimi 是免费的吗?

是的,Kimi 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Kimi 支持哪些平台?

Kimi 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Kimi?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论