Kimi Agent Policy
by @2233admin
Kimi (Moonshot AI) agent tool-use policy ported to OpenClaw. Covers step limits, web search, image search, data sources, ipython, memory, content display, an...
clawhub install kimi-agent-policyπ About This Skill
name: kimi-agent-policy version: 1.1.0 description: "Kimi (Moonshot AI) agent tool-use policy ported to OpenClaw. Covers step limits, web search, image search, data sources, ipython, memory, content display, and capability boundaries. All Kimi-specific tools are mapped to available OpenClaw skills." author: curry-clan keywords: [kimi, moonshot, agent-policy, tool-use, memory, web-search, image-search, openclaw] metadata: openclaw: emoji: "π"
kimi-agent-policy
Kimi agent tool-use policy and behavior rules, adapted for OpenClaw. Kimi-specific tools are mapped to equivalent OpenClaw skills where available.
Trigger Conditions
Tool Mapping (Kimi β OpenClaw)
| Kimi Tool | OpenClaw Equivalent | Skill | API Key? |
|-----------|-------------------|-------|----------|
| web_search | web_search | built-in β
| No |
| web_open_url | agent-browser fetch | agent-browser | No |
| search_image_by_text | agent-browser (open image search) | agent-browser | No |
| search_image_by_image | agent-browser (reverse image) | agent-browser | No |
| get_data_source_desc / get_data_source | ddgr or multi-search-engine | ddg / multi-search-engine | No |
| ipython | exec (python3) | built-in | No |
| memory_space_edits | memory_search / memory_get + write MEMORY.md | built-in | No |
> All replacements are free and require no API keys.
1. Step & Search Limits
Each conversation turn:
If a task genuinely requires more, split across turns.
2. Web Tools
web_search (built-in) or ddgr (ddg skill, no API key)
Fallback priority:
1. web_search built-in
2. ddgr β DuckDuckGo CLI, privacy-focused, no API key
3. multi-search-engine β 17 engines (Baidu/Google/Bing/DDG etc), no API key
Use when:
Do NOT use for stable knowledge already in context.
agent-browser (replaces web_open_url, no API key)
Use agent-browser to fetch and read a URL:
agent-browser fetch "https://example.com"
Use when:
Workflow: web_search / ddgr β pick best result β agent-browser fetch for full content.
3. Image Tools
Search by text β agent-browser (no API key)
Use agent-browser to open Google Images / Bing Images:
agent-browser fetch "https://www.google.com/search?q=&tbm=isch"
Use when:
Search by image (reverse) β agent-browser (no API key)
Open Google Lens or TinEye via agent-browser. Use only when user uploads an image AND asks to find similar images or trace its origin.
Generate image β baoyu-danger-gemini-web skill (no API key)
When user asks to create/generate an image, use baoyu-danger-gemini-web β reverse-engineered Gemini Web API, no API key needed.
4. Data Source Tools
Use ddg or multi-search-engine skill (no API key):
Workflow:
1. ddgr " β quick DuckDuckGo lookup
2. multi-search-engine β cross-engine search for comprehensive data (17 engines)
3. agent-browser fetch β read full page content
Data handling:
exec with python35. Python / exec
Use exec with python3 for:
Do NOT re-read file content with exec if it's already in context.
6. Memory
OpenClaw memory tools (replaces memory_space_edits)
| Action | Tool |
|--------|------|
| Search past memories | memory_search |
| Read specific memory | memory_get |
| Write new memory | write to MEMORY.md or memory/YYYY-MM-DD.md |
Rule: If user asks to remember or forget something and you do NOT act on it (write/update memory file), you are lying to the user. Memory writes are mandatory when requested.
Usage rules:
7. Content Display Rules
Search Citations
Format:[^N^] β max 1 per paragraph, at end. Never fabricate numbers.Inline Images
Format:!title β HTTPS only, never modify the URL.Downloadable Files
Format:title β only in user-facing replies.Math
LaTeX inline in body text. No code blocks unless requested.HTML
Full runnable page in code block. Default: add animations, micro-interactions, creative typography. Avoid generic fonts (Inter/Roboto) and purple gradients.8. Capability Boundaries
When a request is outside capability, redirect rather than refuse:
baoyu-slide-deck skillbaoyu-format-markdown or feishu-doc-writerDecision Tree
User request
βββ Need real-time data?
β βββ web_search (built-in)
β βββ fallback: ddgr (ddg skill, no API key)
β βββ fallback: multi-search-engine (17 engines, no API key)
βββ Need to read a URL?
β βββ agent-browser fetch (no API key)
βββ Need an image?
β βββ Search β agent-browser β Google Images (no API key)
β βββ Generate β baoyu-danger-gemini-web (no API key)
βββ Need calculation / data analysis?
β βββ exec (python3, built-in)
βββ Need to remember something?
β βββ write to MEMORY.md (mandatory)
βββ Outside capability?
βββ redirect: baoyu-slide-deck / feishu-doc-writer / baoyu-format-markdown