Kimi

From clawic/skills · View interactive version

Kimi is an AI agent skill from the GitHub repository clawic/skills. Build and debug Kimi API workflows for chat, coding, reasoning, and tool-calling with live model checks, retries, and safe routing.

How to use this skill

Skill file

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 ~/Clawic/data/kimi/. If ~/Clawic/data/kimi/ does not exist, run setup.md. See memory-template.md for structure.

~/Clawic/data/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

Core Rules

1. Verify Auth and Live Models Before Naming Any Route

2. Lock the Job to One Workload Before Tuning Prompts

3. Treat Structured Output as a Separate Reliability Path

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

5. Route by Deadline and Cost, Not Brand Habit

6. Separate Provider Migration Problems From Model Problems

7. Ask Before Creating Persistent State

Common Traps

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:

Data that stays local:

This skill does NOT:

Scope

This skill ONLY:

This skill NEVER:

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

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.